Skip to content

Commit 94e07aa

Browse files
committed
Migrate to Poetry 2.0
1 parent 8e2afe2 commit 94e07aa

File tree

1 file changed

+35
-33
lines changed

1 file changed

+35
-33
lines changed

pyproject.toml

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
1-
[tool.poetry]
1+
[project]
22
name = "fido2"
33
version = "2.0.0-dev.0"
44
description = "FIDO2/WebAuthn library for implementing clients and servers."
5-
authors = ["Dain Nilsson <dain@yubico.com>"]
6-
homepage = "https://github.com/Yubico/python-fido2"
7-
repository = "https://github.com/Yubico/python-fido2"
5+
authors = [{ name = "Dain Nilsson", email = "<dain@yubico.com>" }]
6+
readme = "README.adoc"
7+
requires-python = ">=3.10, <4"
8+
license = { file = "COPYING" }
89
keywords = ["fido2", "webauthn", "ctap", "u2f"]
910
classifiers = [
10-
"License :: OSI Approved :: BSD License",
11-
"License :: OSI Approved :: Apache Software License",
12-
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
13-
"Operating System :: MacOS",
14-
"Operating System :: Microsoft :: Windows",
15-
"Operating System :: POSIX :: Linux",
16-
"Development Status :: 5 - Production/Stable",
17-
"Intended Audience :: Developers",
18-
"Intended Audience :: System Administrators",
19-
"Topic :: Internet",
20-
"Topic :: Security :: Cryptography",
21-
"Topic :: Software Development :: Libraries :: Python Modules"
22-
]
23-
include = [
24-
{ path = "COPYING", format = "sdist"},
25-
{ path = "COPYING.MPLv2", format = "sdist"},
26-
{ path = "COPYING.APLv2", format = "sdist"},
27-
{ path = "NEWS", format = "sdist"},
28-
{ path = "README.adoc", format = "sdist"},
29-
{ path= "tests/", format = "sdist"},
30-
{ path= "examples/", format = "sdist"},
11+
"License :: OSI Approved :: BSD License",
12+
"License :: OSI Approved :: Apache Software License",
13+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
14+
"Operating System :: MacOS",
15+
"Operating System :: Microsoft :: Windows",
16+
"Operating System :: POSIX :: Linux",
17+
"Development Status :: 5 - Production/Stable",
18+
"Intended Audience :: Developers",
19+
"Intended Audience :: System Administrators",
20+
"Topic :: Internet",
21+
"Topic :: Security :: Cryptography",
22+
"Topic :: Software Development :: Libraries :: Python Modules",
3123
]
24+
dependencies = ["cryptography (>=2.6, !=35, <47)"]
25+
26+
[project.optional-dependencies]
27+
pcsc = ["pyscard (>=1.9, <3)"]
3228

33-
[tool.poetry.dependencies]
34-
python = "^3.10"
35-
cryptography = ">=2.6, !=35, <47"
36-
pyscard = {version = "^1.9 || ^2", optional = true}
29+
[project.urls]
30+
Homepage = "https://github.com/Yubico/python-fido2"
3731

38-
[tool.poetry.extras]
39-
pcsc = ["pyscard"]
32+
[tool.poetry]
33+
include = [
34+
{ path = "COPYING", format = "sdist" },
35+
{ path = "COPYING.MPLv2", format = "sdist" },
36+
{ path = "COPYING.APLv2", format = "sdist" },
37+
{ path = "NEWS", format = "sdist" },
38+
{ path = "README.adoc", format = "sdist" },
39+
{ path = "tests/", format = "sdist" },
40+
{ path = "examples/", format = "sdist" },
41+
]
4042

41-
[tool.poetry.dev-dependencies]
43+
[tool.poetry.group.dev.dependencies]
4244
pytest = "^7.0"
4345
Sphinx = "^8.1"
4446
sphinx-rtd-theme = "^3.0.1"
4547
sphinx-autoapi = "^3.3.3"
4648

4749
[build-system]
48-
requires = ["poetry-core>=1.0.0"]
50+
requires = ["poetry-core>=2.0"]
4951
build-backend = "poetry.core.masonry.api"
5052

5153
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)