|
3 | 3 | import os |
4 | 4 |
|
5 | 5 | PACKAGES = find_packages() |
6 | | -REQUIREMENTS = ['django >=2.2,<5.3'] |
7 | | -TEST_REQUIREMENTS = ['coverage'] |
| 6 | +REQUIREMENTS = ["django >=3.2,<5.3"] |
| 7 | +TEST_REQUIREMENTS = ["coverage"] |
8 | 8 | EXTRAS_REQUIRE = { |
9 | | - 'quality': ['isort', 'flake8'], |
10 | | - 'test': TEST_REQUIREMENTS, |
| 9 | + "quality": ["isort", "flake8"], |
| 10 | + "test": TEST_REQUIREMENTS, |
11 | 11 | } |
12 | | -CLASSIFIERS = ['License :: OSI Approved :: MIT License', |
13 | | - 'Framework :: Django', |
14 | | - 'Programming Language :: Python', |
15 | | - 'Programming Language :: Python :: 3', |
16 | | - 'Programming Language :: Python :: 3 :: Only', |
17 | | - 'Programming Language :: Python :: 3.4', |
18 | | - 'Programming Language :: Python :: 3.5', |
19 | | - 'Programming Language :: Python :: 3.6', |
20 | | - 'Programming Language :: Python :: 3.7', |
21 | | - 'Programming Language :: Python :: 3.8', |
22 | | - 'Programming Language :: Python :: 3.9', |
23 | | - 'Programming Language :: Python :: 3.10', |
24 | | - 'Programming Language :: Python :: 3.11'] |
| 12 | +CLASSIFIERS = [ |
| 13 | + "License :: OSI Approved :: MIT License", |
| 14 | + "Framework :: Django", |
| 15 | + "Programming Language :: Python", |
| 16 | + "Programming Language :: Python :: 3", |
| 17 | + "Programming Language :: Python :: 3 :: Only", |
| 18 | + "Programming Language :: Python :: 3.4", |
| 19 | + "Programming Language :: Python :: 3.5", |
| 20 | + "Programming Language :: Python :: 3.6", |
| 21 | + "Programming Language :: Python :: 3.7", |
| 22 | + "Programming Language :: Python :: 3.8", |
| 23 | + "Programming Language :: Python :: 3.9", |
| 24 | + "Programming Language :: Python :: 3.10", |
| 25 | + "Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12", |
| 26 | +] |
25 | 27 |
|
26 | 28 |
|
27 | 29 | DESCRIPTION = ( |
28 | | - "A Django app for handling reports from web browsers of violations of your website's " |
29 | | - "HTTP Content Security Policy." |
| 30 | + "A Django app for handling reports from web browsers of violations of your website's HTTP Content Security Policy." |
30 | 31 | ) |
31 | 32 | LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), "README.md")).read() |
32 | 33 |
|
33 | 34 | setup( |
34 | | - name='django-csp-reports', |
| 35 | + name="django-csp-reports", |
35 | 36 | version="{{VERSION_PLACEHOLDER}}", |
36 | 37 | description=DESCRIPTION, |
37 | 38 | long_description=LONG_DESCRIPTION, |
38 | 39 | long_description_content_type="text/markdown", |
39 | | - author='Adam Alton', |
40 | | - author_email='adamalton@gmail.com', |
41 | | - url='https://github.com/adamalton/django-csp-reports', |
| 40 | + author="Adam Alton", |
| 41 | + author_email="adamalton@gmail.com", |
| 42 | + url="https://github.com/adamalton/django-csp-reports", |
42 | 43 | packages=PACKAGES, |
43 | 44 | include_package_data=True, |
44 | | - python_requires='>=3.4', |
| 45 | + python_requires=">=3.4", |
45 | 46 | install_requires=REQUIREMENTS, |
46 | 47 | tests_require=TEST_REQUIREMENTS, |
47 | 48 | extras_require=EXTRAS_REQUIRE, |
48 | | - test_suite='runtests.runtests', |
49 | | - keywords=['django', 'csp', 'content security policy'], |
| 49 | + test_suite="runtests.runtests", |
| 50 | + keywords=["django", "csp", "content security policy"], |
50 | 51 | classifiers=CLASSIFIERS, |
51 | 52 | ) |
0 commit comments