Skip to content

chore: downgrade python requirement to 3.12#319

Open
allison-truhlar wants to merge 3 commits intomainfrom
downgrade-python
Open

chore: downgrade python requirement to 3.12#319
allison-truhlar wants to merge 3 commits intomainfrom
downgrade-python

Conversation

@allison-truhlar
Copy link
Collaborator

This addresses issue #318

I noticed there were some unused dependencies listed under [tool.pixi.dependencies], specifically, aiosqlite and psycopg2-binary. I also removed the version requirements for httpx and lxml, as these are not direct dependencies and the required versions resolved without the listed requirements. Removing these and downgrading the Python requirement to >=3.12.0 from >=3.14.0, the application built fine and passed all tests. I manually tested the Okta login flow and it worked as well.

I tried decreasing the Python minor version to >=3.11.0, but x2s3 requires Python 3.12.*, so the dependencies could not resolve.

Restores psycopg2 package to both project dependencies and pixi dependencies
to enable PostgreSQL database connections with SQLAlchemy.

The psycopg2-binary package was removed in the Python 3.12 downgrade,
but is required for PostgreSQL support. Using psycopg2 from conda-forge
instead of psycopg2-binary to ensure compatibility with pixi.
Copy link
Member

@neomorphic neomorphic left a comment

Choose a reason for hiding this comment

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

This breaks the production deployment as we need to have the psycopg2 package installed to use postgreSQL. I have pushed an update that restores it.

loguru = ">=0.7.3,<0.8"
lxml = ">=5.3.1"
pandas = ">=2.3.3,<3"
psycopg2-binary = ">=2.9.10,<3"
Copy link
Member

Choose a reason for hiding this comment

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

We need psycopg2 in order to connect to postgreSQL in production.

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.

2 participants