diff --git a/pgcontents/alembic/env.py b/pgcontents/alembic/env.py index 85a19b8..a301591 100644 --- a/pgcontents/alembic/env.py +++ b/pgcontents/alembic/env.py @@ -75,6 +75,7 @@ def run_migrations_online(): finally: connection.close() + if context.is_offline_mode(): run_migrations_offline() else: diff --git a/pgcontents/tests/test_pgcontents_api.py b/pgcontents/tests/test_pgcontents_api.py index 3eeffc9..e196e53 100644 --- a/pgcontents/tests/test_pgcontents_api.py +++ b/pgcontents/tests/test_pgcontents_api.py @@ -485,5 +485,6 @@ def test_crypto_types(self): FernetEncryption, ) + # This needs to be removed or else we'll run the main IPython tests as well. del APITest diff --git a/setup.py b/setup.py index 2aef917..e92ee40 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def main(): setup( name='pgcontents', - version='0.4.0', + version='0.5.0', description="A Postgres-backed ContentsManager for IPython/Jupyter.", long_description=long_description, author="Scott Sanderson",