Skip to content

Commit c38bd43

Browse files
authored
Upgrade: Bump Python to 3.11 (#488)
This includes a dependency-bump, as it might add/remove polyfill libraries
1 parent 1abe554 commit c38bd43

File tree

5 files changed

+48
-49
lines changed

5 files changed

+48
-49
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: OpenTTD/actions/.github/workflows/rw-entry-testing-docker-py.yml@v5
1515
with:
1616
python-path: bananas_api
17-
python-version: 3.8
17+
python-version: 3.11
1818

1919
regression:
2020
name: Regression
@@ -23,10 +23,10 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@v4
2525

26-
- name: Set up Python 3.8
26+
- name: Set up Python 3.11
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: 3.8
29+
python-version: 3.11
3030

3131
- name: Set up packages
3232
run: |

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8-slim AS builder
1+
FROM python:3.11-slim AS builder
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
build-essential \
@@ -11,7 +11,7 @@ COPY src /code/src
1111
RUN cd /code && python setup.py install && mkdir /result
1212
RUN mv /code/build/*/*.so /result/
1313

14-
FROM python:3.8-slim
14+
FROM python:3.11-slim
1515

1616
ARG BUILD_DATE=""
1717
ARG BUILD_VERSION="dev"
@@ -74,7 +74,7 @@ RUN pip freeze 2>/dev/null > requirements.installed \
7474
|| ( echo "!! ERROR !! requirements.txt defined different packages or versions for installation" \
7575
&& exit 1 ) 1>&2
7676

77-
COPY --from=builder /result/*.so /usr/local/lib/python3.8/site-packages/
77+
COPY --from=builder /result/*.so /usr/local/lib/python3.11/site-packages/
7878
COPY bananas_api /code/bananas_api
7979

8080
ENTRYPOINT ["python", "-m", "bananas_api"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ The API is documented on [SwaggerHub](https://app.swaggerhub.com/apis-docs/OpenT
1111

1212
## Development
1313

14-
This API is written in Python 3.8 with aiohttp, and makes strong use of asyncio.
14+
This API is written in Python 3.11 with aiohttp, and makes strong use of asyncio.
1515

1616
### Running a local server
1717

1818
#### Dependencies
1919

20-
- Python3.8 or higher.
20+
- Python3.11 or higher.
2121
- [tusd](https://github.com/tus/tusd). For example, copy the `tusd` binary in your `~/.local/bin`.
2222

2323
#### Preparing your venv

regression_runner/requirements.txt

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
aiohttp==3.9.5
1+
aiohappyeyeballs==2.4.4
2+
aiohttp==3.11.10
23
aiosignal==1.3.1
3-
async-timeout==4.0.3
4-
attrs==23.2.0
5-
certifi==2024.6.2
6-
charset-normalizer==3.3.2
4+
attrs==24.2.0
5+
certifi==2024.8.30
6+
charset-normalizer==3.4.0
77
click==8.1.7
88
coloredlogs==15.0.1
9-
frozenlist==1.4.1
10-
future==1.0.0
9+
frozenlist==1.5.0
1110
humanfriendly==10.0
12-
idna==3.7
13-
multidict==6.0.5
14-
PyYAML==6.0.1
11+
idna==3.10
12+
multidict==6.1.0
13+
propcache==0.2.1
14+
PyYAML==6.0.2
1515
requests==2.32.3
16-
six==1.16.0
17-
tinydb==4.8.0
18-
tuspy==1.0.3
19-
urllib3==1.26.19
16+
tinydb==4.8.2
17+
tuspy==1.1.0
18+
urllib3==2.2.3
2019
verboselogs==1.7
21-
yarl==1.9.4
20+
yarl==1.18.3

requirements.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
aioauth-client==0.28.1
2-
aiohttp==3.9.5
1+
aioauth-client==0.29.0
2+
aiohappyeyeballs==2.4.4
3+
aiohttp==3.11.10
34
aiosignal==1.3.1
4-
anyio==4.4.0
5-
async-timeout==4.0.3
6-
attrs==23.2.0
7-
boto3==1.34.138
8-
botocore==1.34.138
9-
certifi==2024.6.2
10-
cffi==1.16.0
11-
charset-normalizer==3.3.2
5+
anyio==4.7.0
6+
attrs==24.2.0
7+
boto3==1.35.76
8+
botocore==1.35.76
9+
certifi==2024.8.30
10+
cffi==1.17.1
11+
charset-normalizer==3.4.0
1212
click==8.1.7
13-
cryptography==42.0.8
14-
exceptiongroup==1.2.1
15-
frozenlist==1.4.1
13+
cryptography==44.0.0
14+
frozenlist==1.5.0
1615
gitdb==4.0.11
1716
github3.py==4.0.1
1817
GitPython==3.1.43
1918
h11==0.14.0
20-
httpcore==1.0.5
21-
httpx==0.27.0
22-
idna==3.7
19+
httpcore==1.0.7
20+
httpx==0.28.1
21+
idna==3.10
2322
jmespath==1.0.1
24-
marshmallow==3.21.3
23+
marshmallow==3.23.1
2524
marshmallow-enum==1.5.1
26-
multidict==6.0.5
25+
multidict==6.1.0
2726
openttd-helpers==1.4.0
28-
packaging==24.1
27+
packaging==24.2
28+
propcache==0.2.1
2929
pycparser==2.22
30-
PyJWT==2.8.0
30+
PyJWT==2.10.1
3131
python-dateutil==2.9.0.post0
32-
PyYAML==6.0.1
32+
PyYAML==6.0.2
3333
requests==2.32.3
34-
s3transfer==0.10.2
35-
sentry-sdk==2.7.1
36-
six==1.16.0
34+
s3transfer==0.10.4
35+
sentry-sdk==2.19.2
36+
six==1.17.0
3737
smmap==5.0.1
3838
sniffio==1.3.1
3939
typing_extensions==4.12.2
4040
uritemplate==4.1.1
41-
urllib3==1.26.19
42-
yarl==1.9.4
41+
urllib3==2.2.3
42+
yarl==1.18.3

0 commit comments

Comments
 (0)