Skip to content

Commit a126030

Browse files
committed
Python: Fix "implicit namespace packages" migration
... 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
1 parent 313dd6f commit a126030

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Changes for crate
44

55
Unreleased
66
==========
7+
- Python: Fixed "implicit namespace packages" migration by omitting
8+
``__init__.py`` from ``crate`` namespace package, see `PEP 420`_
9+
and `Package Discovery and Namespace Package » Finding namespace packages`_.
10+
711

812
2024/11/05 1.0.0
913
================
@@ -44,6 +48,7 @@ Unreleased
4448

4549

4650
.. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
51+
.. _Package Discovery and Namespace Package » Finding namespace packages: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#namespace-packages
4752
.. _PEP 420: https://peps.python.org/pep-0420/
4853
.. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/
4954

src/crate/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)