From 74bac73b41b49770f021fbd4ac4bfb49b12e4ef7 Mon Sep 17 00:00:00 2001 From: Robert Sachunsky <38561704+bertsky@users.noreply.github.com> Date: Thu, 23 May 2024 21:05:16 +0200 Subject: [PATCH 1/2] non-legacy namespace package --- __init__.py | 1 - qurator/__init__.py | 1 - qurator/sbb_ned/__init__.py | 1 - qurator/sbb_ned/embeddings/__init__.py | 1 - qurator/sbb_ned/encoding/__init__.py | 1 - qurator/sbb_ned/ground_truth/__init__.py | 1 - qurator/sbb_ned/models/__init__.py | 1 - qurator/sbb_ned/webapp/__init__.py | 1 - 8 files changed, 8 deletions(-) delete mode 100644 __init__.py delete mode 100644 qurator/__init__.py diff --git a/__init__.py b/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/qurator/__init__.py b/qurator/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/qurator/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/qurator/sbb_ned/__init__.py b/qurator/sbb_ned/__init__.py index de40ea7..e69de29 100644 --- a/qurator/sbb_ned/__init__.py +++ b/qurator/sbb_ned/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/qurator/sbb_ned/embeddings/__init__.py b/qurator/sbb_ned/embeddings/__init__.py index de40ea7..e69de29 100644 --- a/qurator/sbb_ned/embeddings/__init__.py +++ b/qurator/sbb_ned/embeddings/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/qurator/sbb_ned/encoding/__init__.py b/qurator/sbb_ned/encoding/__init__.py index b0d6433..e69de29 100644 --- a/qurator/sbb_ned/encoding/__init__.py +++ b/qurator/sbb_ned/encoding/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file diff --git a/qurator/sbb_ned/ground_truth/__init__.py b/qurator/sbb_ned/ground_truth/__init__.py index de40ea7..e69de29 100644 --- a/qurator/sbb_ned/ground_truth/__init__.py +++ b/qurator/sbb_ned/ground_truth/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/qurator/sbb_ned/models/__init__.py b/qurator/sbb_ned/models/__init__.py index b0d6433..e69de29 100644 --- a/qurator/sbb_ned/models/__init__.py +++ b/qurator/sbb_ned/models/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file diff --git a/qurator/sbb_ned/webapp/__init__.py b/qurator/sbb_ned/webapp/__init__.py index b0d6433..e69de29 100644 --- a/qurator/sbb_ned/webapp/__init__.py +++ b/qurator/sbb_ned/webapp/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file From 2a69821e9edf0bbfca3a9f6aaca495e6b305b3cd Mon Sep 17 00:00:00 2001 From: Robert Sachunsky <38561704+bertsky@users.noreply.github.com> Date: Fri, 24 May 2024 16:33:40 +0200 Subject: [PATCH 2/2] fix namespace pkg setup --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 42890f1..35867e0 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from io import open -from setuptools import find_packages, setup +from setuptools import find_namespace_packages, setup with open('requirements.txt') as fp: install_requires = fp.read() @@ -15,8 +15,7 @@ keywords='qurator', license='Apache', url="https://qurator.ai", - packages=find_packages(exclude=["*.tests", "*.tests.*", - "tests.*", "tests"]), + packages=find_namespace_packages(include=['qurator']), install_requires=install_requires, entry_points={ 'console_scripts': [