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

Python 3.12 #960

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Python 3.12 #960

merged 2 commits into from
Oct 30, 2024

Conversation

squeaky-pl
Copy link
Contributor

@squeaky-pl squeaky-pl commented Oct 28, 2024

I've already started testing this end to end on single pods where my email is synced, will of course do a canary.

Based on PR #959

TODO:

  • Replace boto with boto3
  • Open issue on limitlion about setuptools dependency on Python 3.12

Full chain of PRs as of 2024-10-28

@squeaky-pl squeaky-pl self-assigned this Oct 28, 2024
@squeaky-pl squeaky-pl changed the title Dockerfile & requirements Python 3.12 Oct 28, 2024
@squeaky-pl squeaky-pl marked this pull request as draft October 28, 2024 17:58
Base automatically changed from python-310 to master October 29, 2024 14:23
Dockerfile Outdated
python3-pip \
libmysqlclient-dev \
&& rm -rf /var/lib/apt/lists/*

COPY /requirements/ /requirements/
RUN python3.9 -m pip install pip==24.0 virtualenv==20.25.1 && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Python in Ubuntu 24.04 started complaining if you install packages into the operating system using pip, because you are supposed to install them using apt-get, and use virtualenv for everything else. I was doing that before because we had terribly outdated pip otherwise, but now we caught up with Python 3.12 so we can just use builtin venv from apt-get to create the virtualenv.

@@ -69,6 +69,7 @@ requests-file==1.5.1
rollbar==0.16.2
s3transfer==0.10.3
setproctitle==1.2.2
setuptools==75.2.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@drewler drewler left a comment

Choose a reason for hiding this comment

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

🐍🚀

@squeaky-pl squeaky-pl merged commit c6fbe99 into master Oct 30, 2024
3 checks passed
@squeaky-pl squeaky-pl deleted the python-312 branch October 30, 2024 13:18
@wojcikstefan
Copy link
Member

wojcikstefan commented Nov 1, 2024

Seems like we missed some spots:


python_version = 3.8

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