Skip to content

Commit 70860ef

Browse files
authored
ci: Add cron to make issue for supporting new version of Python (#313)
1 parent 39120c6 commit 70860ef

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/new_python.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Support new version of python
2+
on:
3+
schedule:
4+
- cron: 0 9 1 12 *
5+
6+
jobs:
7+
create_issue:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
steps:
12+
- name: Create new version of python issue
13+
run: |
14+
new_issue_url=$(gh issue create \
15+
--title "$TITLE" \
16+
--body "$BODY")
17+
env:
18+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
GH_REPO: ${{ github.repository }}
20+
TITLE: Support new version of python
21+
BODY: |
22+
New versions of Python are normally released in October.
23+
Follow the checklist below to ensure support for the new version is added,
24+
and drop an old version so we support the most recent 4 versions.
25+
26+
- [ ] Change `.python-version` to be the oldest supported version
27+
- [ ] Change `requires-python` in `pyproject.toml` to be the oldest supported version
28+
- [ ] Change `classifiers` in `template/pyproject.toml.jinja` to have all 4 versions
29+
- [ ] Change `requires-python` in `template/pyproject.toml.jinja` to be the oldest supported version
30+
- [ ] Change `requires-python` in `template/uv.lock` to be the oldest supported version
31+
- [ ] Change `python-version` in `template/*/workflows/ci.yml.jinja` to have all 4 versions
32+
- [ ] Change first paragraph in `template/*/tutorials/installation.md.jinja` to be the oldest supported version

0 commit comments

Comments
 (0)