Skip to content

Commit 63f4584

Browse files
committed
Update cookiecutter
1 parent d4d8a43 commit 63f4584

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

.github/dependabot.yml

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

.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.13"
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.13"
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
...

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.9.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)