-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: upgrade to Python 3.12 (#824)
* feat!: upgrade to Python 3.12 * build: upgrade Python in Dockerfile and configs * build: update sql volume in Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * build: update Dockerfile * fix: fix quality checks * chore: remove edx-lint and pylint constraints * chore: remove edx-lint and pylint constraints * fix: update pylintrc * fix: fix quality checks * fix: fix dict literal syntax * fix: fix quality checks
- Loading branch information
1 parent
718fa10
commit 0133c8f
Showing
24 changed files
with
115 additions
and
1,887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ jobs: | |
branch: ${{ github.event.inputs.branch || 'master' }} | ||
team_reviewers: "enterprise-quokkas" | ||
email_address: "[email protected]" | ||
python_version: 3.12 | ||
secrets: | ||
requirements_bot_github_token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }} | ||
requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,6 @@ MAINTAINER [email protected] | |
# language-pack-en locales | ||
# ubuntu locale support so that system utilities have a consistent | ||
# language and time zone. | ||
# python3.5 | ||
# ubuntu doesnt ship with python, so this is the python we will use to run the | ||
# application | ||
# python3-pip | ||
# install pip to install application requirements.txt files | ||
# pkg-config | ||
|
@@ -21,36 +18,42 @@ MAINTAINER [email protected] | |
# to install header files needed to use native C implementation for | ||
# MySQL-python for performance gains. | ||
|
||
ARG PYTHON_VERSION=3.12 | ||
ENV TZ=UTC | ||
ENV TERM=xterm-256color | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# If you add a package here please include a comment above describing what it is used for | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
apt-add-repository -y ppa:deadsnakes/ppa | ||
|
||
RUN apt-get update && apt-get -qy install --no-install-recommends \ | ||
build-essential \ | ||
language-pack-en \ | ||
locales \ | ||
python3.8 \ | ||
python3-pip \ | ||
python3.8-venv \ | ||
python3.8-dev \ | ||
pkg-config \ | ||
libmysqlclient-dev \ | ||
libssl-dev \ | ||
build-essential \ | ||
libffi-dev \ | ||
libsqlite3-dev \ | ||
git \ | ||
wget | ||
wget \ | ||
python3.12 \ | ||
python3.12-dev \ | ||
python3.12-distutils \ | ||
python3-pip | ||
|
||
ENV TZ=UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update && apt-get -qy install libffi-dev libsqlite3-dev python3-distutils | ||
|
||
RUN apt-get update && apt-get install -y build-essential wget && \ | ||
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz && \ | ||
tar -xzvf Python-3.12.0.tgz && cd Python-3.12.0 && ./configure --enable-optimizations && \ | ||
make -j$(nproc) && make altinstall && python3.12 --version | ||
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION} | ||
RUN pip install virtualenv | ||
|
||
ENV VIRTUAL_ENV=/venv | ||
RUN python3.8 -m venv $VIRTUAL_ENV | ||
RUN virtualenv -p python$PYTHON_VERSION $VIRTUAL_ENV | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
|
||
RUN pip install pip==20.2.3 setuptools==50.3.0 | ||
RUN pip install pip==24.0 setuptools==69.5.1 | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.