Skip to content

Upgrade biblib to Python 3.12#189

Open
femalves wants to merge 2 commits into
masterfrom
upgrade/python-3.12
Open

Upgrade biblib to Python 3.12#189
femalves wants to merge 2 commits into
masterfrom
upgrade/python-3.12

Conversation

@femalves
Copy link
Copy Markdown
Contributor

@femalves femalves commented Apr 8, 2026

This is failing because the adsmutils@2.0.0 doesn't exist yet. Will create it after adsabs/ADSMicroserviceUtils#48 is approved.

These changes are in dev right now.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 8, 2026

Coverage Status

Coverage is 93.651%upgrade/python-3.12 into master. No base build found for master.

@femalves femalves force-pushed the upgrade/python-3.12 branch from feeae19 to 5591744 Compare April 23, 2026 14:43
@femalves femalves force-pushed the upgrade/python-3.12 branch from 5591744 to f2c19a2 Compare May 1, 2026 18:43
@femalves femalves force-pushed the upgrade/python-3.12 branch from f2c19a2 to 2f41ee8 Compare May 1, 2026 18:52
@femalves femalves requested a review from tjacovich May 1, 2026 18:58
Copy link
Copy Markdown
Contributor

@tjacovich tjacovich left a comment

Choose a reason for hiding this comment

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

Looks like a solid upgrade. Just a couple of questions about specific implementation details.

- name: Install dependencies
run: |
python -m pip install "pip==24" setuptools==57.5.0 wheel
python -m pip install "pip==24" "setuptools>=62.0.0,<70.0.0" wheel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, what packages break with setuptools >70?

from biblib.manage import DeleteObsoleteVersionsNumber, DeleteStaleUsers, DeleteObsoleteVersionsTime
from biblib.models import User, Library, Permissions, Notes
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy import text
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this strictly input sanitization?

Comment thread biblib/models.py

import uuid
from datetime import datetime
from datetime import datetime, timezone
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did something change in sqlalchemy that now requires us to explicitly strip the timezone?

Comment thread config.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an interesting way to solve the relocated config. We can talk more about it at our next weekly and decide if this is how we want to do it going forward?

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.

3 participants