|
4 | 4 | from setuptools import setup
|
5 | 5 |
|
6 | 6 |
|
7 |
| -if sys.version_info < (3, 4): |
8 |
| - install_requires = ['Django>=1.8,<2.0'] |
9 |
| -else: |
10 |
| - install_requires = ['Django>=1.8,!=2.0,!=2.0.1,!=2.0.2,!=2.0.3,!=2.0.4,!=2.0.5,!=2.0.6,!=2.0.7,!=2.0.8,!=2.0.9'] |
| 7 | +install_requires = [ |
| 8 | + 'Django>=1.8,<2.0;python_version<"3.4"', |
| 9 | + 'Django>=1.8,!=2.0,!=2.0.1,!=2.0.2,!=2.0.3,!=2.0.4,!=2.0.5,!=2.0.6,!=2.0.7,!=2.0.8,!=2.0.9; python_version>="3.4"', |
| 10 | +] |
11 | 11 |
|
12 | 12 |
|
13 | 13 | setup(
|
14 |
| - name='django-hashedfilenamestorage', |
15 |
| - version='2.4.1', |
16 |
| - description=('A Django storage backend that names files by hash value.'), |
17 |
| - long_description=open('README.rst', 'r').read(), |
18 |
| - author='Ecometrica', |
19 |
| - author_email='info@ecometrica.com', |
20 |
| - url='http://github.com/ecometrica/django-hashedfilenamestorage/', |
21 |
| - packages=['django_hashedfilenamestorage'], |
| 14 | + name="django-hashedfilenamestorage", |
| 15 | + version="2.4.1", |
| 16 | + description=("A Django storage backend that names files by hash value."), |
| 17 | + long_description=open("README.rst", "r").read(), |
| 18 | + author="Ecometrica", |
| 19 | + author_email="info@ecometrica.com", |
| 20 | + url="http://github.com/ecometrica/django-hashedfilenamestorage/", |
| 21 | + packages=["django_hashedfilenamestorage"], |
22 | 22 | install_requires=install_requires,
|
23 | 23 | classifiers=[
|
24 |
| - 'Development Status :: 5 - Production/Stable', |
25 |
| - 'Environment :: Web Environment', |
26 |
| - 'Framework :: Django', |
27 |
| - 'Intended Audience :: Developers', |
28 |
| - 'License :: OSI Approved :: MIT License', |
29 |
| - 'Operating System :: OS Independent', |
30 |
| - 'Programming Language :: Python', |
31 |
| - 'Programming Language :: Python :: 2.7', |
32 |
| - 'Programming Language :: Python :: 3.5', |
33 |
| - 'Programming Language :: Python :: 3.6', |
34 |
| - 'Programming Language :: Python :: 3.7', |
35 |
| - 'Topic :: Software Development :: Libraries', |
| 24 | + "Development Status :: 5 - Production/Stable", |
| 25 | + "Environment :: Web Environment", |
| 26 | + "Framework :: Django", |
| 27 | + "Intended Audience :: Developers", |
| 28 | + "License :: OSI Approved :: MIT License", |
| 29 | + "Operating System :: OS Independent", |
| 30 | + "Programming Language :: Python", |
| 31 | + "Programming Language :: Python :: 2.7", |
| 32 | + "Programming Language :: Python :: 3.5", |
| 33 | + "Programming Language :: Python :: 3.6", |
| 34 | + "Programming Language :: Python :: 3.7", |
| 35 | + "Topic :: Software Development :: Libraries", |
36 | 36 | ],
|
37 | 37 | zip_safe=True,
|
38 |
| - tests_require=['pytest', 'tox'] |
| 38 | + tests_require=["pytest", "tox"], |
39 | 39 | )
|
0 commit comments