From e8c8d9a136995c6390b99ef02aac2891034f6c09 Mon Sep 17 00:00:00 2001 From: Patrick Rauscher Date: Fri, 26 Sep 2025 09:13:44 +0200 Subject: [PATCH 1/3] ignore tests in djangosaml2 package too --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6999dd8..99b5af5 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,8 @@ 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.*"]), include_package_data=True, zip_safe=False, install_requires=["defusedxml>=0.4.1", "Django>=4.2", "pysaml2>=6.5.1"], From fa9b4621b0c2a0715a35cc5752b69fc309959b04 Mon Sep 17 00:00:00 2001 From: Patrick Rauscher Date: Fri, 26 Sep 2025 09:16:30 +0200 Subject: [PATCH 2/3] also avoid storing stub docs in final packages --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 99b5af5..f9e40aa 100644 --- a/setup.py +++ b/setup.py @@ -59,8 +59,7 @@ 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.*", "djangosaml2.tests", - "djangosaml2.tests.*"]), + packages=find_packages(exclude=["tests", "djangosaml2.tests", "docs"]), include_package_data=True, zip_safe=False, install_requires=["defusedxml>=0.4.1", "Django>=4.2", "pysaml2>=6.5.1"], From 903f6d03bf9cd920d647cc97d12e714eaf39ee59 Mon Sep 17 00:00:00 2001 From: Patrick Rauscher Date: Fri, 26 Sep 2025 09:18:05 +0200 Subject: [PATCH 3/3] (re-)add wildcards per setuptools-docs --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f9e40aa..6f58049 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,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", "djangosaml2.tests", "docs"]), + 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"],