|
5 | 5 | # the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 |
6 | 6 |
|
7 | 7 |
|
8 | | -from setuptools import setup, Extension |
| 8 | +import setuptools |
| 9 | +import sys |
9 | 10 |
|
10 | 11 |
|
11 | | -setup( |
| 12 | +if sys.version_info < (3, 5): |
| 13 | + raise RuntimeError('asyncpg requires Python 3.5 or greater') |
| 14 | + |
| 15 | + |
| 16 | +setuptools.setup( |
12 | 17 | name='asyncpg', |
13 | 18 | version='0.0.1', |
14 | 19 | description='An asyncio PosgtreSQL driver', |
15 | 20 | classifiers=[ |
16 | 21 | 'License :: OSI Approved :: MIT License', |
17 | 22 | 'Intended Audience :: Developers', |
18 | | - 'Programming Language :: Python :: 3', |
| 23 | + 'Programming Language :: Python :: 3 :: Only', |
| 24 | + 'Programming Language :: Python :: 3.5', |
| 25 | + 'Programming Language :: Python :: 3.6', |
19 | 26 | 'Operating System :: POSIX', |
20 | 27 | 'Operating System :: MacOS :: MacOS X', |
21 | 28 | 'Development Status :: 4 - Beta', |
|
28 | 35 | provides=['asyncpg'], |
29 | 36 | include_package_data=True, |
30 | 37 | ext_modules=[ |
31 | | - Extension("asyncpg.protocol.protocol", |
32 | | - ["asyncpg/protocol/record/recordobj.c", |
33 | | - "asyncpg/protocol/protocol.c"], |
34 | | - extra_compile_args=['-O2']) |
| 38 | + setuptools.Extension( |
| 39 | + "asyncpg.protocol.protocol", |
| 40 | + ["asyncpg/protocol/record/recordobj.c", |
| 41 | + "asyncpg/protocol/protocol.c"], |
| 42 | + extra_compile_args=['-O2']) |
35 | 43 | ] |
36 | 44 | ) |
0 commit comments