From 02ea2a602cae24f64f4a8ffbd142dc4dea854410 Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Wed, 26 Nov 2025 10:54:55 +0000 Subject: [PATCH] ci: Add cron to make issue for supporting new version of Python --- .github/workflows/new_python.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/new_python.yml diff --git a/.github/workflows/new_python.yml b/.github/workflows/new_python.yml new file mode 100644 index 00000000..624a5112 --- /dev/null +++ b/.github/workflows/new_python.yml @@ -0,0 +1,32 @@ +name: Support new version of python +on: + schedule: + - cron: 0 9 1 12 * + +jobs: + create_issue: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Create new version of python issue + run: | + new_issue_url=$(gh issue create \ + --title "$TITLE" \ + --body "$BODY") + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + TITLE: Support new version of python + BODY: | + New versions of Python are normally released in October. + Follow the checklist below to ensure support for the new version is added, + and drop an old version so we support the most recent 4 versions. + + - [ ] Change `.python-version` to be the oldest supported version + - [ ] Change `requires-python` in `pyproject.toml` to be the oldest supported version + - [ ] Change `classifiers` in `template/pyproject.toml.jinja` to have all 4 versions + - [ ] Change `requires-python` in `template/pyproject.toml.jinja` to be the oldest supported version + - [ ] Change `requires-python` in `template/uv.lock` to be the oldest supported version + - [ ] Change `python-version` in `template/*/workflows/ci.yml.jinja` to have all 4 versions + - [ ] Change first paragraph in `template/*/tutorials/installation.md.jinja` to be the oldest supported version