From 86a48bc7b7570ce15217079611c81299855530cb Mon Sep 17 00:00:00 2001 From: meejah Date: Thu, 5 Dec 2024 00:13:35 -0700 Subject: [PATCH] make pyproject config match old MANIFEST --- MANIFEST.in | 13 ------------- pyproject.toml | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 14 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 6cec1c847..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,13 +0,0 @@ -include README.rst -include COPYING.GPL COPYING.TGPPL.rst CREDITS Makefile NEWS.rst Tahoe.home -include relnotes.txt -include Dockerfile -include tox.ini .appveyor.yml .travis.yml -include .coveragerc -recursive-include src *.xhtml *.js *.png *.css *.svg *.txt *.yaml -graft docs -graft misc -graft static -graft integration - -global-exclude *~ *.pyc diff --git a/pyproject.toml b/pyproject.toml index 3e42de4cd..f8af1c065 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -262,7 +262,38 @@ build-backend = "hatchling.build" # https://github.com/ofek/hatch-vcs/issues/35#issuecomment-1452025896 [tool.hatch.build] -include = ["src"] +include = [ + "src/", + "COPYING.GPL", + "COPYING.TGPPL.rst", + "CREDITS", + "Makefile", + "NEWS.rst", + "Tahoe.home", + "relnotes.txt", + "Dockerfile", + "tox.ini", + ".appveyor.yml", + ".travis.yml", + ".coveragerc", + "*.xhtml", + "*.png", + "*.css", + "*.svg", + "docs/", + "misc/", + "static/", + "integration/", + "src/allmydata/test/data/*.txt", + "src/allmydata/test/data/*.yaml" +] +exclude = [ + "*~", + "*.pyc", + "#*#", + "venv*/", + ".tox/" +] [tool.hatch.build.targets.wheel] packages = ["src/allmydata"]