| 
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'",  | 
 | 17 | +        "werkzeug>=3.0.6 ; python_version >= '3.11'",  | 
 | 18 | +        "werkzeug>=3.0.6 ; python_version >= '3.12'",  | 
21 | 19 |     ]  | 
22 | 20 |     return deps  | 
23 | 21 | 
 
  | 
24 | 22 | 
 
  | 
25 | 23 | dir_path = os.path.abspath(os.path.dirname(__file__))  | 
26 |  | -readme = io.open(os.path.join(dir_path, 'README.rst'), encoding='utf-8').read()  | 
 | 24 | +readme = io.open(os.path.join(dir_path, "README.rst"), encoding="utf-8").read()  | 
27 | 25 | 
 
  | 
28 | 26 | setup(  | 
29 |  | -    name='sendgrid',  | 
 | 27 | +    name="sendgrid",  | 
30 | 28 |     version=str(__version__),  | 
31 |  | -    author='Elmer Thomas, Yamil Asusta',  | 
32 |  | -    author_email='help@twilio.com',  | 
33 |  | -    url='https://github.com/sendgrid/sendgrid-python/',  | 
 | 29 | +    author="Elmer Thomas, Yamil Asusta",  | 
 | 30 | +    author_email="help@twilio.com",  | 
 | 31 | +    url="https://github.com/sendgrid/sendgrid-python/",  | 
34 | 32 |     packages=find_packages(exclude=["temp*.py", "test"]),  | 
35 | 33 |     include_package_data=True,  | 
36 |  | -    license='MIT',  | 
37 |  | -    description='Twilio SendGrid library for Python',  | 
 | 34 | +    license="MIT",  | 
 | 35 | +    description="Twilio SendGrid library for Python",  | 
38 | 36 |     long_description=readme,  | 
39 | 37 |     install_requires=getRequires(),  | 
40 |  | -    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',  | 
 | 38 | +    python_requires=">=3.8",  | 
41 | 39 |     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 |  | -    ]  | 
 | 40 | +        "Programming Language :: Python :: 3",  | 
 | 41 | +        "Programming Language :: Python :: 3.8",  | 
 | 42 | +        "Programming Language :: Python :: 3.9",  | 
 | 43 | +        "Programming Language :: Python :: 3.10",  | 
 | 44 | +        "Programming Language :: Python :: 3.11",  | 
 | 45 | +        "Programming Language :: Python :: 3.12",  | 
 | 46 | +        "Programming Language :: Python :: 3.13",  | 
 | 47 | +    ],  | 
54 | 48 | )  | 
0 commit comments