Skip to content

Commit

Permalink
Exclude artifacts from sdist and wheel
Browse files Browse the repository at this point in the history
Building the wheel from the PyPI sdist will include those files and
directories otherwise. They are also distributed in the uploaded wheel.
  • Loading branch information
penguinpee committed May 13, 2024
1 parent 86b274d commit 66c3c1b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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*",
".codespellrc",
".readthedocs.yaml",
]

[tool.hatch.build.targets.wheel]
packages = ["src/pynwb"]
exclude = [
".git*",
".codespellrc",
".readthedocs.yaml",
]

[tool.codespell]
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,nwb-schema,./docs/_build/*,*.ipynb"
Expand Down

0 comments on commit 66c3c1b

Please sign in to comment.