|  | 
| 1 | 1 | import io | 
| 2 | 2 | import os | 
| 3 |  | -from setuptools import setup, find_packages | 
| 4 | 3 | 
 | 
|  | 4 | +from setuptools import find_packages, setup | 
| 5 | 5 | 
 | 
| 6 | 6 | __version__ = None | 
| 7 |  | -with open('sendgrid/version.py') as f: | 
|  | 7 | +with open("sendgrid/version.py") as f: | 
| 8 | 8 |     exec(f.read()) | 
| 9 | 9 | 
 | 
|  | 10 | + | 
| 10 | 11 | def getRequires(): | 
| 11 | 12 |     deps = [ | 
| 12 |  | -        'python_http_client>=3.2.1', | 
| 13 |  | -        'cryptography>=45.0.6', | 
| 14 |  | -        "werkzeug>=0.11.15,<1.0.0 ; python_version < '3.0'", | 
| 15 |  | -        "werkzeug>=0.15.0,<2.0.0 ; python_version >= '3.0' and python_version < '3.7'", | 
| 16 |  | -        "werkzeug>=0.15.0,<2.3.0 ; python_version >= '3.0' and python_version < '3.8'", # version 2.3.0 dropped support for Python 3.7 | 
| 17 |  | -        "werkzeug>=0.16.0,<3.1.0 ; python_version >= '3.0' and python_version < '3.9'", # version 3.1.0 dropped support for Python 3.8 | 
| 18 |  | -        "werkzeug>=1.0.0 ; python_version >= '3.9'", | 
| 19 |  | -        "werkzeug>=2.2.0 ; python_version >= '3.11'", | 
| 20 |  | -        "werkzeug>=2.3.5 ; python_version >= '3.12'" | 
|  | 13 | +        "python_http_client>=3.2.1", | 
|  | 14 | +        "cryptography>=44.0.1", | 
|  | 15 | +        "werkzeug==3.0.6 ; python_version == '3.8'",  # version 3.1.0 dropped support for Python 3.8 | 
|  | 16 | +        "werkzeug>=3.0.6 ; python_version >= '3.9'", | 
| 21 | 17 |     ] | 
| 22 | 18 |     return deps | 
| 23 | 19 | 
 | 
| 24 | 20 | 
 | 
| 25 | 21 | dir_path = os.path.abspath(os.path.dirname(__file__)) | 
| 26 |  | -readme = io.open(os.path.join(dir_path, 'README.rst'), encoding='utf-8').read() | 
|  | 22 | +readme = io.open(os.path.join(dir_path, "README.rst"), encoding="utf-8").read() | 
| 27 | 23 | 
 | 
| 28 | 24 | setup( | 
| 29 |  | -    name='sendgrid', | 
|  | 25 | +    name="sendgrid", | 
| 30 | 26 |     version=str(__version__), | 
| 31 |  | -    author='Elmer Thomas, Yamil Asusta', | 
| 32 |  | -    author_email='help@twilio.com', | 
| 33 |  | -    url='https://github.com/sendgrid/sendgrid-python/', | 
|  | 27 | +    author="Elmer Thomas, Yamil Asusta", | 
|  | 28 | +    author_email="help@twilio.com", | 
|  | 29 | +    url="https://github.com/sendgrid/sendgrid-python/", | 
| 34 | 30 |     packages=find_packages(exclude=["temp*.py", "test"]), | 
| 35 | 31 |     include_package_data=True, | 
| 36 |  | -    license='MIT', | 
| 37 |  | -    description='Twilio SendGrid library for Python', | 
|  | 32 | +    license="MIT", | 
|  | 33 | +    description="Twilio SendGrid library for Python", | 
| 38 | 34 |     long_description=readme, | 
| 39 | 35 |     install_requires=getRequires(), | 
| 40 |  | -    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', | 
|  | 36 | +    python_requires=">=3.8", | 
| 41 | 37 |     classifiers=[ | 
| 42 |  | -        'Programming Language :: Python :: 2.7', | 
| 43 |  | -        'Programming Language :: Python :: 3', | 
| 44 |  | -        'Programming Language :: Python :: 3.5', | 
| 45 |  | -        'Programming Language :: Python :: 3.6', | 
| 46 |  | -        'Programming Language :: Python :: 3.7', | 
| 47 |  | -        'Programming Language :: Python :: 3.8', | 
| 48 |  | -        'Programming Language :: Python :: 3.9', | 
| 49 |  | -        'Programming Language :: Python :: 3.10', | 
| 50 |  | -        'Programming Language :: Python :: 3.11', | 
| 51 |  | -        'Programming Language :: Python :: 3.12', | 
| 52 |  | -        'Programming Language :: Python :: 3.13', | 
| 53 |  | -    ] | 
|  | 38 | +        "Programming Language :: Python :: 3", | 
|  | 39 | +        "Programming Language :: Python :: 3.8", | 
|  | 40 | +        "Programming Language :: Python :: 3.9", | 
|  | 41 | +        "Programming Language :: Python :: 3.10", | 
|  | 42 | +        "Programming Language :: Python :: 3.11", | 
|  | 43 | +        "Programming Language :: Python :: 3.12", | 
|  | 44 | +        "Programming Language :: Python :: 3.13", | 
|  | 45 | +    ], | 
| 54 | 46 | ) | 
0 commit comments