Skip to content

Commit 290e2e4

Browse files
committed
Update cookiecutter
1 parent d4d8a43 commit 290e2e4

File tree

9 files changed

+57
-35
lines changed

9 files changed

+57
-35
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: "Set up Python"
2020
uses: "actions/setup-python@v6"
2121
with:
22-
python-version: "3.11"
22+
python-version: "3.14"
2323
- name: "Install python dependencies"
2424
run: |
2525
pip install build setuptools wheel

.github/workflows/collect_changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fetch-depth: 0
1515
- uses: "actions/setup-python@v6"
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.x"
1818
- name: "Setup git"
1919
run: |
2020
git config user.name pulpbot

.github/workflows/cookiecutter.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: "Set up Python"
2525
uses: "actions/setup-python@v6"
2626
with:
27-
python-version: "3.11"
27+
python-version: "3.x"
2828
- name: "Setup git"
2929
run: |
3030
git config user.name pulpbot
@@ -57,4 +57,51 @@ jobs:
5757
env:
5858
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
5959
continue-on-error: true
60+
update-dependencies:
61+
runs-on: "ubuntu-latest"
62+
steps:
63+
- uses: "actions/checkout@v5"
64+
with:
65+
repository: "pulp/pulp-cli"
66+
path: "pulp-cli"
67+
- uses: "actions/checkout@v5"
68+
with:
69+
token: "${{ secrets.RELEASE_TOKEN }}"
70+
path: "pulp-cli-deb"
71+
- name: "Set up Python"
72+
uses: "actions/setup-python@v6"
73+
with:
74+
python-version: "3.x"
75+
- name: "Setup git"
76+
run: |
77+
git config user.name pulpbot
78+
git config user.email [email protected]
79+
- name: "Install python dependencies"
80+
run: |
81+
pip install packaging tomlkit
82+
- name: "Apply cookiecutter templates"
83+
run: |
84+
../pulp-cli/cookiecutter/update_pulp_cli.py
85+
if [ "$(git status --porcelain)" ]
86+
then
87+
git add .
88+
git commit -m "Update CLI and GLUE"
89+
fi
90+
- name: "Create Pull Request"
91+
uses: "peter-evans/create-pull-request@v7"
92+
id: "create_pr"
93+
with:
94+
token: "${{ secrets.RELEASE_TOKEN }}"
95+
title: "Update CLI and GLUE"
96+
body: ""
97+
branch: "update_cli"
98+
delete-branch: true
99+
path: "pulp-cli-deb"
100+
- name: "Mark PR automerge"
101+
run: |
102+
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
103+
if: "steps.create_pr.outputs.pull-request-number"
104+
env:
105+
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
106+
continue-on-error: true
60107
...

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
python:
1414
- "3.11"
15-
- "3.13"
15+
- "3.14"
1616
steps:
1717
- uses: "actions/checkout@v5"
1818
- uses: "actions/cache@v4"

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: "Set up Python"
3333
uses: "actions/setup-python@v6"
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.x"
3636
- name: "Install python dependencies"
3737
run: |
3838
pip install toml pygithub

.github/workflows/pr_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fetch-depth: 0
2525
- uses: "actions/setup-python@v6"
2626
with:
27-
python-version: "3.12"
27+
python-version: "3.x"
2828
- name: "Determine PR labels"
2929
run: |
3030
pip install GitPython==3.1.42

.github/workflows/release_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: "Set up Python"
1414
uses: "actions/setup-python@v6"
1515
with:
16-
python-version: "3.11"
16+
python-version: "3.x"
1717
- name: "Setup git"
1818
run: |
1919
git config user.name pulpbot

lint_requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Lint requirements
2-
black==25.1.0
2+
black==25.11.0
33
flake8==7.3.0
44
flake8-pyproject==1.2.3
5-
isort==6.0.1
6-
mypy==1.17.1
5+
isort==6.1.0
6+
mypy==1.18.2
77
shellcheck-py==0.11.0.1
88

99
# Type annotation stubs

0 commit comments

Comments
 (0)