When installing the package, I get a tests folder added to my site-packages with the content of the tests from the repo. This is polluting the virtualenv with code that users don't usually need.
This is only affecting the wheel, the source distribution (sdist) still contains tests, in case downstream distribution want to be able to run the tests themselves:
When installing the package, I get a
tests
folder added to mysite-packages
with the content of the tests from the repo. This is polluting the virtualenv with code that users don't usually need.Before
unzip -l dist/*.whl
After
unzip -l dist/*.whl
This is only affecting the wheel, the source distribution (sdist) still contains tests, in case downstream distribution want to be able to run the tests themselves:
``` django_hosts-0.1.dev330+g625969b.d20240726/ django_hosts-0.1.dev330+g625969b.d20240726/.coveragerc django_hosts-0.1.dev330+g625969b.d20240726/.github/ django_hosts-0.1.dev330+g625969b.d20240726/.github/workflows/ django_hosts-0.1.dev330+g625969b.d20240726/.github/workflows/release.yml django_hosts-0.1.dev330+g625969b.d20240726/.github/workflows/test.yml django_hosts-0.1.dev330+g625969b.d20240726/.gitignore django_hosts-0.1.dev330+g625969b.d20240726/.pre-commit-config.yaml django_hosts-0.1.dev330+g625969b.d20240726/AUTHORS django_hosts-0.1.dev330+g625969b.d20240726/CODE_OF_CONDUCT.md django_hosts-0.1.dev330+g625969b.d20240726/CONTRIBUTING.md django_hosts-0.1.dev330+g625969b.d20240726/LICENSE django_hosts-0.1.dev330+g625969b.d20240726/MANIFEST.in django_hosts-0.1.dev330+g625969b.d20240726/Makefile django_hosts-0.1.dev330+g625969b.d20240726/PKG-INFO django_hosts-0.1.dev330+g625969b.d20240726/README.rst django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/ django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/apps.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/callbacks.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/checks.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/defaults.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/managers.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/middleware.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/resolvers.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/templatetags/ django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/templatetags/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/templatetags/hosts.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/templatetags/hosts_override.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts/utils.py django_hosts-0.1.dev330+g625969b.d20240726/django_hosts.egg-info/ django_hosts-0.1.dev330+g625969b.d20240726/django_hosts.egg-info/PKG-INFO django_hosts-0.1.dev330+g625969b.d20240726/django_hosts.egg-info/SOURCES.txt django_hosts-0.1.dev330+g625969b.d20240726/django_hosts.egg-info/dependency_links.txt django_hosts-0.1.dev330+g625969b.d20240726/django_hosts.egg-info/top_level.txt django_hosts-0.1.dev330+g625969b.d20240726/docs/ django_hosts-0.1.dev330+g625969b.d20240726/docs/Makefile django_hosts-0.1.dev330+g625969b.d20240726/docs/callbacks.rst django_hosts-0.1.dev330+g625969b.d20240726/docs/changelog.rst django_hosts-0.1.dev330+g625969b.d20240726/docs/conf.py django_hosts-0.1.dev330+g625969b.d20240726/docs/faq.rst django_hosts-0.1.dev330+g625969b.d20240726/docs/index.rst django_hosts-0.1.dev330+g625969b.d20240726/docs/make.bat django_hosts-0.1.dev330+g625969b.d20240726/docs/reference.rst django_hosts-0.1.dev330+g625969b.d20240726/docs/requirements.txt django_hosts-0.1.dev330+g625969b.d20240726/docs/templatetags.rst django_hosts-0.1.dev330+g625969b.d20240726/setup.cfg django_hosts-0.1.dev330+g625969b.d20240726/setup.py django_hosts-0.1.dev330+g625969b.d20240726/tests/ django_hosts-0.1.dev330+g625969b.d20240726/tests/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/tests/base.py django_hosts-0.1.dev330+g625969b.d20240726/tests/broken_module.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/ django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/appended.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/blank.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/blank_wildcard.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/multiple.py django_hosts-0.1.dev330+g625969b.d20240726/tests/hosts/simple.py django_hosts-0.1.dev330+g625969b.d20240726/tests/migrations/ django_hosts-0.1.dev330+g625969b.d20240726/tests/migrations/0001_initial.py django_hosts-0.1.dev330+g625969b.d20240726/tests/migrations/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/tests/models.py django_hosts-0.1.dev330+g625969b.d20240726/tests/settings.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_defaults.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_middleware.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_resolvers.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_sites.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_templatetags.py django_hosts-0.1.dev330+g625969b.d20240726/tests/test_utils.py django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/ django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/__init__.py django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/complex.py django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/multiple.py django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/root.py django_hosts-0.1.dev330+g625969b.d20240726/tests/urls/simple.py django_hosts-0.1.dev330+g625969b.d20240726/tests/views.py django_hosts-0.1.dev330+g625969b.d20240726/tox.ini ```tar tf dist/*.tar.gz