From e2f106cd0bcf5dd6a525868b4498b9cd8e8a2667 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Sun, 22 Sep 2024 23:23:35 +0200 Subject: [PATCH] Extends the contents of source distributions Note that its seemingly hatchling that always adds .gitignore files. Closes #73. --- .gitignore | 3 +++ pyproject.toml | 16 +++++++++++++++- tests/files/.gitignore | 1 - 3 files changed, 18 insertions(+), 2 deletions(-) delete mode 100644 tests/files/.gitignore diff --git a/.gitignore b/.gitignore index 7b979078..720c1e9c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,8 @@ dist/ *.egg-info/ .idea/ .mypy_cache/ +*.orig pip-wheel-metadata/ .pytest_cache/ +# in tests/files ; but hatchling doesn't consider a .gitignore there +.result.xml diff --git a/pyproject.toml b/pyproject.toml index a64fca23..b95890cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,7 +106,21 @@ rst-roles = "attr,class,doc,exc,func,meth,obj,ref,term" # [tool.hatch.build.targets.sdist] -only-include = ["_delb", "delb", "CITATION.cff"] +only-include = [ + "benchmarks", + "_delb", + "delb", + "docs", + "tests", + ".editorconfig", + "CHANGES.rst", + "CITATION.cff", + "delb_logo.svg", + "Justfile", + "LICENSE.txt", + "pyproject.toml", + "README.rst", +] [tool.hatch.build.targets.wheel] packages = ["_delb", "delb"] diff --git a/tests/files/.gitignore b/tests/files/.gitignore deleted file mode 100644 index 5ce8093f..00000000 --- a/tests/files/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.result.xml