Skip to content

Commit ad951e0

Browse files
committed
use hatchling as build backend
1 parent 45c5372 commit ad951e0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
*.swp
33
__pycache__/
44
.coverage
5-
/build/
6-
/stagpy.egg-info
75
/uv.lock

pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=74"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling>=1.25"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "stagpy"
@@ -41,12 +41,8 @@ dependencies = [
4141
[project.scripts]
4242
stagpy = "stagpy.__main__:main"
4343

44-
[tool.setuptools.packages.find]
44+
[tool.hatch.build.targets.sdist]
4545
include = ["stagpy"]
46-
namespaces = false
47-
48-
[tool.setuptools.package-data]
49-
stagpy = ["py.typed", "_styles/stagpy-*.mplstyle"]
5046

5147
[tool.pytest.ini_options]
5248
testpaths = ["tests"]

0 commit comments

Comments
 (0)