Skip to content

Commit

Permalink
revert sqlalchemy to allow 1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
perllaghu committed Jul 10, 2023
1 parent a93dea2 commit e3178db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions nbexchange/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
must be imported below the declaration for `Alembic`
autogenerate to work.
"""
import sqlalchemy.orm as orm
# import sqlalchemy.orm as orm
from sqlalchemy.orm import declarative_base

Base = orm.declarative_base()
Base = declarative_base()

# E402 : module level import not at top of file
# F401 : module imported but unused
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ classifiers = [
]

# pyjwt limited due to djangorestframework-jwt dependencies
# sqlalchemy spec is the same as nbgrader 0.8.4
# sqlalchemy spec is whatever nbgrader uses!
dependencies = [
"alembic>=1.6.5",
"jupyterhub>=1.4.1",
# "nbgrader==0.8.2", # From pypi dated March 28th 2023
"nbgrader==0.8.4", # From pypi dated 2023-06-16
"nbgrader==0.8.3", # 0.8.4 requires sqlalchemy 2, which breaks Jupyterhub
"psycopg2-binary>=2.8.6",
"pyjwt<2",
"sentry-sdk==1.14.0",
"sqlalchemy>=1.4,<3",
"tornado==6.1",
"tornado-prometheus==0.1.1",
]
Expand Down

0 comments on commit e3178db

Please sign in to comment.