From: Mike Bayer Date: Tue, 4 Mar 2025 19:33:59 +0000 (-0500) Subject: fix template files include X-Git-Tag: rel_1_15_1~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d82e382fcc8eb688443873a2d0f425dff6598bea;p=thirdparty%2Fsqlalchemy%2Falembic.git fix template files include Fixed an issue in the new :pep:`621` ``pyproject.toml`` layout that prevented Alembic's template files from being included in the ``.whl`` file in the distribution. Fixes: #1616 Change-Id: I059e69841f918985d999aafad1319a0c7fd9d2d5 --- diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst index 16d6984d..2fa3a5ab 100644 --- a/docs/build/changelog.rst +++ b/docs/build/changelog.rst @@ -9,7 +9,7 @@ Changelog .. changelog:: :version: 1.15.0 - :released: March 4, 2025 + :released: March 4, 2025 (yanked due to issue #1616) .. change:: :tags: bug, environment diff --git a/docs/build/unreleased/1616.rst b/docs/build/unreleased/1616.rst new file mode 100644 index 00000000..3c5821b0 --- /dev/null +++ b/docs/build/unreleased/1616.rst @@ -0,0 +1,7 @@ +.. change:: + :tags: bug, installation + :tickets: 1616 + + Fixed an issue in the new :pep:`621` ``pyproject.toml`` layout that + prevented Alembic's template files from being included in the ``.whl`` file + in the distribution. diff --git a/pyproject.toml b/pyproject.toml index 813779ab..a62f7e89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,10 +59,8 @@ package-dir = {"" = "."} license-files = ["LICENSE"] [tool.setuptools.package-data] -alembic = ["*.pyi", "py.typed"] +"*" = ["*.pyi", "py.typed", "*.mako", "README"] -[tool.setuptools.exclude-package-data] -alembic = ["test*"] [tool.setuptools.packages.find] include = ["alembic*"]