Skip to content

Commit

Permalink
Python: Fix "implicit namespace packages" migration
Browse files Browse the repository at this point in the history
... 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
  • Loading branch information
amotl committed Nov 21, 2024
1 parent 313dd6f commit a126030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
================
Expand Down Expand Up @@ -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/

Expand Down
Empty file removed src/crate/__init__.py
Empty file.

0 comments on commit a126030

Please sign in to comment.