Skip to content

Commit 5152382

Browse files
committed
Update the project configuration for Poetry 2.0.x
Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
1 parent 7387e05 commit 5152382

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

pyproject.toml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
[tool.poetry]
1+
[project]
22
name = "firmitas"
33
version = "0.1.4"
44
description = "Simple notification service for X.509-standard TLS certificate statuses"
5-
authors = ["Akashdeep Dhar <akashdeep.dhar@gmail.com>"]
6-
license = "GPL-3.0-or-later"
7-
maintainers = ["Akashdeep Dhar <akashdeep.dhar@gmail.com>"]
5+
authors = [
6+
{ name = "Akashdeep Dhar", email = "akashdeep.dhar@gmail.com" }
7+
]
8+
maintainers = [
9+
{ name = "Akashdeep Dhar", email = "akashdeep.dhar@gmail.com" }
10+
]
11+
license = { text = "GPL-3.0-or-later" }
812
readme = "README.md"
9-
homepage = "https://gitlab.com/t0xic0der/firmitas/"
10-
repository = "https://gitlab.com/t0xic0der/firmitas/"
11-
documentation = "https://gitlab.com/t0xic0der/firmitas/-/blob/main/README.md"
1213
keywords = ["notification", "security", "certificate"]
13-
classifiers= [
14+
classifiers = [
1415
"Development Status :: 4 - Beta",
1516
"Intended Audience :: Developers",
1617
"Intended Audience :: System Administrators",
@@ -24,21 +25,28 @@ classifiers= [
2425
"Topic :: System :: Networking",
2526
"Topic :: System :: Networking :: Monitoring",
2627
]
28+
urls.homepage = "https://gitlab.com/t0xic0der/firmitas/"
29+
urls.repository = "https://gitlab.com/t0xic0der/firmitas/"
30+
urls.documentation = "https://gitlab.com/t0xic0der/firmitas/-/blob/main/README.md"
2731

28-
[tool.poetry.dependencies]
29-
python = ">=3.8,<4"
30-
click = ">=8.0.0,<9"
31-
cryptography = ">=36.0.0"
32-
pyyaml = ">=5.0.0,<7"
33-
requests = ">=2.20.0,<3"
32+
dependencies = [
33+
"python>=3.8,<4",
34+
"click>=8.0.0,<9",
35+
"cryptography>=36.0.0",
36+
"pyyaml>=5.0.0,<7",
37+
"requests>=2.20.0,<3"
38+
]
3439

35-
[tool.poetry.group.dev.dependencies]
36-
pytest = "^7.1.3 || ^8.0.0"
37-
pytest-cov = "^4.1.0 || ^5.0.0 || ^6.0.0"
38-
ruff = "^0.2.0 || ^0.3.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0"
39-
tox = "^4.0.0"
40-
vcrpy = "^5.1.0 || ^6.0.0"
41-
pytest-recording = "^0.13.0"
40+
optional_dependencies = {
41+
dev = [
42+
"pytest>=7.1.3,<8.0.0",
43+
"pytest-cov>=4.1.0,<6.0.0",
44+
"ruff>=0.2.0,<0.9.0",
45+
"tox>=4.0.0",
46+
"vcrpy>=5.1.0,<7.0.0",
47+
"pytest-recording>=0.13.0"
48+
]
49+
}
4250

4351
[tool.ruff]
4452
line-length = 100
@@ -48,8 +56,8 @@ fix = true
4856
select = ["E", "F", "W", "I", "S", "B", "UP"]
4957

5058
[build-system]
51-
requires = ["poetry-core"]
59+
requires = ["poetry-core>=1.5.0"]
5260
build-backend = "poetry.core.masonry.api"
5361

54-
[tool.poetry.scripts]
62+
[project.scripts]
5563
firmitas = "firmitas.main:main"

0 commit comments

Comments
 (0)