Skip to content

Commit 4a77014

Browse files
authored
Upgraded to Python v3.12 (#242)
1 parent a562452 commit 4a77014

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# expanded using subsequent `include` items.
3232
matrix:
3333
os: ["ubuntu-latest"]
34-
python-version: ["3.10"]
34+
python-version: ["3.12"]
3535
bare: [false]
3636

3737
defaults:

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,8 @@ target/
6868
#PyCharm
6969
.idea
7070

71+
# Dockerfile
72+
docker-compose.yml
73+
7174
# Apprise Gateway Variable/Test Configuration
7275
apprise_gw/var/*

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-slim AS base
1+
FROM python:3.12-slim AS base
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.py310 Dockerfile.py312

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# POSSIBILITY OF SUCH DAMAGE.
2828

2929
# Base
30-
FROM python:3.10-buster
30+
FROM python:3.12
3131
RUN apt-get update && \
3232
apt-get install -y --no-install-recommends build-essential musl-dev bash && \
3333
rm -rf /var/lib/apt/lists/*
@@ -38,7 +38,7 @@ WORKDIR /apprise-api
3838
COPY requirements.txt /
3939
COPY dev-requirements.txt /
4040
ENV PYTHONPATH /apprise-api
41-
ENV PYTHONPYCACHEPREFIX /apprise-api/__pycache__/py310
41+
ENV PYTHONPYCACHEPREFIX /apprise-api/__pycache__/py312
4242

4343
RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt
4444

docker-compose.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ services:
3535
##
3636
## > Host service (visit http://localhost on host pc to access):
3737
## ./manage.py runserver 0.0.0.0:8000
38-
test.py310:
39-
ports:
40-
- 8000:8000
41-
build:
42-
context: .
43-
dockerfile: Dockerfile.py310
44-
volumes:
45-
- ./:/apprise-api
38+
# test.py312:
39+
# ports:
40+
# - 8000:8000
41+
# build:
42+
# context: .
43+
# dockerfile: Dockerfile.py312
44+
# volumes:
45+
# - ./:/apprise-api

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py311,coverage-report
2+
envlist = py312,coverage-report
33
skipsdist = true
44

55
[testenv]
@@ -14,7 +14,7 @@ commands =
1414
coverage run --parallel -m pytest {posargs} apprise_api
1515
flake8 apprise_api --count --show-source --statistics
1616

17-
[testenv:py311]
17+
[testenv:py312]
1818
deps=
1919
-r{toxinidir}/requirements.txt
2020
-r{toxinidir}/dev-requirements.txt

0 commit comments

Comments
 (0)