Skip to content

Commit

Permalink
Merge pull request #1 from ms32035/master
Browse files Browse the repository at this point in the history
Make Python 3 compatible and upgrade dependencies
  • Loading branch information
javaes authored Dec 5, 2019
2 parents 0a48b27 + b1ef7b9 commit eb64a2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions alembic_viz/alembic_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from alembic.util import CommandError
import click

from utils import get_revisions
from utils import generate_revision_graph
from .utils import get_revisions
from .utils import generate_revision_graph

VALID_OUTPUT_FORMATS = ['png', 'svg', 'pdf']

Expand Down
2 changes: 1 addition & 1 deletion alembic_viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def generate_revision_graph(revisions, format):
if revision.down_revision is None:
dot.edge('base', revision.revision)
continue
if isinstance(revision.down_revision, basestring):
if isinstance(revision.down_revision, str):
dot.edge(revision.down_revision, revision.revision)
continue
for down_revision in revision.down_revision:
Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
# pip-compile --output-file requirements.txt requirements.in
#
alembic==0.8.8
click==6.6
graphviz==0.5.1
Mako==1.0.5 # via alembic
MarkupSafe==0.23 # via mako
python-editor==1.0.1 # via alembic
SQLAlchemy==1.1.3 # via alembic
alembic==1.3.0
click==7.0
graphviz==0.13
Mako==1.1.0 # via alembic
MarkupSafe==1.1.1 # via mako
python-editor==1.0.4 # via alembic
SQLAlchemy==1.3.10 # via alembic

0 comments on commit eb64a2c

Please sign in to comment.