Skip to content

Commit

Permalink
Update containers to Python 3.12.2 + Bookworm (#8850)
Browse files Browse the repository at this point in the history
This update is tied to a specific webpy commit because although the
commit has been merged to master, there is not yet a release. Hence
using the git hash in `requirements.txt`.
  • Loading branch information
scottbarnes committed Mar 5, 2024
1 parent ad39696 commit c1e1dfe
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codegen_api_docs.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -4,7 +4,7 @@

# Learn more about this config here: https://pre-commit.com/
default_language_version:
python: python3.11
python: python3.12

ci:
submodules: true
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.olbase
@@ -1,4 +1,4 @@
FROM python:3.11.1-slim
FROM python:3.12.2-slim-bookworm

ENV LANG en_US.UTF-8

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -6,7 +6,7 @@
[project]
name = "openlibrary"
version = "1.0.0"
requires-python = ">=3.11.1,<3.11.2"
requires-python = ">=3.12.2,<3.12.3"

[tool.black]
skip-string-normalization = true
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -8,6 +8,7 @@ eventer==0.1.1
feedparser==6.0.10
flup-py3==1.0.3
Genshi==0.7.7
git+https://github.com/webpy/webpy.git@d3649322b85777b291ac2b7b3699fb6fc839e382
gunicorn==20.1.0
httpx==0.24.1
ijson==3.2.3
Expand All @@ -28,4 +29,3 @@ sentry-sdk==1.28.1
simplejson==3.19.1
statsd==4.0.1
validate_email==1.3
git+https://github.com/webpy/webpy.git@ed3e92cceb6ed870b224107ea653f48fa7fc2d0a#egg=web-py
2 changes: 1 addition & 1 deletion scripts/oldump.py
Expand Up @@ -25,7 +25,7 @@ def log(*args) -> None:
from openlibrary.data import dump
from openlibrary.utils.sentry import Sentry

log("{} on Python {}.{}.{}".format(sys.argv, *sys.version_info)) # Python 3.11.1
log("{} on Python {}.{}.{}".format(sys.argv, *sys.version_info)) # Python 3.12.2

ol_config = os.getenv("OL_CONFIG")
if ol_config:
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup_gitpod.sh
Expand Up @@ -2,7 +2,7 @@
# This script does the setup needed for Gitpod

# Setup pre-commit hooks
pyenv install 3.11 --skip-existing # must match python version in .pre-commit-config.yaml
pyenv global 3.11
pyenv install 3.12 --skip-existing # must match python version in .pre-commit-config.yaml
pyenv global 3.12
sudo python3 -m pip install pre-commit
pre-commit install --install-hooks

0 comments on commit c1e1dfe

Please sign in to comment.