Skip to content

Commit

Permalink
Upgrade to Python 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink committed Sep 27, 2024
1 parent 894de08 commit 33ba8c8
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
export COMPOSE_FILE=docker/docker-compose.yml:docker/docker-compose.ci.yml
docker compose build && docker compose up -d
docker ps
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:docker-www-1 python:3.12.5-bookworm tests/application_tests/ci/test.sh
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:docker-www-1 python:3.13.0rc2-bookworm tests/application_tests/ci/test.sh
docker ps
docker compose logs > build/containers.log
- run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/api_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd components/api_server
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/application-tests-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd tests/application_tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/application-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
mkdir -p build
docker compose --file docker/docker-compose.yml --file docker/docker-compose.ci.yml --project-name quality-time up --build --detach --wait
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 python:3.12.5-bookworm tests/application_tests/ci/test.sh
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 python:3.13.0rc2-bookworm tests/application_tests/ci/test.sh
- name: Save container logs
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd components/collector
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-tests-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd tests/feature_tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Run feature tests
run: ./tests/feature_tests/ci/test.sh
- name: Upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd components/notifier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13.0-rc.2'
- name: Install dependencies
run: |
cd components/shared_code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-python@v5
if: env.SONAR_TOKEN != null
with:
python-version: "3.12"
python-version: "3.13.0-rc.2"
- name: Set up Node
uses: actions/[email protected]
if: env.SONAR_TOKEN != null
Expand Down
12 changes: 6 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.12"
python: "3.13"
apt_packages:
- graphviz

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/src/conf.py
configuration: docs/src/conf.py

# Additional formats to build
formats:
- pdf
- pdf

# Requirements to install
python:
install:
- requirements: docs/requirements/requirements-dev.txt
- requirements: docs/requirements/requirements-internal-rtd.txt
install:
- requirements: docs/requirements/requirements-dev.txt
- requirements: docs/requirements/requirements-internal-rtd.txt
4 changes: 2 additions & 2 deletions components/api_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.5-alpine3.20 AS compile-image
FROM python:3.13.0rc2-alpine3.20 AS compile-image

WORKDIR /home/server

Expand All @@ -11,7 +11,7 @@ COPY api_server/requirements/requirements-internal.txt /requirements-internal.tx
COPY shared_code /home/shared_code/
RUN pip install --no-cache-dir --use-pep517 -r /requirements-internal.txt

FROM python:3.12.5-alpine3.20
FROM python:3.13.0rc2-alpine3.20

LABEL maintainer="Quality-time team <[email protected]>"
LABEL description="Quality-time API-server"
Expand Down
4 changes: 2 additions & 2 deletions components/api_server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "api-server"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"bottle==0.13.1",
Expand Down
4 changes: 2 additions & 2 deletions components/collector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.5-alpine3.20 AS compile-image
FROM python:3.13.0rc2-alpine3.20 AS compile-image

WORKDIR /home/collector

Expand All @@ -11,7 +11,7 @@ COPY shared_code /home/shared_code/
COPY collector/requirements/requirements-internal.txt /requirements-internal.txt
RUN pip install --no-cache-dir --use-pep517 -r /requirements-internal.txt

FROM python:3.12.5-alpine3.20
FROM python:3.13.0rc2-alpine3.20

LABEL maintainer="Quality-time team <[email protected]>"
LABEL description="Quality-time collector"
Expand Down
4 changes: 2 additions & 2 deletions components/collector/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "collector"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"aiogqlc==5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions components/notifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.5-alpine3.20 AS compile-image
FROM python:3.13.0rc2-alpine3.20 AS compile-image

WORKDIR /home/notifier

Expand All @@ -11,7 +11,7 @@ COPY shared_code /home/shared_code/
COPY notifier/requirements/requirements-internal.txt /requirements-internal.txt
RUN pip install --no-cache-dir --use-pep517 -r /requirements-internal.txt

FROM python:3.12.5-alpine3.20
FROM python:3.13.0rc2-alpine3.20

LABEL maintainer="Quality-time team <[email protected]>"
LABEL description="Quality-time notifier"
Expand Down
4 changes: 2 additions & 2 deletions components/notifier/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "notifier"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"aiohttp==3.10.6",
Expand Down
4 changes: 2 additions & 2 deletions components/shared_code/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "shared-code"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"bottle==0.13.1",
Expand Down
2 changes: 1 addition & 1 deletion components/testdata/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.5-alpine3.20
FROM python:3.13.0rc2-alpine3.20

LABEL maintainer="Quality-time team <[email protected]>"
LABEL description="Quality-time testdata"
Expand Down
4 changes: 2 additions & 2 deletions docs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "docs"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"furo==2023.9.10",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you want to get *Quality-time* up and running quickly, for example for a demo

#### Install prerequisites

Prerequisites are Docker and Git for both scenario's. For scenario 2 you also need Python 3.12 and a recent version of Node.js (we currently use Node.js v20).
Prerequisites are Docker and Git for both scenario's. For scenario 2 you also need Python 3.13 and a recent version of Node.js (we currently use Node.js v20).

Clone this repository:

Expand Down Expand Up @@ -441,7 +441,7 @@ The application tests in theory test all components through the frontend, but un

```console
docker-compose up -d
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:qualitytime_www_1 python:3.12.4-bookworm tests/application_tests/ci/test.sh
docker run -it -w `pwd` -v `pwd`:`pwd` --network=container:qualitytime_www_1 python:3.13.0-bookworm tests/application_tests/ci/test.sh
```

## Documentation and changelog
Expand Down
4 changes: 2 additions & 2 deletions release/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "release"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"gitpython==3.1.43",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sonar.projectVersion=5.16.1
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=components/collector,components/notifier,components/api_server,components/shared_code,components/frontend
sonar.python.version=3.12
sonar.python.version=3.13

# Exclude third party software and generated code from analysis
sonar.exclusions=**/coverage/**/*,**/build/**/*,**/node_modules/**/*
Expand Down
4 changes: 2 additions & 2 deletions tests/application_tests/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "application-tests"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"axe-selenium-python==2.1.6",
Expand Down
4 changes: 2 additions & 2 deletions tests/feature_tests/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "feature-tests"
version = "5.16.1"
requires-python = ">=3.12"
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"asserts==0.13.1",
Expand Down

0 comments on commit 33ba8c8

Please sign in to comment.