diff --git a/setup.py b/setup.py index f02a5c8..ba4419b 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,9 @@ def read(*rnames): url="https://github.com/IdentityPython/djangosaml2", download_url="https://pypi.org/project/djangosaml2/", license="Apache 2.0", - packages=find_packages(exclude=["tests", "tests.*"]), + packages=find_packages(exclude=["tests", "tests.*", + "djangosaml2.tests", "djangosaml2.tests.*", + "docs", "docs.*"]), include_package_data=True, zip_safe=False, install_requires=["defusedxml>=0.4.1", "Django>=4.2", "pysaml2>=6.5.1"], diff --git a/tests/run_tests.py b/tests/run_tests.py index 5d3f27a..cca473a 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -26,4 +26,4 @@ # Load models application = get_wsgi_application() -management.call_command("test", "djangosaml2.tests", "testprofiles", "-v", "2") +management.call_command("test", "djangosaml2/tests", "testprofiles", "-v", "2")