From dc00c617ccdd1f55b1fc6bcc5d24e9722087a342 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 21 Nov 2024 23:51:23 +0100 Subject: [PATCH] Revert "Python: Fix "implicit namespace packages" migration" This reverts commit f717e7fbe66a8c4ea7de6576067e3c7cb9beb6fe. --- CHANGES.txt | 4 +--- setup.py | 4 ++-- src/crate/__init__.py | 0 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 src/crate/__init__.py diff --git a/CHANGES.txt b/CHANGES.txt index 05fa99c0..039bc650 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,10 +5,8 @@ Changes for crash Unreleased ========== - Python: Migrated to use "implicit namespace packages" instead of "declared - namespaces" for the ``crate`` namespace package, see `PEP 420`_ - and `Package Discovery and Namespace Package » Finding namespace packages`_. + namespaces" for the ``crate`` namespace package, see `PEP 420`_. -.. _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 d6a71af0..eb5697fa 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ import os import re -from setuptools import find_namespace_packages, setup +from setuptools import 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=find_namespace_packages("src"), + packages=['crate.crash'], package_dir={"": "src"}, entry_points={ 'console_scripts': [ diff --git a/src/crate/__init__.py b/src/crate/__init__.py new file mode 100644 index 00000000..e69de29b