]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Revendor editor and make dateutil optional
authorCaselIT <cfederico87@gmail.com>
Tue, 15 Jun 2021 20:32:05 +0000 (22:32 +0200)
committerCaselIT <cfederico87@gmail.com>
Tue, 15 Jun 2021 21:38:07 +0000 (23:38 +0200)
commit7756b35e23ec11b64a1ac37afcb41dda3ca29913
treea2c46870a195f22c7489bface5a890cf90acff5c
parentc0f0a3238fe1ec8029d66ad6ac518b60c78c36ed
Revendor editor and make dateutil optional

Re-implemented the ``python-editor`` dependency as a small internal
function to avoid the need for external dependencies.
The implementation is based on the original
version in 7b91b325ff43a0e9235e0f15b57391fa92352626.

Make the ``python-dateutil`` library an optional dependency.
This library is only required if the ``timezone`` option
is used in the Alembic configuration.
An extra require named ``tz`` is available with
``pip install alembic[tz]`` to install it.

Fixes: #674
Fixes: #856
Change-Id: I07f17b2fea01e3a3d677ce95333fe3e8d8d438fd
18 files changed:
alembic/command.py
alembic/script/base.py
alembic/templates/async/alembic.ini.mako
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako
alembic/templates/pylons/alembic.ini.mako
alembic/testing/requirements.py
alembic/util/__init__.py
alembic/util/editor.py [new file with mode: 0644]
alembic/util/pyfiles.py
docs/build/tutorial.rst
docs/build/unreleased/674.rst [new file with mode: 0644]
docs/build/unreleased/856.rst [new file with mode: 0644]
setup.cfg
tests/test_command.py
tests/test_editor.py [new file with mode: 0644]
tests/test_script_production.py
tox.ini