Files
Matt Davis d46217b40a Include unit tests in sdist for downstream distribution testing (#6482)
Add tests/__init__.py, tests/conftest.py, and tests/unit/*.py to the sdist
package so downstream distributions (like OpenIndiana, Gentoo) can run
the unit tests as part of their package building process.

The integration tests and fixtures are not included as they require
git submodules and network access, but the unit tests can run standalone
with: pytest -m 'not cli and not needs_internet' tests/unit/

Fixes #6294
2025-12-10 10:03:18 -05:00

38 lines
1.2 KiB
Plaintext

include LICENSE README.md CONTRIBUTING.md CHANGELOG.md NOTICES HISTORY.txt
include Makefile pyproject.toml get-pipenv.py *.yml
include examples/Pipfil*
include *.md
recursive-include pipenv LICENSE LICENSE* *LICENSE* *COPYING* t32.exe t64.exe w32.exe w64.exe cacert.pem
recursive-include pipenv *.cfg
recursive-include pipenv/vendor *.c
recursive-include pipenv *.md *.APACHE *.BSD
recursive-include pipenv Makefile
recursive-include pipenv/vendor vendor.txt
recursive-include pipenv *.json
recursive-include pipenv *.rst
include pipenv/patched/pip/_vendor/vendor.txt
include pipenv/patched/patched.txt
include pipenv/vendor/Makefile
include pipenv/pipenv.1
recursive-include docs Makefile *.rst *.py *.bat
recursive-include docs/_templates *.html
recursive-include docs/_static *.js *.css *.png
recursive-exclude tests/test_artifacts *.pyd *.so *.pyc *.egg-info PKG-INFO
# Include unit tests in sdist for downstream distribution testing
# See: https://github.com/pypa/pipenv/issues/6294
include tests/__init__.py
include tests/conftest.py
recursive-include tests/unit *.py
prune .azure-pipelines
prune .github
prune pipenv/vendor/importlib_metadata/tests
prune pipenv/vendor/importlib_resources/tests
exclude examples/*