From ad3db182735fd760e5529f1574bfaae8e9e2b963 Mon Sep 17 00:00:00 2001 From: Robert Sachunsky <38561704+bertsky@users.noreply.github.com> Date: Fri, 24 May 2024 16:53:41 +0200 Subject: [PATCH] non-legacy namespace package --- qurator/__init__.py | 1 - setup.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 qurator/__init__.py diff --git a/qurator/__init__.py b/qurator/__init__.py deleted file mode 100644 index b0d6433..0000000 --- a/qurator/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file diff --git a/setup.py b/setup.py index 1165d61..4c2d1fc 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,9 +15,7 @@ setup( keywords='qurator', license='Apache', url="https://qurator.ai", - namespace_packages=['qurator'], - packages=find_packages(exclude=["*.tests", "*.tests.*", - "tests.*", "tests"]), + packages=find_namespace_packages(include=['qurator']), install_requires=install_requires, package_data={ '': ['*.json'],