Skip to content

Commit 3ab3b2c

Browse files
bjoernricksgreenbonebot
authored andcommitted
Misc: Use standardized project description
Update the pyproject.toml file to use the standardized fields for the python project description according to https://packaging.python.org/en/latest/specifications/pyproject-toml/ This will make the transition to uv easier at the end.
1 parent eb2faae commit 3ab3b2c

2 files changed

Lines changed: 43 additions & 40 deletions

File tree

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: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
[tool.poetry]
1+
[project]
2+
authors = [{ name = "Greenbone AG", email = "info@greenbone.net" }]
23
name = "pontos"
34
version = "26.5.1.dev1"
45
description = "Common utilities and tools maintained by Greenbone AG"
5-
authors = ["Greenbone AG <info@greenbone.net>"]
66
license = "GPL-3.0-or-later"
77
readme = "README.md"
8-
homepage = "https://github.com/greenbone/pontos/"
9-
repository = "https://github.com/greenbone/pontos/"
10-
documentation = "https://greenbone.github.io/pontos/"
11-
128
classifiers = [
139
# Full list: https://pypi.org/pypi?%3Aaction=list_classifiers
1410
"Development Status :: 4 - Beta",
15-
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long
11+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
1612
"Environment :: Console",
1713
"Intended Audience :: Developers",
1814
"Programming Language :: Python :: 3.10",
@@ -24,25 +20,51 @@ classifiers = [
2420
"Topic :: Software Development :: Libraries :: Python Modules",
2521
]
2622

23+
requires-python = ">=3.10,<4.0"
24+
dependencies = [
25+
"colorful >=0.5.4",
26+
"tomlkit >=0.5.11",
27+
"packaging >=20.3",
28+
"httpx[http2] >=0.23",
29+
"rich >=12.4.4",
30+
"python-dateutil >=2.8.2",
31+
"semver >=2.13",
32+
"lxml >=4.9.0",
33+
"shtab >=1.7.0",
34+
]
35+
36+
[project.urls]
37+
homepage = "https://github.com/greenbone/pontos/"
38+
repository = "https://github.com/greenbone/pontos/"
39+
documentation = "https://greenbone.github.io/pontos/"
40+
41+
[project.scripts]
42+
pontos = 'pontos:main'
43+
pontos-version = 'pontos.version:main'
44+
pontos-release = 'pontos.release:main'
45+
pontos-update-header = 'pontos.updateheader:main'
46+
pontos-changelog = 'pontos.changelog:main'
47+
pontos-github = 'pontos.github:main'
48+
pontos-github-actions = 'pontos.github.actions:main'
49+
pontos-github-script = 'pontos.github.script:main'
50+
pontos-nvd-cve = 'pontos.nvd.cve:cve_main'
51+
pontos-nvd-cves = 'pontos.nvd.cve:cves_main'
52+
pontos-nvd-cve-changes = 'pontos.nvd.cve_changes:main'
53+
pontos-nvd-cpe = 'pontos.nvd.cpe:cpe_main'
54+
pontos-nvd-cpes = 'pontos.nvd.cpe:cpes_main'
55+
pontos-nvd-cpe-match = 'pontos.nvd.cpe_matches:cpe_match_main'
56+
pontos-nvd-cpe-matches = 'pontos.nvd.cpe_matches:cpe_matches_main'
57+
pontos-nvd-sources = 'pontos.nvd.source:main'
58+
59+
[tool.poetry]
60+
requires-poetry = ">=2.0"
2761
packages = [
2862
{ include = "pontos" },
2963
{ include = "tests", format = "sdist" },
3064
{ include = "poetry.lock", format = "sdist" },
3165
]
3266
include = ["pontos/updateheader/templates/", "pontos/github/pr_template.md"]
3367

34-
[tool.poetry.dependencies]
35-
python = "^3.10"
36-
colorful = ">=0.5.4"
37-
tomlkit = ">=0.5.11"
38-
packaging = ">=20.3"
39-
httpx = { extras = ["http2"], version = ">=0.23" }
40-
rich = ">=12.4.4"
41-
python-dateutil = ">=2.8.2"
42-
semver = ">=2.13"
43-
lxml = ">=4.9.0"
44-
shtab = ">=1.7.0"
45-
4668
[tool.poetry.group.dev.dependencies]
4769
autohooks-plugin-ruff = ">=23.6.1"
4870
autohooks-plugin-mypy = ">=23.3.0"
@@ -88,29 +110,10 @@ branch = true
88110
omit = ["tests/*", "pontos/github/scripts/*", "*/__init__.py"]
89111
source = ["pontos"]
90112

91-
[tool.poetry.scripts]
92-
pontos = 'pontos:main'
93-
pontos-version = 'pontos.version:main'
94-
pontos-release = 'pontos.release:main'
95-
pontos-update-header = 'pontos.updateheader:main'
96-
pontos-changelog = 'pontos.changelog:main'
97-
pontos-github = 'pontos.github:main'
98-
pontos-github-actions = 'pontos.github.actions:main'
99-
pontos-github-script = 'pontos.github.script:main'
100-
pontos-nvd-cve = 'pontos.nvd.cve:cve_main'
101-
pontos-nvd-cves = 'pontos.nvd.cve:cves_main'
102-
pontos-nvd-cve-changes = 'pontos.nvd.cve_changes:main'
103-
pontos-nvd-cpe = 'pontos.nvd.cpe:cpe_main'
104-
pontos-nvd-cpes = 'pontos.nvd.cpe:cpes_main'
105-
pontos-nvd-cpe-match = 'pontos.nvd.cpe_matches:cpe_match_main'
106-
pontos-nvd-cpe-matches = 'pontos.nvd.cpe_matches:cpe_matches_main'
107-
pontos-nvd-sources = 'pontos.nvd.source:main'
108-
109113
[build-system]
110114
requires = ["poetry-core>=1.0.0"]
111115
build-backend = "poetry.core.masonry.api"
112116

113-
114117
[tool.git-cliff.changelog]
115118
# template for the changelog header
116119
header = """

0 commit comments

Comments
 (0)