diff --git a/CHANGES.txt b/CHANGES.txt index 039bc65..05fa99c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,8 +5,10 @@ Changes for crash Unreleased ========== - Python: Migrated to use "implicit namespace packages" instead of "declared - namespaces" for the ``crate`` namespace package, see `PEP 420`_. + namespaces" for the ``crate`` namespace package, see `PEP 420`_ + and `Package Discovery and Namespace Package » Finding namespace packages`_. +.. _Package Discovery and Namespace Package » Finding namespace packages: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#namespace-packages .. _PEP 420: https://peps.python.org/pep-0420/ 2024/04/24 0.31.5 diff --git a/setup.py b/setup.py index eb5697f..d6a71af 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ import os import re -from setuptools import setup +from setuptools import find_namespace_packages, setup requirements = [ 'colorama<1', @@ -67,7 +67,7 @@ def read(path): platforms=['any'], license='Apache License 2.0', keywords='cratedb db data client shell', - packages=['crate.crash'], + packages=find_namespace_packages("src"), package_dir={"": "src"}, entry_points={ 'console_scripts': [ diff --git a/src/crate/__init__.py b/src/crate/__init__.py deleted file mode 100644 index e69de29..0000000