Skip to content

Commit af0e89a

Browse files
chore: 5.0.0 Release (#19)
Update default Python version to use to 3.10.0, as well as use latest `slim-bullseye` image instead of `slim-buster`. On top of that, install poetry, pre-commit, and tox via pipx, while still install latest pip, pipx, and virtualenv via pip. **Full list of updates:** - Provide `py310` image based on `python:3.10.0-slim-bullseye` - Update `py39` image to Python 3.9.7 - Update `py38` image to Python 3.8.12 - Update `py37` image to Python 3.7.12 - Update `py36` image to Python 3.6.15 - Update pip to 21.3.1 - Install pipx 0.16.4 - Update poetry to 1.1.11 - Update pre-commit to 2.15.0 - Update tox to 3.24.2 - Update virtualenv to 20.10.0 - Update versions of all system dev tools to ones, which used in Debian Bullseye
1 parent 0dece48 commit af0e89a

4 files changed

Lines changed: 88 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: "CI"
77
on:
88
push:
99
branches: ["master"]
10-
tags: ["v*"]
10+
tags: ["*"]
1111
pull_request:
1212
branches: ["master"]
1313

.github/workflows/release_tag.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
defaults:
2+
run:
3+
shell: "bash"
4+
5+
name: "Auto Create Release Tag"
6+
7+
on:
8+
pull_request:
9+
types: ["closed"]
10+
11+
env:
12+
BADABUMP_VERSION: "21.3.3"
13+
PYTHON_VERSION: "3.10.0"
14+
PYTHONUNBUFFERED: "1"
15+
16+
jobs:
17+
create_release_tag:
18+
if: "${{ startsWith(github.head_ref, 'chore/release-') && github.event.pull_request.merged == true }}"
19+
name: "Auto Create Release Tag"
20+
21+
runs-on: "ubuntu-latest"
22+
23+
steps:
24+
- id: "token"
25+
uses: "tibdex/github-app-token@v1.5"
26+
with:
27+
app_id: "${{ secrets.BADABUMP_APP_ID }}"
28+
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}"
29+
30+
- uses: "actions/checkout@v2.4.0"
31+
with:
32+
ref: "master"
33+
token: "${{ steps.token.outputs.token }}"
34+
35+
- name: "Install Python"
36+
uses: "actions/setup-python@v2.2.2"
37+
with:
38+
python-version: "${{ env.PYTHON_VERSION }}"
39+
40+
- name: "Install badabump"
41+
run: "python3 -m pip install badabump==${{ env.BADABUMP_VERSION }}"
42+
43+
- id: "badabump"
44+
name: "Run badabump"
45+
run: "python3 -m badabump.ci prepare_tag"
46+
47+
- name: "Save tag message into the file"
48+
run: |
49+
with open("./tag_message.txt", "w+") as handler:
50+
handler.write("""${{ steps.badabump.outputs.tag_message }}""")
51+
shell: "python"
52+
53+
- name: "Create release tag from latest commit"
54+
run: |
55+
set -euo pipefail
56+
57+
git config user.name badabump-release-bot[bot]
58+
git config user.email badabump-release-bot[bot]@users.noreply.github.com
59+
60+
git tag -a ${{ steps.badabump.outputs.tag_name }} -F ./tag_message.txt
61+
git push --tag

CHANGELOG.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
# 4.4.0 (In Development)
1+
# 5.0.0 (2021-11-08)
22

3+
Update default Python version to use to 3.10.0, as well as use latest `slim-bullseye` image instead of `slim-buster`.
4+
5+
On top of that, install poetry, pre-commit, and tox via pipx, while still install latest pip, pipx, and virtualenv via pip.
6+
7+
**Full list of updates:**
8+
9+
- Provide `py310` image based on `python:3.10.0-slim-bullseye`
310
- Update `py39` image to Python 3.9.7
4-
- Update poetry to 1.1.10
5-
- Use `install-python.py` script instead of `get-poetry.py` to install poetry
6-
- Update pip to 21.2.4
11+
- Update `py38` image to Python 3.8.12
12+
- Update `py37` image to Python 3.7.12
13+
- Update `py36` image to Python 3.6.15
14+
- Update pip to 21.3.1
15+
- Install pipx 0.16.4
16+
- Update poetry to 1.1.11
717
- Update pre-commit to 2.15.0
8-
- Update tox to 3.24.4
9-
- Update virtualenv to 20.8.8
18+
- Update tox to 3.24.2
19+
- Update virtualenv to 20.10.0
20+
- Update versions of all system dev tools to ones, which used in Debian Bullseye
1021

1122
# 4.3.0 (2021-05-09)
1223

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ FROM playpauseandstop/docker-python:5.0.0
1919
- [pre-commit](https://pre-commit.com) 2.15.0
2020
- [tox](https://tox.readthedocs.io/) 3.24.2
2121
- [virtualenv](https://virtualenv.pypa.io) 20.10.0
22-
- [curl](https://curl.haxx.se) 7.64.0
23-
- [gcc & g++](https://gcc.gnu.org) 8.3.0
24-
- [git](https://git-scm.com) 2.20.1
22+
- [curl](https://curl.haxx.se) 7.74.0
23+
- [gcc & g++](https://gcc.gnu.org) 10.2.1
24+
- [git](https://git-scm.com) 2.30.2
2525
- [locales](https://packages.debian.org/stretch/locales) &
2626
[locales-all](https://packages.debian.org/stretch/locales-all)
27-
- [make](https://www.gnu.org/software/make) 4.2.1
28-
- [nano](https://www.nano-editor.org) 3.2
29-
- [gettext](https://www.gnu.org/software/gettext) 0.19.8.1
30-
- [openssh-client](https://packages.debian.org/stretch/openssh-client) 7.9p1
31-
- [rsync](https://rsync.samba.org) 3.1.3
27+
- [make](https://www.gnu.org/software/make) 4.3
28+
- [nano](https://www.nano-editor.org) 5.4
29+
- [gettext](https://www.gnu.org/software/gettext) 0.21
30+
- [openssh-client](https://packages.debian.org/stretch/openssh-client) 8.4p1
31+
- [rsync](https://rsync.samba.org) 3.2.3
3232

3333
### Python versions
3434

@@ -39,7 +39,7 @@ List of supported Python versions are (`<PY_VERSION>` -> base Docker image)
3939
#### 5.0.0
4040

4141
- `py310` -> `python:3.10.0-slim-bullseye`
42-
- `py39` -> `python:3.9.8-slim-bullseye`
42+
- `py39` -> `python:3.9.7-slim-bullseye`
4343
- `py38` -> `python:3.8.12-slim-bullseye`
4444
- `py37` -> `python:3.7.12-slim-bullseye`
4545
- `py36` -> `python:3.6.15-slim-bullseye`

0 commit comments

Comments
 (0)