From 008feaa768ab9f5439a444c6440581aa5a212e9e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 9 Dec 2011 20:46:46 +0300 Subject: [PATCH] include only client in the distribution; servers should use git --- MANIFEST.in | 6 ------ client/MANIFEST.in | 6 ++++++ client/setup.py | 34 ++++++++++++++++++++++++++++++++++ setup.py | 34 ---------------------------------- 4 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 client/MANIFEST.in create mode 100644 client/setup.py delete mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 835c67f..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include client/README client/LICENCE -include server/README server/LICENCE -include server/electrum.php -recursive-include client *.py -recursive-include server *.py -recursive-include server/patches * \ No newline at end of file diff --git a/client/MANIFEST.in b/client/MANIFEST.in new file mode 100644 index 0000000..835c67f --- /dev/null +++ b/client/MANIFEST.in @@ -0,0 +1,6 @@ +include client/README client/LICENCE +include server/README server/LICENCE +include server/electrum.php +recursive-include client *.py +recursive-include server *.py +recursive-include server/patches * \ No newline at end of file diff --git a/client/setup.py b/client/setup.py new file mode 100644 index 0000000..7cd84b0 --- /dev/null +++ b/client/setup.py @@ -0,0 +1,34 @@ +#!/usr/bin/python + +# python setup.py sdist --format=zip,gztar + + +from distutils.core import setup + +version = "0.32" + +setup(name = "Electrum", + version = version, + description = "Lightweight Bitcoin Wallet", + author = "thomasv", + license = "GNU GPLv3", + url = "http://ecdsa/electrum", + long_description = """Lightweight Bitcoin Wallet""" +) + +if __name__ == '__main__': + import sys, re, shutil + if sys.argv[1]=='sdist': + _tgz="Electrum-%s.tar.gz"%version + _zip="Electrum-%s.zip"%version + shutil.copyfile("dist/"+_tgz ,'/var/www/electrum/'+_tgz) + shutil.copyfile("dist/"+_zip,'/var/www/electrum/'+_zip) + f = open("/var/www/electrum/index.html") + s = f.read() + f.close() + s = re.sub("Electrum-([\d\.a-z]*?)\.tar\.gz", _tgz, s) + s = re.sub("Electrum-([\d\.a-z]*?)\.zip", _zip, s) + f = open("/var/www/electrum/index.html","w") + f.write(s) + f.close() + diff --git a/setup.py b/setup.py deleted file mode 100644 index 7cd84b0..0000000 --- a/setup.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python - -# python setup.py sdist --format=zip,gztar - - -from distutils.core import setup - -version = "0.32" - -setup(name = "Electrum", - version = version, - description = "Lightweight Bitcoin Wallet", - author = "thomasv", - license = "GNU GPLv3", - url = "http://ecdsa/electrum", - long_description = """Lightweight Bitcoin Wallet""" -) - -if __name__ == '__main__': - import sys, re, shutil - if sys.argv[1]=='sdist': - _tgz="Electrum-%s.tar.gz"%version - _zip="Electrum-%s.zip"%version - shutil.copyfile("dist/"+_tgz ,'/var/www/electrum/'+_tgz) - shutil.copyfile("dist/"+_zip,'/var/www/electrum/'+_zip) - f = open("/var/www/electrum/index.html") - s = f.read() - f.close() - s = re.sub("Electrum-([\d\.a-z]*?)\.tar\.gz", _tgz, s) - s = re.sub("Electrum-([\d\.a-z]*?)\.zip", _zip, s) - f = open("/var/www/electrum/index.html","w") - f.write(s) - f.close() - -- 1.7.1