Skip to content

Commit

Permalink
Removed version constraint of pydantic
Browse files Browse the repository at this point in the history
The constraint was introduced in #74 due to pydantic/pydantic#4131. The fix for pydantic has been
released and the constraint is now superfluous.

This version constraint implicitly limited `fastapi-pagination` to v0.9.3, which now also gets
updated (to v0.11.4). However, it cannot be upgraded to the latest v0.12 series, due to #146.
  • Loading branch information
crazyscientist committed Jun 2, 2023
1 parent 5aa291e commit fb9ac2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from fastapi_pagination import add_pagination

from . import create_app, models
from .database import engine


models.Base.metadata.create_all(engine)
app = create_app()
add_pagination(app)
5 changes: 2 additions & 3 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
alembic
fastapi
fastapi-pagination[sqlalchemy]
fastapi-pagination[sqlalchemy]<0.12
ldap3
passlib[bcrypt]
psycopg2-binary
# See: https://github.com/samuelcolvin/pydantic/issues/4131
pydantic<1.9.1
pydantic<2
python-dotenv
python-jose[cryptography]
python-multipart
Expand Down

0 comments on commit fb9ac2a

Please sign in to comment.