diff options
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 49 |
1 files changed, 26 insertions, 23 deletions
@@ -46,7 +46,7 @@ exec(init_file.read(), d) init_file.close() SETUP_COMMANDS = d['__all__'] -VERSION = "0.6.36" +VERSION = "0.7b1" from setuptools import setup, find_packages from setuptools.command.build_py import build_py as _build_py @@ -107,28 +107,16 @@ class test(_test): f.close() -# return contents of reStructureText file with linked issue references -def _linkified(rst_path): - bitroot = 'http://bitbucket.org/tarek/distribute' - revision = re.compile(r'\b(issue\s+#?\d+)\b', re.M | re.I) - - rst_file = open(rst_path) - rst_content = rst_file.read() - rst_file.close() - - anchors = revision.findall(rst_content) # ['Issue #43', ...] - anchors = sorted(set(anchors)) - rst_content = revision.sub(r'`\1`_', rst_content) - rst_content += "\n" - for x in anchors: - issue = re.findall(r'\d+', x)[0] - rst_content += '.. _`%s`: %s/issue/%s\n' % (x, bitroot, issue) - rst_content += "\n" - return rst_content - readme_file = open('README.txt') -long_description = readme_file.read() + _linkified('CHANGES.txt') +# the release script adds hyperlinks to issues +if os.path.exists('CHANGES (links).txt'): + changes_file = open('CHANGES (links).txt') +else: + # but if the release script has not run, fall back to the source file + changes_file = open('CHANGES.txt') +long_description = readme_file.read() + changes_file.read() readme_file.close() +changes_file.close() dist = setup( name="setuptools", @@ -144,7 +132,7 @@ dist = setup( test_suite = 'setuptools.tests', src_root = src_root, packages = find_packages(), - package_data = {'setuptools':['*.exe']}, + package_data = {'setuptools':['*.exe'], 'setuptools.command':['*.xml']}, py_modules = ['pkg_resources', 'easy_install', 'site'], @@ -219,5 +207,20 @@ dist = setup( Topic :: System :: Systems Administration Topic :: Utilities """).strip().splitlines(), - scripts = scripts, + extras_require = { + "ssl:sys_platform=='win32'": "wincertstore==0.1", + "ssl:sys_platform=='win32' and python_version=='2.4'": "ctypes==1.0.2", + "ssl:python_version in '2.4, 2.5'":"ssl==1.16", + "certs": "certifi==0.0.8", + }, + dependency_links = [ + 'http://pypi.python.org/packages/source/c/certifi/certifi-0.0.8.tar.gz#md5=dc5f5e7f0b5fc08d27654b17daa6ecec', + 'http://pypi.python.org/packages/source/s/ssl/ssl-1.16.tar.gz#md5=fb12d335d56f3c8c7c1fefc1c06c4bfb', + 'http://pypi.python.org/packages/source/w/wincertstore/wincertstore-0.1.zip#md5=2f9accbebe8f7b4c06ac7aa83879b81c', + 'http://bitbucket.org/pypa/setuptools/downloads/ctypes-1.0.2.win32-py2.4.exe#md5=9092a0ad5a3d79fa2d980f1ddc5e9dbc', + 'http://bitbucket.org/pypa/setuptools/downloads/ssl-1.16-py2.4-win32.egg#md5=3cfa2c526dc66e318e8520b6f1aadce5', + 'http://bitbucket.org/pypa/setuptools/downloads/ssl-1.16-py2.5-win32.egg#md5=85ad1cda806d639743121c0bbcb5f39b', + ], + scripts = [], + # tests_require = "setuptools[ssl]", ) |
