summaryrefslogtreecommitdiff
path: root/setup.py
blob: 015b7e58d667d560ababa68ee1dd7f029b3252ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
import sys
from setuptools import setup, Extension

with open("README.rst") as fp:
    long_description = fp.read()

extensions = []
if os.name == 'nt':
    ext = Extension(
        'trollius._overlapped', ['overlapped.c'], libraries=['ws2_32'],
    )
    extensions.append(ext)

requirements = ['six']
if sys.version_info < (3,):
    requirements.append('futures')

setup(
    name="trollius",
    version="2.3",
    license="Apache License 2.0",
    author='Victor Stinner',
    author_email='victor.stinner@gmail.com',
    description="Deprecated, unmaintained port of the asyncio module (PEP 3156) on Python 2",
    long_description=long_description,
    url="https://github.com/jamadden/trollius",
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "License :: OSI Approved :: Apache Software License",
    ],
    packages=[
        "trollius",
    ],
    ext_modules=extensions,
    install_requires=requirements,
    python_requires=">=2.7, < 3",
)