|
22 | 22 | from setuptools import setup
|
23 | 23 |
|
24 | 24 |
|
25 |
| -if sys.version_info < (2, 7): |
26 |
| - print('firebase_admin requires python2 version >= 2.7 or python3.', file=sys.stderr) |
| 25 | +(major, minor) = (sys.version_info.major, sys.version_info.minor) |
| 26 | +if (major == 2 and minor < 7) or (major == 3 and minor < 4): |
| 27 | + print('firebase_admin requires python2 >= 2.7 or python3 >= 3.4', file=sys.stderr) |
27 | 28 | sys.exit(1)
|
28 | 29 |
|
29 |
| -# Read in the package meta data per recommendations from: |
| 30 | +# Read in the package metadata per recommendations from: |
30 | 31 | # https://packaging.python.org/guides/single-sourcing-package-version/
|
31 | 32 | about_path = path.join(path.dirname(path.abspath(__file__)), 'firebase_admin', '__about__.py')
|
32 | 33 | about = {}
|
|
45 | 46 | 'six>=1.6.1'
|
46 | 47 | ]
|
47 | 48 |
|
48 |
| -extras_require = { |
49 |
| - ':python_version<"3.4"': ('enum34>=1.0.4',), |
50 |
| -} |
51 |
| - |
52 | 49 | setup(
|
53 | 50 | name=about['__title__'],
|
54 | 51 | version=about['__version__'],
|
|
58 | 55 | author=about['__author__'],
|
59 | 56 | license=about['__license__'],
|
60 | 57 | keywords='firebase cloud development',
|
61 |
| - extras_require=extras_require, |
62 | 58 | install_requires=install_requires,
|
63 | 59 | packages=find_packages(exclude=['tests']),
|
| 60 | + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', |
64 | 61 | classifiers=[
|
65 | 62 | 'Development Status :: 5 - Production/Stable',
|
66 | 63 | 'Intended Audience :: Developers',
|
67 | 64 | 'Topic :: Software Development :: Build Tools',
|
68 | 65 | 'Programming Language :: Python :: 2',
|
69 | 66 | 'Programming Language :: Python :: 2.7',
|
70 | 67 | 'Programming Language :: Python :: 3',
|
71 |
| - 'Programming Language :: Python :: 3.3', |
| 68 | + 'Programming Language :: Python :: 3.4', |
72 | 69 | 'Programming Language :: Python :: 3.5',
|
| 70 | + 'Programming Language :: Python :: 3.6', |
| 71 | + 'Programming Language :: Python :: 3.7', |
73 | 72 | 'License :: OSI Approved :: Apache Software License',
|
74 | 73 | ],
|
75 | 74 | )
|
0 commit comments