Skip to content

Commit 9ba8c4b

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 9ba8c4b

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

pyproject.toml

Lines changed: 30 additions & 24 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,26 @@ 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"
31+
dependencies = [
32+
"python>=3.8,<4",
33+
"click>=8.0.0,<9",
34+
"cryptography>=36.0.0",
35+
"pyyaml>=5.0.0,<7",
36+
"requests>=2.20.0,<3"
37+
]
2738

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"
34-
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"
39+
[project.optional-dependencies]
40+
dev = [
41+
"pytest>=7.1.3,<8.0.0",
42+
"pytest-cov>=4.1.0,<6.0.0",
43+
"ruff>=0.2.0,<0.9.0",
44+
"tox>=4.0.0",
45+
"vcrpy>=5.1.0,<7.0.0",
46+
"pytest-recording>=0.13.0"
47+
]
4248

4349
[tool.ruff]
4450
line-length = 100
@@ -48,8 +54,8 @@ fix = true
4854
select = ["E", "F", "W", "I", "S", "B", "UP"]
4955

5056
[build-system]
51-
requires = ["poetry-core"]
57+
requires = ["poetry-core>=1.5.0"]
5258
build-backend = "poetry.core.masonry.api"
5359

54-
[tool.poetry.scripts]
60+
[project.scripts]
5561
firmitas = "firmitas.main:main"

0 commit comments

Comments
 (0)