Skip to content

Commit

Permalink
Add python 3.13, drop 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Nov 12, 2024
1 parent 8c25b1a commit 5e5fa65
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 82 deletions.
144 changes: 72 additions & 72 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,76 +11,86 @@ on:
pull_request:

env:
PYTHON313: '3.13.0'
PYTHON312: '3.12.7'
PYTHON311: '3.11.10'
PYTHON310: '3.10.15'
PYTHON39: '3.9.20'
PYTHON38: '3.8.20'
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

jobs:
python312:
python313:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
tags: 3.12,3,latest
version: ${{ env.PYTHON313 }}
tags: 3.13,3,latest
python312:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
tags: '3.12'
python311:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON311 }}
tags: '3.11'
python310:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON310 }}
tags: '3.10'
python39:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON39 }}
tags: 3.9
python38:
### dev
python313-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON38 }}
tags: 3.8
### dev
version: ${{ env.PYTHON313 }}
dev: 1
tags: 3.13-dev,3-dev,dev
python312-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
dev: 1
tags: 3.12-dev,3-dev,dev
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
dev: 1
tags: 3.12-dev
python311-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON311 }}
Expand All @@ -89,8 +99,8 @@ jobs:
python310-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON310 }}
Expand All @@ -99,48 +109,54 @@ jobs:
python39-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON39 }}
dev: 1
tags: 3.9-dev
python38-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: ./.github/actions
with:
version: ${{ env.PYTHON38 }}
dev: 1
tags: 3.8-dev
### dev-macos
python312-dev-macos:
python313-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
version: ${{ env.PYTHON313 }}
dev: 1
user_id: 501
group_id: 20
tags: 3.12-dev-macos,3-dev-macos,dev-macos
tags: 3.13-dev-macos,3-dev-macos,dev-macos
platform: linux/amd64,linux/arm64
python312-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON312 }}
dev: 1
user_id: 501
group_id: 20
tags: 3.12-dev-macos
platform: linux/amd64,linux/arm64
python311-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON311 }}
Expand All @@ -152,11 +168,11 @@ jobs:
python310-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON310 }}
Expand All @@ -168,11 +184,11 @@ jobs:
python39-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v3
- uses: ./.github/actions
with:
version: ${{ env.PYTHON39 }}
Expand All @@ -181,19 +197,3 @@ jobs:
group_id: 20
tags: 3.9-dev-macos
platform: linux/amd64,linux/arm64
python38-dev-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v1
- uses: ./.github/actions
with:
version: ${{ env.PYTHON38 }}
dev: 1
user_id: 501
group_id: 20
tags: 3.8-dev-macos
platform: linux/amd64,linux/arm64
4 changes: 2 additions & 2 deletions .python
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
3.13.0#2024-11-12T10:08:03.759048Z
3.12.7#2024-11-12T10:08:03.759048Z
3.11.10#2024-11-12T10:07:24.092383Z
3.10.15#2024-11-12T10:06:44.906994Z
3.9.20#2024-11-12T10:14:01.12292Z
3.8.20#2024-09-28T21:08:46.590233Z
3.9.20#2024-11-12T10:14:01.12292Z
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-include env_make

PYTHON_VER ?= 3.12.7
PYTHON_VER ?= 3.13.0
PYTHON_VER_MINOR := $(shell v='$(PYTHON_VER)'; echo "$${v%.*}")

REPO = wodby/python
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ About images:

Supported tags and respective `Dockerfile` links:

- `3.12`, `3`, `latest` [_(Dockerfile)_]
- `3.13`, `3`, `latest` [_(Dockerfile)_]
- `3.12` [_(Dockerfile)_]
- `3.11` [_(Dockerfile)_]
- `3.10` [_(Dockerfile)_]
- `3.9` [_(Dockerfile)_]
- `3.8` [_(Dockerfile)_]
- `3.12-dev`, `3-dev` [_(Dockerfile)_]
- `3.13-dev`, `3-dev` [_(Dockerfile)_]
- `3.12-dev` [_(Dockerfile)_]
- `3.11-dev` [_(Dockerfile)_]
- `3.10-dev` [_(Dockerfile)_]
- `3.9-dev` [_(Dockerfile)_]
- `3.8-dev` [_(Dockerfile)_]
- `3.12-dev-macos`, `3-dev-macos` [_(Dockerfile)_]
- `3.13-dev-macos`, `3-dev-macos` [_(Dockerfile)_]
- `3.12-dev-macos` [_(Dockerfile)_]
- `3.11-dev-macos` [_(Dockerfile)_]
- `3.10-dev-macos` [_(Dockerfile)_]
- `3.9-dev-macos` [_(Dockerfile)_]
- `3.8-dev-macos` [_(Dockerfile)_]

[_(Dockerfile)_]: https://github.com/wodby/python/tree/master/Dockerfile

Expand Down Expand Up @@ -92,7 +92,7 @@ All images built for `linux/amd64`, `-dev-macos` images additionally built for `
## Build arguments

| Argument | Default value |
| ---------------- | ------------- |
|------------------|---------------|
| `PYTHON_DEV` | |
| `PYTHON_DEBUG` | |
| `WODBY_GROUP_ID` | `1000` |
Expand Down

0 comments on commit 5e5fa65

Please sign in to comment.