diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 63 |
1 files changed, 43 insertions, 20 deletions
@@ -1,46 +1,69 @@ # Release procedure: -# - run tox (to run runtests.py and run_aiotest.py) -# - maybe test examples -# - update version in setup.py +# - fill Tulip changelog +# - run maybe update_tulip.sh +# - run unit tests with concurrent.futures +# - run unit tests without concurrent.futures +# - run unit tests without ssl: set sys.modules['ssl']=None at startup +# - test examples +# - update version in setup.py (version) and doc/conf.py (version, release) +# - set release date in doc/changelog.rst # - hg ci -# - hg tag VERSION +# - hg tag trollius-VERSION # - hg push -# - run on Linux: python setup.py register sdist upload -# - run on Windows: python release.py VERSION -# - increment version in setup.py +# - python setup.py register sdist bdist_wheel upload +# - increment version in setup.py (version) and doc/conf.py (version, release) # - hg ci && hg push import os +import sys try: from setuptools import setup, Extension + SETUPTOOLS = True except ImportError: + SETUPTOOLS = False # Use distutils.core as a fallback. # We won't be able to build the Wheel file on Windows. from distutils.core import setup, Extension +with open("README") as fp: + long_description = fp.read() + extensions = [] if os.name == 'nt': ext = Extension( - 'asyncio._overlapped', ['overlapped.c'], libraries=['ws2_32'], + 'trollius._overlapped', ['overlapped.c'], libraries=['ws2_32'], ) extensions.append(ext) -setup( - name="asyncio", - version="3.4.3", +requirements = [] +if sys.version_info < (2, 7): + requirements.append('ordereddict') +if sys.version_info < (3,): + requirements.append('futures') + +install_options = { + "name": "trollius", + "version": "1.0.4", + "license": "Apache License 2.0", + "author": 'Victor Stinner', + "author_email": 'victor.stinner@gmail.com', - description="reference implementation of PEP 3156", - long_description=open("README").read(), - url="http://www.python.org/dev/peps/pep-3156/", + "description": "Port of the Tulip project (asyncio module, PEP 3156) on Python 2", + "long_description": long_description, + "url": "https://bitbucket.org/enovance/trollius/", - classifiers=[ + "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", + "License :: OSI Approved :: Apache Software License", ], - packages=["asyncio"], - test_suite="runtests.runtests", + "packages": ["trollius"], + "test_suite": "runtests.runtests", + + "ext_modules": extensions, +} +if SETUPTOOLS: + install_options['install_requires'] = requirements - ext_modules=extensions, -) +setup(**install_options) |