summaryrefslogtreecommitdiff
path: root/alembic/testing
diff options
context:
space:
mode:
authorCaselIT <cfederico87@gmail.com>2021-06-15 22:32:05 +0200
committerCaselIT <cfederico87@gmail.com>2021-06-15 23:38:07 +0200
commit7756b35e23ec11b64a1ac37afcb41dda3ca29913 (patch)
treea2c46870a195f22c7489bface5a890cf90acff5c /alembic/testing
parentc0f0a3238fe1ec8029d66ad6ac518b60c78c36ed (diff)
downloadalembic-7756b35e23ec11b64a1ac37afcb41dda3ca29913.tar.gz
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
Diffstat (limited to 'alembic/testing')
-rw-r--r--alembic/testing/requirements.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/alembic/testing/requirements.py b/alembic/testing/requirements.py
index 3a5426b..5a11068 100644
--- a/alembic/testing/requirements.py
+++ b/alembic/testing/requirements.py
@@ -68,18 +68,6 @@ class SuiteRequirements(Requirements):
return exclusions.closed()
@property
- def editor_installed(self):
- def go():
- try:
- import editor # noqa
- except ImportError:
- return False
- else:
- return True
-
- return exclusions.only_if(go, "editor package not installed")
-
- @property
def sqlalchemy_13(self):
return exclusions.skip_if(
lambda config: not util.sqla_13,