]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Support pep3149, latest import mechanics, fully
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 7 Sep 2017 21:43:00 +0000 (17:43 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Sep 2017 15:58:16 +0000 (11:58 -0400)
commit9b5f12a0a3f6b83bccb19c23e0c95b17d7ec8ae3
treee998310b3517f31e6317f54a635d49bbef7d1278
parent29b8306679ef7138b4e37ee3e5136333da00fda0
Support pep3149, latest import mechanics, fully

Reworked "sourceless" system to be fully capable of handling any
combination of: Python2/3x, pep3149 or not, PYTHONOPTIMIZE or not,
for locating and loading both env.py files as well as versioning files.
This includes: locating files inside of ``__pycache__`` as well as listing
out version files that might be only in ``versions/__pycache__``, deduplicating
version files that may be in ``versions/__pycache__`` and ``versions/``
at the same time, correctly looking for .pyc or .pyo files based on
if pep488 is present or not. The latest Python3x deprecation warnings
involving importlib are also corrected.

Change-Id: I2495e793c81846d3f05620dbececb18973dd8a8f
Fixes: #449
alembic/script/base.py
alembic/script/revision.py
alembic/testing/env.py
alembic/testing/requirements.py
alembic/util/__init__.py
alembic/util/compat.py
alembic/util/pyfiles.py
docs/build/unreleased/449.rst [new file with mode: 0644]
tests/test_script_consumption.py
tox.ini