From 566070ceea521e19acc0e121a73010ac6dc06214 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 14 Nov 2024 00:27:06 +0100 Subject: [PATCH] Python: Fix "implicit namespace packages" migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... by omitting `__init__.py` from `crate` namespace package altogether, see "PEP 420" [1] and "Package Discovery and Namespace Package » Finding namespace packages" [2]. [1] https://peps.python.org/pep-0420/ [2] https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#namespace-packages --- CHANGES.rst | 5 +++++ src/crate/__init__.py | 0 2 files changed, 5 insertions(+) delete mode 100644 src/crate/__init__.py diff --git a/CHANGES.rst b/CHANGES.rst index 64141cc5..a77fcc1a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,10 @@ Changes for crate Unreleased ========== +- Python: Fixed "implicit namespace packages" migration by omitting + ``__init__.py`` from ``crate`` namespace package, see `PEP 420`_ + and `Package Discovery and Namespace Package » Finding namespace packages`_. + 2024/11/05 1.0.0 ================ @@ -44,6 +48,7 @@ Unreleased .. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html +.. _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/ .. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/ diff --git a/src/crate/__init__.py b/src/crate/__init__.py deleted file mode 100644 index e69de29b..00000000