From 014b143f31695046d4f3f91ce785350b65a126fb Mon Sep 17 00:00:00 2001 From: Sandro Date: Thu, 23 May 2024 01:04:39 +0200 Subject: [PATCH] Exclude artifacts from sdist and wheel (#1902) Co-authored-by: Ryan Ly --- MANIFEST.in | 5 ----- pyproject.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index dd0fdadda..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include license.txt Legal.txt src/pynwb/_due.py -include requirements.txt requirements-dev.txt requirements-doc.txt requirements-min.txt environment-ros3.yml -include test.py tox.ini - -graft tests diff --git a/pyproject.toml b/pyproject.toml index 4701ca7d5..92e921999 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,8 +55,20 @@ source = "vcs" # src/pynwb/__init__.py to set `__version__` (from _version.py). version-file = "src/pynwb/_version.py" +[tool.hatch.build.targets.sdist] +exclude = [ + ".git*", + ".codecov.yml", + ".readthedocs.yaml", +] + [tool.hatch.build.targets.wheel] packages = ["src/pynwb"] +exclude = [ + ".git*", + ".codecov.yml", + ".readthedocs.yaml", +] [tool.codespell] skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,nwb-schema,./docs/_build/*,*.ipynb"