]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
remove dependency on pkg_resources
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Aug 2021 20:24:26 +0000 (16:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Aug 2021 20:45:06 +0000 (16:45 -0400)
commite80d1d2299f69e1f4a4e91af70d1244a32c39c65
treeaa503c84e9bafc450fe6bada08ce64825c49aa91
parent7fd48061bbf893002b2d7a624b313b09ee0a9700
remove dependency on pkg_resources

The dependency on ``pkg_resources`` which is part of ``setuptools`` has
been removed, so there is no longer any runtime dependency on
``setuptools``. The functionality has been replaced with
``importlib.metadata`` and ``importlib.resources`` which are both part of
Python std.lib, or via pypy dependency ``importlib-metadata`` for Python
version < 3.8 and ``importlib-resources`` for Python version < 3.7.

Change-Id: I7802fe72ff644f52ae2edde53bc8e16f016b7c45
Fixes: #885
alembic/script/write_hooks.py
alembic/util/compat.py
alembic/util/pyfiles.py
docs/build/unreleased/885.rst [new file with mode: 0644]
setup.cfg
tests/test_post_write.py