Skip to content

Commit

Permalink
Merge pull request #1239 from twm/hatch
Browse files Browse the repository at this point in the history
Repackage with Hatchling
  • Loading branch information
twm authored Nov 20, 2024
2 parents dae0282 + bb3c673 commit 01f187a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools >= 67.7.2", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
dynamic = ["version"]
Expand Down Expand Up @@ -39,15 +39,16 @@ homepage = "https://github.com/twm/yarrharr"
yarrharr = "yarrharr.scripts.yarrharr:main"
yarrharr-fetch = "yarrharr.scripts.fetch:main"

[tool.setuptools]
include-package-data = true
[tool.hatch.build.targets.sdist]
packages = ["yarrharr"]
artifacts = ["/yarrharr/static"]

[tool.setuptools.dynamic]
version = {attr = "yarrharr.__version__"}
[tool.hatch.build.targets.wheel]
packages = ["yarrharr"]
artifacts = ["/yarrharr/static"]

[tool.setuptools.packages.find]
include = ["yarrharr", "yarrharr/*"]
namespaces = false
[tool.hatch.version]
path = "yarrharr/__init__.py"

[tool.ruff]
line-length = 150
Expand Down

0 comments on commit 01f187a

Please sign in to comment.