Skip to content

Commit 051a693

Browse files
committed
Port to PEP 735
1 parent ef673c9 commit 051a693

File tree

3 files changed

+50
-37
lines changed

3 files changed

+50
-37
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
22
max-line-length=130
33
ignore=E741
4+
exclude=.venv

poetry.lock

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

pyproject.toml

Lines changed: 43 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,52 @@
1-
[tool.poetry]
1+
[project]
22
name = "msys2-devtools"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Christoph Reiter <[email protected]>"]
6-
license = "BSD-3-Clause"
5+
authors = [{ name = "Christoph Reiter", email = "[email protected]" }]
6+
requires-python = ">=3.10.0,<4.0"
77
readme = "README.md"
8+
license = "BSD-3-Clause"
9+
dependencies = [
10+
"tabulate>=0.9.0,<0.10",
11+
"requests>=2.28.2,<3",
12+
"pydantic>=2.0,<3",
13+
"pyzstd>=0.17.0,<0.18",
14+
]
815

9-
[tool.poetry.dependencies]
10-
python = "^3.10"
11-
tabulate = "^0.9.0"
12-
requests = "^2.28.2"
13-
pydantic = "^2.0"
14-
pyzstd = "^0.17.0"
15-
pgpdump = { version = "^1.5", optional = true }
16-
netaddr = { version = "^1.0.0", optional = true }
17-
fastprogress = { version = "^1.0.3", optional = true }
18-
cyclonedx-python-lib = { version = "^11.0.0", optional = true }
19-
packageurl-python = { version = "^0.17.0", optional = true }
20-
requests-cache = { version = "^1.2.1", optional = true }
21-
22-
[tool.poetry.extras]
23-
sbom = ["cyclonedx-python-lib", "packageurl-python"]
24-
logstats = ["netaddr", "requests-cache"]
25-
sigstats = ["pgpdump", "fastprogress"]
26-
pypi-cache = ["packageurl-python"]
27-
all = ["cyclonedx-python-lib", "packageurl-python", "netaddr", "pgpdump", "fastprogress", "requests-cache"]
16+
[project.optional-dependencies]
17+
sbom = [
18+
"cyclonedx-python-lib>=11.0.0,<12",
19+
"packageurl-python>=0.17.0,<0.18",
20+
]
21+
logstats = [
22+
"netaddr>=1.0.0,<2",
23+
"requests-cache>=1.2.1,<2",
24+
]
25+
sigstats = [
26+
"pgpdump>=1.5,<2",
27+
"fastprogress>=1.0.3,<2",
28+
]
29+
pypi-cache = ["packageurl-python>=0.17.0,<0.18"]
30+
all = [
31+
"cyclonedx-python-lib>=11.0.0,<12",
32+
"packageurl-python>=0.17.0,<0.18",
33+
"netaddr>=1.0.0,<2",
34+
"pgpdump>=1.5,<2",
35+
"fastprogress>=1.0.3,<2",
36+
"requests-cache>=1.2.1,<2",
37+
]
2838

29-
[tool.poetry.scripts]
30-
msys2-srcinfo-cache = 'msys2_devtools.srcinfo_cache:run'
31-
msys2-pypi-cache = 'msys2_devtools.pypi_cache:run'
32-
msys2-sbom = 'msys2_devtools.sbom:run'
39+
[project.scripts]
40+
msys2-srcinfo-cache = "msys2_devtools.srcinfo_cache:run"
41+
msys2-pypi-cache = "msys2_devtools.pypi_cache:run"
42+
msys2-sbom = "msys2_devtools.sbom:run"
3343

34-
[tool.poetry.group.dev.dependencies]
35-
pytest = "^8.0.0"
36-
flake8 = "^7.0.0"
44+
[dependency-groups]
45+
dev = [
46+
"pytest>=8.0.0,<9",
47+
"flake8>=7.0.0,<8",
48+
]
3749

3850
[build-system]
39-
requires = ["poetry-core"]
40-
build-backend = "poetry.core.masonry.api"
51+
requires = ["hatchling"]
52+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)