Skip to content

Commit e09b056

Browse files
authored
Merge pull request #1301 from jonbarrow/feat/legacy-cgi
Add `legacy-cgi` for newer Python versions
2 parents d64f358 + 6c5a8cd commit e09b056

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
jobs:
44
test:
55
docker:
6-
- image: cimg/python:3.12.8
6+
- image: cimg/python:3.13.7
77
steps:
88
- checkout
99
- run:
@@ -25,7 +25,7 @@ jobs:
2525
command: make openapi-generate
2626
build:
2727
docker:
28-
- image: cimg/python:3.12.8
28+
- image: cimg/python:3.13.7
2929
steps:
3030
- checkout
3131
- run:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A RESTful API for Pokémon - [pokeapi.co](https://pokeapi.co)
3333
- [Join Us On Slack!](#join-us-on-slack)
3434
- [Contributing](#contributing)
3535

36-
## Setup <a id="setup"></a> &nbsp; [![pyVersion312](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3128/)
36+
## Setup <a id="setup"></a> &nbsp; [![pyVersion313](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3137/)
3737

3838
- Download this source code into a working directory, be sure to use the flag `--recurse-submodules` to clone also our submodules.
3939

Resources/docker/app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12.8-alpine3.21 AS builder
1+
FROM python:3.13.7-alpine AS builder
22

33
ENV PYTHONUNBUFFERED=1
44

@@ -11,15 +11,15 @@ RUN apk add --no-cache --virtual .build-deps gcc g++ musl-dev \
1111
postgresql-dev binutils rust cargo && \
1212
python3 -m pip install -r requirements.txt --no-cache-dir
1313

14-
FROM python:3.12.8-alpine3.21
14+
FROM python:3.13.7-alpine
1515

1616
ENV PYTHONUNBUFFERED=1
1717
ENV DJANGO_SETTINGS_MODULE='config.docker-compose'
1818

1919
RUN mkdir /code
2020
WORKDIR /code
2121

22-
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
22+
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
2323
COPY --from=builder /usr/local/bin /usr/local/bin
2424

2525
ADD . /code/

Resources/docker/app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [`master`](https://github.com/PokeAPI/pokeapi/blob/master/Resources/docker/app/Dockerfile)
1818
- [`staging`](https://github.com/PokeAPI/pokeapi/blob/staging/Resources/docker/app/Dockerfile)
1919

20-
> `pokeapi` uses `python:3.12.8-alpine3.21` as base image.
20+
> `pokeapi` uses `python:3.13.7-alpine` as base image.
2121
2222
## What is PokeAPI?
2323

default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ pkgs.mkShell {
33
name = "onix-shellder";
44
venvDir = "./.venv";
55
buildInputs = [
6-
python312Packages.python
7-
python312Packages.venvShellHook
6+
python313Packages.python
7+
python313Packages.venvShellHook
88

99
# Required dependencies
1010

1111
# Python
12-
python312Packages.black
12+
python313Packages.black
1313

1414
# misc
1515
taglib

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ psycopg2-binary==2.9.10
1212
python-dateutil==2.8.2
1313
python-mimeparse==1.6.0
1414
drf-spectacular==0.28.0
15+
legacy-cgi; python_version >= '3.13'

0 commit comments

Comments
 (0)