|
1 | 1 | # PEP-517 build |
2 | 2 |
|
3 | 3 | [build-system] |
4 | | -requires = ["poetry_core>=1.0.8"] |
| 4 | +requires = ["poetry_core>=2.2.0"] |
5 | 5 | build-backend = "poetry.core.masonry.api" |
6 | 6 |
|
7 | | -# Poetry tooling configuration |
8 | | - |
9 | | -[tool.poetry] |
| 7 | +[project] |
10 | 8 | name = "josepy" |
11 | 9 | version = "2.2.0.dev0" |
| 10 | +license = "Apache-2.0" |
| 11 | +license-files = ["LICENSE.txt"] |
12 | 12 | description = "JOSE protocol implementation in Python" |
13 | | -license = "Apache License 2.0" |
| 13 | +readme = "README.rst" |
| 14 | +authors = [{ name = "Certbot Project", email = "[email protected]" }] |
| 15 | +# python 3.9.2 is used as a lower bound here because newer versions of |
| 16 | +# cryptography dropped support for python 3.9.0 and 3.9.1. see |
| 17 | +# https://github.com/pyca/cryptography/pull/12045. when we drop support for |
| 18 | +# python 3.9 altogether, this line can be changed to the simpler 'python = "^3.10"'. |
| 19 | +# This should be kept in sync with the value of tool.poetry.dependencies.python below. |
| 20 | +requires-python = ">=3.9.2" |
| 21 | +dynamic = ["classifiers", "dependencies"] |
| 22 | + |
| 23 | +[project.urls] |
| 24 | +Homepage = "https://github.com/certbot/josepy" |
| 25 | + |
| 26 | +# Poetry tooling configuration |
| 27 | +[tool.poetry] |
14 | 28 | classifiers = [ |
15 | 29 | "Development Status :: 5 - Production/Stable", |
16 | 30 | "Intended Audience :: Developers", |
17 | | - "License :: OSI Approved :: Apache Software License", |
18 | 31 | "Programming Language :: Python", |
19 | 32 | "Programming Language :: Python :: 3", |
| 33 | + # Version specific classifiers are added automatically based on requires-python. |
| 34 | + # Except for 3.9 since the lower bound is 3.9.2 currently. |
20 | 35 | "Programming Language :: Python :: 3.9", |
21 | | - "Programming Language :: Python :: 3.10", |
22 | | - "Programming Language :: Python :: 3.11", |
23 | | - "Programming Language :: Python :: 3.12", |
24 | | - "Programming Language :: Python :: 3.13", |
25 | | - "Programming Language :: Python :: 3.14", |
26 | 36 | "Topic :: Internet :: WWW/HTTP", |
27 | 37 | "Topic :: Security", |
28 | 38 | ] |
29 | | -homepage = "https://github.com/certbot/josepy" |
30 | | -authors = [ "Certbot Project <[email protected]>"] |
31 | | -readme = "README.rst" |
32 | 39 | include = [ |
33 | 40 | "CHANGELOG.rst", |
34 | 41 | "CONTRIBUTING.md", |
35 | 42 | "docs", "tests", |
36 | 43 | ] |
37 | 44 |
|
38 | 45 | [tool.poetry.dependencies] |
39 | | -# This should be kept in sync with the value of target-version in our |
40 | | -# configuration for black below. |
41 | | -# |
42 | | -# python 3.9.2 is used as a lower bound here because newer versions of |
43 | | -# cryptography dropped support for python 3.9.0 and 3.9.1. see |
44 | | -# https://github.com/pyca/cryptography/pull/12045. when we drop support for |
45 | | -# python 3.9 altogether, this line can be changed to the simpler 'python = "^3.10"'. |
| 46 | +# This should be kept in sync with the value of project.requires-python above. |
46 | 47 | python = ">=3.9.2,<4.0" |
47 | 48 | # load_pem_private/public_key (>=0.6) |
48 | 49 | # rsa_recover_prime_factors (>=0.8) |
@@ -78,10 +79,6 @@ jws = "josepy.jws:CLI.run" |
78 | 79 | # Black tooling configuration |
79 | 80 | [tool.black] |
80 | 81 | line-length = 100 |
81 | | -# This should be kept in sync with the version of Python specified in poetry's |
82 | | -# dependencies above. |
83 | | -# TODO add 'py314' once black supports it, see #232 for details |
84 | | -target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] |
85 | 82 |
|
86 | 83 | # Mypy tooling configuration |
87 | 84 |
|
|
0 commit comments