Skip to content

Commit 5ccfbf1

Browse files
authored
Merge pull request #1028 from gerrod3/patchback/backports/3.10/c7cfdde34b5dfcb855530144da4b1ac3ee0ba176/pr-1023
Patchback/backports/3.10/c7cfdde34b5dfcb855530144da4b1ac3ee0ba176/pr 1023
2 parents e2e1b0f + e4e893a commit 5ccfbf1

File tree

9 files changed

+50
-155
lines changed

9 files changed

+50
-155
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -23,47 +23,28 @@ jobs:
2323
runs-on: "ubuntu-latest"
2424
needs:
2525
- "build"
26-
27-
env:
28-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
26+
environment:
27+
name: "pypi"
28+
url: "https://pypi.org/p/pulp-python"
29+
permissions:
30+
id-token: "write"
2931

3032
steps:
31-
- uses: "actions/checkout@v4"
32-
with:
33-
fetch-depth: 1
34-
path: "pulp_python"
35-
3633
- uses: "actions/download-artifact@v4"
3734
with:
3835
name: "plugin_package"
39-
path: "pulp_python/dist/"
36+
path: "dist/"
4037

41-
- uses: "actions/setup-python@v5"
42-
with:
43-
python-version: "3.11"
44-
45-
- name: "Install python dependencies"
46-
run: |
47-
echo ::group::PYDEPS
48-
pip install twine
49-
echo ::endgroup::
50-
51-
- name: "Setting secrets"
52-
run: |
53-
python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
54-
env:
55-
SECRETS_CONTEXT: "${{ toJson(secrets) }}"
56-
57-
- name: "Deploy plugin to pypi"
58-
run: |
59-
.github/workflows/scripts/publish_plugin_pypi.sh ${{ github.ref_name }}
38+
- name: "Publish package to PyPI"
39+
uses: pypa/gh-action-pypi-publish@release/v1
6040
publish-python-bindings:
6141
runs-on: "ubuntu-latest"
6242
needs:
6343
- "build"
64-
65-
env:
66-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
44+
environment:
45+
name: "pypi"
46+
permissions:
47+
id-token: "write"
6748

6849
steps:
6950
- uses: "actions/checkout@v4"
@@ -81,32 +62,18 @@ jobs:
8162
run: |
8263
tar -xvf python-python-client.tar
8364
84-
- uses: "actions/setup-python@v5"
85-
with:
86-
python-version: "3.11"
87-
88-
- name: "Install python dependencies"
89-
run: |
90-
echo ::group::PYDEPS
91-
pip install twine
92-
echo ::endgroup::
93-
94-
- name: "Setting secrets"
95-
run: |
96-
python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
97-
env:
98-
SECRETS_CONTEXT: "${{ toJson(secrets) }}"
99-
10065
- name: "Publish client to pypi"
101-
run: |
102-
bash .github/workflows/scripts/publish_client_pypi.sh ${{ github.ref_name }}
66+
uses: pypa/gh-action-pypi-publish@release/v1
67+
with:
68+
packages-dir: "pulp_python/dist/"
10369
publish-ruby-bindings:
10470
runs-on: "ubuntu-latest"
10571
needs:
10672
- "build"
107-
108-
env:
109-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
73+
environment:
74+
name: "rubygems"
75+
permissions:
76+
id-token: "write"
11077

11178
steps:
11279
- uses: "actions/checkout@v4"
@@ -128,15 +95,12 @@ jobs:
12895
with:
12996
ruby-version: "2.6"
13097

131-
- name: "Setting secrets"
132-
run: |
133-
python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
134-
env:
135-
SECRETS_CONTEXT: "${{ toJson(secrets) }}"
98+
- name: "Set RubyGems Credentials"
99+
uses: "rubygems/configure-rubygems-credentials@v1.0.0"
136100

137-
- name: "Publish client to rubygems"
101+
- name: "Publish client to RubyGems"
138102
run: |
139-
bash .github/workflows/scripts/publish_client_gem.sh ${{ github.ref_name }}
103+
gem push "pulp_python_client-${{ github.ref_name }}.gem"
140104
141105
create-gh-release:
142106
runs-on: "ubuntu-latest"
@@ -179,14 +143,16 @@ jobs:
179143
180144
- name: "Create release on GitHub"
181145
uses: "actions/github-script@v7"
146+
env:
147+
RELEASE_BODY: ${{ steps.get_release_notes.outputs.body }}
182148
with:
183149
script: |
184-
const { TAG_NAME } = process.env;
150+
const { TAG_NAME, RELEASE_BODY } = process.env;
185151
186152
await github.rest.repos.createRelease({
187153
owner: context.repo.owner,
188154
repo: context.repo.repo,
189155
tag_name: TAG_NAME,
190-
body: `${{ steps.get_release_notes.outputs.body }}`,
156+
body: RELEASE_BODY,
191157
make_latest: "legacy",
192158
});

.github/workflows/scripts/publish_client_gem.sh

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

.github/workflows/scripts/publish_client_pypi.sh

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

.github/workflows/scripts/publish_plugin_pypi.sh

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

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
[//]: # (towncrier release notes start)
1010

11+
## 3.10.2 (2025-11-18) {: #3.10.2 }
12+
13+
No significant changes
14+
15+
---
16+
1117
## 3.10.1 (2025-07-23) {: #3.10.1 }
1218

1319
### Bugfixes

CHANGES.rst

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

pulp_python/tests/functional/api/test_consume_content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def install(cli_client, package, host=PYPI_URL):
122122
"pip",
123123
"install",
124124
"--no-deps",
125+
"--no-build-isolation",
125126
"--trusted-host",
126127
urlsplit(host).hostname,
127128
"--trusted-host",

pulp_python/tests/functional/constants.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,25 @@
142142

143143
PYTHON_LG_PROJECT_SPECIFIER = [
144144
"aiohttp", # matches 7
145+
"bcrypt", # matches 8
145146
"celery", # matches 13
147+
"crane", # matches 0
146148
"Django", # matches 31
149+
"pulp-2to3-migration", # matches 2
150+
"pytz", # matches 6
147151
"scipy", # matches 23
148152
"setuptools", # matches 2
149153
"shelf-reader", # matches 2
154+
"twine", # matches 14
150155
]
151-
PYTHON_LG_PACKAGE_COUNT = 78
156+
PYTHON_LG_PACKAGE_COUNT = 108
152157
PYTHON_LG_FIXTURE_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_LG_PACKAGE_COUNT}
153-
PYTHON_LG_FIXTURE_PRERELEASES_SUMMARY = {PYTHON_CONTENT_NAME: 92}
158+
PYTHON_LG_FIXTURE_PRERELEASES_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_LG_PACKAGE_COUNT}
154159
PYTHON_LG_FIXTURE_COUNTS = {
155-
"latest_3": 37,
156-
"sdist": 24,
157-
"bdist_wheel": 54,
158-
"multi": 26, # keep_latest=1, package_types="bdist_wheel", prereleases=False
160+
"latest_3": 59,
161+
"sdist": 36,
162+
"bdist_wheel": 72,
163+
"multi": 36, # keep_latest=1, package_types="bdist_wheel", prereleases=False
159164
}
160165

161166
DJANGO_LATEST_3 = 4 # latest version has 2 dists, each other has 1

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tool.towncrier]
22
package = "pulp_python"
3-
filename = "CHANGES.rst"
3+
filename = "CHANGES.md"
44
directory = "CHANGES/"
5-
title_format = "{version} ({project_date})"
5+
title_format = "## {version} ({project_date}) {{: #{version} }}"
66
template = "CHANGES/.TEMPLATE.md"
7-
issue_format = "`#{issue} <https://github.com/pulp/pulp_python/issues/{issue}>`__"
7+
issue_format = "[#{issue}](https://github.com/pulp/pulp_python/issues/{issue})"
8+
start_string = "[//]: # (towncrier release notes start)\n"
9+
underlines = ["", "", ""]
810

911
[tool.check-manifest]
1012
ignore = [

0 commit comments

Comments
 (0)