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

Update Python version to 3.10 in Dockerfile & Github actions #434

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

Iteron-dev
Copy link
Member

Resolve #418.

setup.py Outdated
@@ -64,7 +64,7 @@
# Used in quizzes module for adding new quizzes.
"django-nested-admin>=4.0,<4.1",
# SIO2 dependencies:
"filetracker>=2.1,<3.0",
"filetracker[server]>=2.2.0,<3.0",
Copy link
Member

Choose a reason for hiding this comment

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

Is it really required to add filetracker[server] to setup.py requirements? Production code on Szkopul requires only client code, as filetracker server is running on another system. And installing with server dependencies in prod crashed because of some version conflicts. Couldn't it be handled like in Olaf's PR #433 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point! I'll remove the [server] optional dependencies from setup.py and add them to the Dockerfile.

Dockerfile Outdated
@@ -54,7 +54,7 @@ USER oioioi
ENV PATH $PATH:/home/oioioi/.local/bin/

ENV BERKELEYDB_DIR /usr
RUN pip3 install --user psycopg2-binary==2.8.6 twisted uwsgi
RUN pip3 install --user psycopg2-binary==2.9.10 twisted uwsgi
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain a bit why this version bump is required?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, this version bump isn't required. Initially, there was a plan to upgrade to Python 3.11, but on Python 3.10, psycopg 2.8.6 works well.

Copy link
Contributor

@twalen twalen left a comment

Choose a reason for hiding this comment

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

Looks good, as for me it is ready to be merged.

@twalen twalen merged commit db17e2a into sio2project:master Dec 2, 2024
1 check passed
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.

Update Python version in Dockerfile & Github actions
3 participants