Skip to content

Commit 693a0ee

Browse files
committed
Switch from Poetry to uv and Hatchling
1 parent b8f2bf8 commit 693a0ee

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.egg-info/
2+
/*.lock
23
/.*_cache/
34
/.coverage
45
/.dmypy.json
@@ -8,5 +9,4 @@
89
/coverage.xml
910
/dist/
1011
/docs/_build/
11-
/poetry.lock
1212
__pycache__/

pyproject.toml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
[tool.poetry]
1+
[project]
22
name = "brreg"
33
version = "1.2.0"
44
description = "API client for Brønnøysundregistrene."
5-
authors = ["Stein Magnus Jodal <[email protected]>"]
6-
license = "Apache-2.0"
5+
authors = [{ name = "Stein Magnus Jodal", email = "[email protected]" }]
6+
requires-python = ">=3.9"
77
readme = "README.md"
8-
homepage = "https://github.com/crdbrd/python-brreg"
9-
repository = "https://github.com/crdbrd/python-brreg"
10-
documentation = "https://brreg.readthedocs.io"
8+
license = "Apache-2.0"
119
keywords = ["brreg", "enhetsregisteret"]
1210
classifiers = [
1311
"Development Status :: 5 - Production/Stable",
1412
"Intended Audience :: Developers",
1513
"Topic :: Software Development :: Libraries",
1614
]
17-
18-
[tool.poetry.dependencies]
19-
python = "^3.9.0"
20-
httpx = ">= 0.24"
21-
pydantic = ">= 2"
22-
23-
[tool.poetry.group.dev.dependencies]
24-
nox = ">=2024.10.9,<2026.0.0"
25-
26-
[tool.poetry.group.docs.dependencies]
27-
sphinx = ">= 5.3"
28-
sphinx-rtd-theme = ">= 1.2"
29-
sphinx-autodoc-typehints = ">= 1.12"
30-
31-
[tool.poetry.group.mypy.dependencies]
32-
mypy = "^1.11.1"
33-
34-
[tool.poetry.group.pyright.dependencies]
35-
pyright = "^1.1.394"
36-
37-
[tool.poetry.group.ruff.dependencies]
38-
ruff = "0.9.6"
39-
40-
[tool.poetry.group.tests.dependencies]
41-
coverage = { extras = ["toml"], version = "^7.4.1" }
42-
pytest = ">=7.4.4,<9.0.0"
43-
pytest-cov = ">=4.1,<7.0"
44-
pytest-httpx = "0.35.0"
45-
pytest-watcher = "^0.4.1"
15+
dependencies = ["httpx>=0.24", "pydantic>=2"]
16+
17+
[project.urls]
18+
Homepage = "https://github.com/crdbrd/python-brreg"
19+
Repository = "https://github.com/crdbrd/python-brreg"
20+
Documentation = "https://brreg.readthedocs.io"
21+
22+
[dependency-groups]
23+
dev = [
24+
"nox>=2024.10.9",
25+
{ include-group = "docs" },
26+
{ include-group = "mypy" },
27+
{ include-group = "pyright" },
28+
{ include-group = "ruff" },
29+
{ include-group = "tests" },
30+
]
31+
docs = [
32+
"sphinx>=5.3",
33+
"sphinx-rtd-theme>=1.2",
34+
"sphinx-autodoc-typehints>=1.12",
35+
]
36+
mypy = ["mypy==1.11.1"]
37+
pyright = ["pyright==1.1.394"]
38+
ruff = ["ruff==0.9.6"]
39+
tests = [
40+
"coverage[toml]>=7.4.1",
41+
"pytest>=7.4.4",
42+
"pytest-cov>=4.1",
43+
"pytest-httpx==0.35.0",
44+
"pytest-watcher>=0.4.1",
45+
]
4646

4747

4848
[tool.coverage.paths]
@@ -113,5 +113,5 @@ reportPrivateUsage = false
113113

114114

115115
[build-system]
116-
requires = ["poetry-core>=1.0"]
117-
build-backend = "poetry.core.masonry.api"
116+
requires = ["hatchling"]
117+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)