Skip to content

Commit e590cb2

Browse files
cdce8pohemorange
andauthored
Update poetry-core to v2 (#242)
Co-authored-by: ohemorange <[email protected]>
1 parent 31b936f commit e590cb2

File tree

2 files changed

+24
-27
lines changed

2 files changed

+24
-27
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
# PEP-517 build
22

33
[build-system]
4-
requires = ["poetry_core>=1.0.8"]
4+
requires = ["poetry_core>=2.2.0"]
55
build-backend = "poetry.core.masonry.api"
66

7-
# Poetry tooling configuration
8-
9-
[tool.poetry]
7+
[project]
108
name = "josepy"
119
version = "2.2.0.dev0"
10+
license = "Apache-2.0"
11+
license-files = ["LICENSE.txt"]
1212
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]
1428
classifiers = [
1529
"Development Status :: 5 - Production/Stable",
1630
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: Apache Software License",
1831
"Programming Language :: Python",
1932
"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.
2035
"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",
2636
"Topic :: Internet :: WWW/HTTP",
2737
"Topic :: Security",
2838
]
29-
homepage = "https://github.com/certbot/josepy"
30-
authors = ["Certbot Project <[email protected]>"]
31-
readme = "README.rst"
3239
include = [
3340
"CHANGELOG.rst",
3441
"CONTRIBUTING.md",
3542
"docs", "tests",
3643
]
3744

3845
[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.
4647
python = ">=3.9.2,<4.0"
4748
# load_pem_private/public_key (>=0.6)
4849
# rsa_recover_prime_factors (>=0.8)
@@ -78,10 +79,6 @@ jws = "josepy.jws:CLI.run"
7879
# Black tooling configuration
7980
[tool.black]
8081
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']
8582

8683
# Mypy tooling configuration
8784

0 commit comments

Comments
 (0)