|
7 | 7 | except ImportError: |
8 | 8 | from distutils.core import setup |
9 | 9 |
|
10 | | -sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'tinify')) |
| 10 | +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "tinify")) |
11 | 11 | from version import __version__ |
12 | 12 |
|
13 | 13 | install_require = ["requests >= 2.7.0, < 3.0.0"] |
14 | 14 | tests_require = ["pytest", "pytest-xdist", "requests-mock"] |
15 | 15 |
|
16 | | -if sys.version_info < (2, 7): |
17 | | - tests_require.append('unittest2') |
18 | | -if sys.version_info < (3, 3): |
19 | | - tests_require.append('mock >= 1.3, < 2.0') |
20 | | - |
21 | 16 | setup( |
22 | | - name='tinify', |
| 17 | + name="tinify", |
23 | 18 | version=__version__, |
24 | | - description='Tinify API client.', |
25 | | - author='Jacob Middag', |
26 | | - author_email='info@tinify.com', |
27 | | - license='MIT', |
28 | | - long_description='Python client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.', |
29 | | - long_description_content_type='text/markdown', |
30 | | - url='https://tinify.com/developers', |
31 | | - |
32 | | - packages=['tinify'], |
| 19 | + description="Tinify API client.", |
| 20 | + author="Jacob Middag", |
| 21 | + author_email="info@tinify.com", |
| 22 | + license="MIT", |
| 23 | + long_description="Python client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.", |
| 24 | + long_description_content_type="text/markdown", |
| 25 | + url="https://tinify.com/developers", |
| 26 | + packages=["tinify"], |
33 | 27 | package_data={ |
34 | | - '': ['LICENSE', 'README.md'], |
35 | | - 'tinify': ['data/cacert.pem'], |
| 28 | + "": ["LICENSE", "README.md"], |
| 29 | + "tinify": ["data/cacert.pem"], |
36 | 30 | }, |
37 | | - |
38 | 31 | install_requires=install_require, |
39 | 32 | tests_require=tests_require, |
40 | | - extras_require={'test': tests_require}, |
41 | | - |
| 33 | + extras_require={"test": tests_require}, |
42 | 34 | classifiers=( |
43 | | - 'Development Status :: 5 - Production/Stable', |
44 | | - 'Intended Audience :: Developers', |
45 | | - 'Natural Language :: English', |
46 | | - 'License :: OSI Approved :: MIT License', |
47 | | - 'Programming Language :: Python', |
48 | | - 'Programming Language :: Python :: 2.7', |
49 | | - 'Programming Language :: Python :: 3', |
50 | | - 'Programming Language :: Python :: 3.7', |
51 | | - 'Programming Language :: Python :: 3.8', |
52 | | - 'Programming Language :: Python :: 3.9', |
53 | | - 'Programming Language :: Python :: 3.10', |
54 | | - 'Programming Language :: Python :: 3.11', |
| 35 | + "Development Status :: 5 - Production/Stable", |
| 36 | + "Intended Audience :: Developers", |
| 37 | + "Natural Language :: English", |
| 38 | + "License :: OSI Approved :: MIT License", |
| 39 | + "Programming Language :: Python", |
| 40 | + "Programming Language :: Python :: 2.7", |
| 41 | + "Programming Language :: Python :: 3", |
| 42 | + "Programming Language :: Python :: 3.8", |
| 43 | + "Programming Language :: Python :: 3.9", |
| 44 | + "Programming Language :: Python :: 3.10", |
| 45 | + "Programming Language :: Python :: 3.11", |
| 46 | + "Programming Language :: Python :: 3.12", |
| 47 | + "Programming Language :: Python :: 3.13", |
55 | 48 | ), |
56 | 49 | ) |
0 commit comments