Skip to content
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

Upgrade Invenio packages and support SQLAlchemy 2.0 #848

Open
GraemeWatt opened this issue Dec 6, 2024 · 1 comment
Open

Upgrade Invenio packages and support SQLAlchemy 2.0 #848

GraemeWatt opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels

Comments

@GraemeWatt
Copy link
Member

New major releases of the Invenio packages have just been made that require SQLAlchemy>=2.0.0. Naively bumping the Invenio packages in the requirements.txt file (see commit on the major-invenio-upgrade branch) gives many failed tests and broken functionality. The SQLAlchemy 2.0 - Major Migration Guide should be followed to migrate the API calls from 1.x to 2.x in the core HEPData code (outside the Invenio modules). Note that an intermediate step is to switch on the SQLALCHEMY_WARN_20 environment variable with SQLAlchemy 1.4 (i.e. installed by the current main branch) and address any warnings that are emitted before switching to SQLAlchemy 2.0.

@ItIsJordan : maybe this is something you can help to address?

@GraemeWatt
Copy link
Member Author

Warning: installing the new Invenio packages via the major-invenio-upgrade branch seems to have wiped my local hepdata database, so a backup should be made before investigating this issue if the local database needs to be preserved.

GraemeWatt added a commit that referenced this issue Dec 11, 2024
* Pin Invenio packages until HEPData code supports SQLAlchemy 2.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To do
Development

No branches or pull requests

2 participants