Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Add alembic requirement as default
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsca committed Jul 23, 2021
1 parent cabfb4e commit fbfd0ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
11 changes: 6 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = sqla-wrapper
version= 5.0.0.dev2
version= 5.0.0.dev3
url = https://github.com/jpsca/sqla-wrapper
project_urls =
Issue tracker = https://github.com/jpsca/sqla-wrapper/issues
Expand All @@ -15,27 +15,25 @@ description = A framework-independent modern wrapper for SQLAlchemy 2 & Alembic.
long_description = file:README.md
long_description_content_type = text/markdown


[options]
packages = find:
include_package_data = true
python_requires = >=3.7,<4.0
install_requires =
sqlalchemy >= 1.4
alembic >= 1.6

[options.packages.find]
exclude =
tests

[options.extras_require]
alembic =
alembic >= 1.6

test =
flake8
psycopg2-binary
pytest
pytest-cov
alembic >= 1.6
click
pyceo >=4.0

Expand All @@ -50,6 +48,7 @@ pyceo =
click =
click


[flake8]
application-package-names = sqla_wrapper
application-import-names = sqla_wrapper
Expand Down Expand Up @@ -87,8 +86,10 @@ exclude =
conftest.py,
docs,


[tool:pytest]
addopts = --doctest-modules


[mypy]
plugins = sqlalchemy.ext.mypy.plugin
13 changes: 5 additions & 8 deletions sqla_wrapper/alembic_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Union

try:
from alembic import autogenerate, util
from alembic.config import Config
from alembic.runtime.environment import EnvironmentContext
from alembic.script import ScriptDirectory
from alembic.script.revision import Revision
except ImportError: # pragma: no cover
pass
from alembic import autogenerate, util
from alembic.config import Config
from alembic.runtime.environment import EnvironmentContext
from alembic.script import ScriptDirectory
from alembic.script.revision import Revision

from .sqlalchemy_wrapper import SQLAlchemy
from .cli import click_cli, pyceo_cli
Expand Down

0 comments on commit fbfd0ba

Please sign in to comment.