Skip to content

Commit f17cb9d

Browse files
committed
Restrict SQLAlchemy to 1.3
https://docs.sqlalchemy.org/en/14/changelog/migration_14.html The previous SQLAlchemy version constraint in pyproject.toml, `sqlalchemy = "^1.3.16"`, allowed SQLAlchemy 1.4 to be installed. SQLAlchemy 1.4 includes many API changes, and should not be installed until the back-end Python application logic has been updated. This commit will update the version constraint to `sqlalchemy = "~1.3"`, which allows further updates to SQLAlchemy 1.3, but not SQLAlchemy 1.4. See https://semver.npmjs.com/ for a helpful demonstration of this. This commit will also install `psycopg2` through SQLAlchemy for maximum compatibility.
1 parent bc8d9d5 commit f17cb9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

{{cookiecutter.project_slug}}/backend/app/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ tenacity = "^6.1.0"
1616
emails = "^0.5.15"
1717
raven = "^6.10.0"
1818
jinja2 = "^2.11.2"
19-
psycopg2-binary = "^2.8.5"
2019
alembic = "^1.4.2"
21-
sqlalchemy = "^1.3.16"
20+
sqlalchemy = {extras = ["postgresql_psycopg2binary"], version = "~1.3"}
2221
pytest = "^5.4.1"
2322
python-jose = {extras = ["cryptography"], version = "^3.1.0"}
2423

0 commit comments

Comments
 (0)