Skip to content

Support SQLAlchemy 2.0 #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

phillipuniverse
Copy link

Fixes #83.

I lost write access and cannot make further updates to the PR at #84, so opening this against my personal account.

javimudi and others added 22 commits January 9, 2024 09:30
Under some circunstances, such as prepping an aliased subquery to be joined later on, the model entity is missing,
provoking an error when trying to apply filters.

(cherry picked from commit edc7c24)
This property is removed in SQLAlchemy 2.x
… .gitignore

This allows Tox to find all Python versions when using pyenv
drop_all() makes the 'bind' positional argument required
Specify compatible versions of SQLAlchemy and SQLAlchemy-Utils for Python, SQLAlchemy versions
Simplifies tox expressions and doesn't change anything fundamental about this library. 0.38.3 dropped support for Python 3.4 and 3.5 which sqlalchemy-filters never supported in the first place
@henrikmathisen
Copy link

henrikmathisen commented Feb 26, 2025

Error: ERROR:   py311-sqlalchemy1.2: could not install deps [sqlalchemy-utils>=0.39, sqlalchemy>=1.2,<1.3]; v = InvocationError("/home/runner/work/sqlalchemy-filters/sqlalchemy-filters/.tox/py311-sqlalchemy1.2/bin/python -m pip install 'sqlalchemy-utils>=0.39' 'sqlalchemy>=1.2,<1.3'", 1)
Error: ERROR:   py311-sqlalchemy1.3: commands failed
Error: ERROR:   py311-sqlalchemy1.4: commands failed

Maintaining backwards compatibility with <2.0 seems unwise and maintaining backwards compatibility with <1.4 pure madness.

Comment on lines +13 to +17

venv
.venv
.idea
build

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dreamsorcerer
Copy link

Error: ERROR:   py311-sqlalchemy1.2: could not install deps [sqlalchemy-utils>=0.39, sqlalchemy>=1.2,<1.3]; v = InvocationError("/home/runner/work/sqlalchemy-filters/sqlalchemy-filters/.tox/py311-sqlalchemy1.2/bin/python -m pip install 'sqlalchemy-utils>=0.39' 'sqlalchemy>=1.2,<1.3'", 1)
Error: ERROR:   py311-sqlalchemy1.3: commands failed
Error: ERROR:   py311-sqlalchemy1.4: commands failed

Maintaining backwards compatibility with <2.0 seems unwise and maintaining backwards compatibility with <1.4 pure madness.

I would have to agree with that. Users are not going to get any updates (security or otherwise) for sqlalchemy if they are on those old versions, so why should they expect to get updates for sqlalchemy-filters? If they want to use an unsupported version of sqlalchemy, then they can also use an unsupported version of sqlalchemy-filters...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SQLAlchemy 2.X
5 participants