Skip to content

Commit 371bec7

Browse files
Merge pull request #510 from inknos/5.4.0
Bump release to 5.4.0
2 parents 3ec3122 + 315ad3c commit 371bec7

File tree

6 files changed

+89
-75
lines changed

6 files changed

+89
-75
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 77 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -5,114 +5,120 @@ on: push
55
jobs:
66
build:
77
name: Build distribution 📦
8+
# ensure the workflow is never executed on forked branches
9+
# it would fail anyway, so we just avoid to see an error
10+
if: ${{ github.repository == 'containers/podman-py' }}
811
runs-on: ubuntu-latest
912

1013
steps:
11-
- uses: actions/checkout@v4
12-
- name: Set up Python
13-
uses: actions/setup-python@v5
14-
with:
15-
python-version: "3.x"
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
1619

17-
- name: Install pypa/build
18-
run: >-
19-
python3 -m
20-
pip install
21-
build
22-
--user
23-
- name: Build a binary wheel and a source tarball
24-
run: python3 -m build
25-
- name: Store the distribution packages
26-
uses: actions/upload-artifact@v4
27-
with:
28-
name: python-package-distributions
29-
path: dist/
20+
- name: Install pypa/build
21+
run: >-
22+
python3 -m
23+
pip install
24+
build
25+
--user
26+
- name: Build a binary wheel and a source tarball
27+
run: python3 -m build
28+
- name: Store the distribution packages
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: python-package-distributions
32+
path: dist/
3033

3134
publish-to-pypi:
3235
name: >-
3336
Publish Python 🐍 distribution 📦 to PyPI
34-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
37+
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'containers/podman-py'
3538
needs:
36-
- build
39+
- build
3740
runs-on: ubuntu-latest
3841
environment:
3942
name: pypi
4043
url: https://pypi.org/p/podman
4144
permissions:
42-
id-token: write # IMPORTANT: mandatory for trusted publishing
45+
id-token: write # IMPORTANT: mandatory for trusted publishing
4346

4447
steps:
45-
- name: Download all the dists
46-
uses: actions/download-artifact@v4
47-
with:
48-
name: python-package-distributions
49-
path: dist/
50-
- name: Publish distribution 📦 to PyPI
51-
uses: pypa/gh-action-pypi-publish@release/v1
48+
- name: Download all the dists
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: python-package-distributions
52+
path: dist/
53+
- name: Publish distribution 📦 to PyPI
54+
uses: pypa/gh-action-pypi-publish@release/v1
5255

5356
github-release:
5457
name: >-
5558
Sign the Python 🐍 distribution 📦 with Sigstore
5659
and upload them to GitHub Release
60+
if: github.repository == 'containers/podman-py'
5761
needs:
58-
- publish-to-pypi
62+
- publish-to-pypi
5963
runs-on: ubuntu-latest
6064

6165
permissions:
62-
contents: write # IMPORTANT: mandatory for making GitHub Releases
63-
id-token: write # IMPORTANT: mandatory for sigstore
66+
contents: write # IMPORTANT: mandatory for making GitHub Releases
67+
id-token: write # IMPORTANT: mandatory for sigstore
6468

6569
steps:
66-
- name: Download all the dists
67-
uses: actions/download-artifact@v4
68-
with:
69-
name: python-package-distributions
70-
path: dist/
71-
- name: Sign the dists with Sigstore
72-
uses: sigstore/[email protected]
73-
with:
74-
inputs: >-
75-
./dist/*.tar.gz
76-
./dist/*.whl
77-
- name: Create GitHub Release
78-
env:
79-
GITHUB_TOKEN: ${{ github.token }}
80-
run: >-
81-
gh release create
82-
'${{ github.ref_name }}'
83-
--repo '${{ github.repository }}'
84-
--notes ""
85-
- name: Upload artifact signatures to GitHub Release
86-
env:
87-
GITHUB_TOKEN: ${{ github.token }}
88-
# Upload to GitHub Release using the `gh` CLI.
89-
# `dist/` contains the built packages, and the
90-
# sigstore-produced signatures and certificates.
91-
run: >-
92-
gh release upload
93-
'${{ github.ref_name }}' dist/**
94-
--repo '${{ github.repository }}'
70+
- name: Download all the dists
71+
uses: actions/download-artifact@v4
72+
with:
73+
name: python-package-distributions
74+
path: dist/
75+
- name: Sign the dists with Sigstore
76+
uses: sigstore/[email protected]
77+
with:
78+
inputs: >-
79+
./dist/*.tar.gz
80+
./dist/*.whl
81+
82+
- name: Create GitHub Release
83+
env:
84+
GITHUB_TOKEN: ${{ github.token }}
85+
run: >-
86+
gh release create
87+
'${{ github.ref_name }}'
88+
--repo '${{ github.repository }}'
89+
--generate-notes
90+
- name: Upload artifact signatures to GitHub Release
91+
env:
92+
GITHUB_TOKEN: ${{ github.token }}
93+
# Upload to GitHub Release using the `gh` CLI.
94+
# `dist/` contains the built packages, and the
95+
# sigstore-produced signatures and certificates.
96+
run: >-
97+
gh release upload
98+
'${{ github.ref_name }}' dist/**
99+
--repo '${{ github.repository }}'
95100
96101
publish-to-testpypi:
97102
name: Publish Python 🐍 distribution 📦 to TestPyPI
103+
if: github.repository == 'containers/podman-py'
98104
needs:
99-
- build
105+
- build
100106
runs-on: ubuntu-latest
101107

102108
environment:
103109
name: testpypi
104110
url: https://test.pypi.org/p/podman
105111

106112
permissions:
107-
id-token: write # IMPORTANT: mandatory for trusted publishing
113+
id-token: write # IMPORTANT: mandatory for trusted publishing
108114

109115
steps:
110-
- name: Download all the dists
111-
uses: actions/download-artifact@v4
112-
with:
113-
name: python-package-distributions
114-
path: dist/
115-
- name: Publish distribution 📦 to TestPyPI
116-
uses: pypa/gh-action-pypi-publish@release/v1
117-
with:
118-
repository-url: https://test.pypi.org/legacy/
116+
- name: Download all the dists
117+
uses: actions/download-artifact@v4
118+
with:
119+
name: python-package-distributions
120+
path: dist/
121+
- name: Publish distribution 📦 to TestPyPI
122+
uses: pypa/gh-action-pypi-publish@release/v1
123+
with:
124+
repository-url: https://test.pypi.org/legacy/

.packit.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ jobs:
2323
# Copr builds for Fedora
2424
- job: copr_build
2525
trigger: pull_request
26+
identifier: pr-fedora
2627
packages: [python-podman-fedora]
2728
targets:
2829
- fedora-all
2930

3031
# Copr builds for CentOS Stream
3132
- job: copr_build
3233
trigger: pull_request
34+
identifier: pr-centos
3335
packages: [python-podman-centos]
3436
targets:
3537
- centos-stream-10
@@ -38,13 +40,15 @@ jobs:
3840
# Copr builds for RHEL
3941
- job: copr_build
4042
trigger: pull_request
43+
identifier: pr-rhel
4144
packages: [python-podman-rhel]
4245
targets:
4346
- epel-9
4447

4548
# Run on commit to main branch
4649
- job: copr_build
4750
trigger: commit
51+
identifier: commit-fedora
4852
packages: [python-podman-fedora]
4953
branch: main
5054
owner: rhcontainerbot
@@ -82,6 +86,7 @@ jobs:
8286
# This test might break based on the OS and lint used, so we follow fedora-latest as a reference
8387
- job: tests
8488
trigger: pull_request
89+
identifier: upstream-sanity
8590
tmt_plan: /upstream/sanity
8691
packages: [python-podman-fedora]
8792
targets:
@@ -90,13 +95,15 @@ jobs:
9095

9196
- job: tests
9297
trigger: pull_request
98+
identifier: upstream-all-fedora
9399
tmt_plan: /upstream/all
94100
packages: [python-podman-fedora]
95101
targets:
96102
- fedora-all
97103

98104
- job: tests
99105
trigger: pull_request
106+
identifier: upstream-base-centos
100107
tmt_plan: /upstream/base
101108
packages: [python-podman-centos]
102109
targets:
@@ -105,6 +112,7 @@ jobs:
105112

106113
- job: tests
107114
trigger: pull_request
115+
identifier: upstream-base-rhel
108116
tmt_plan: /upstream/base
109117
packages: [python-podman-rhel]
110118
targets:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DESTDIR ?=
88
EPOCH_TEST_COMMIT ?= $(shell git merge-base $${DEST_BRANCH:-main} HEAD)
99
HEAD ?= HEAD
1010

11-
export PODMAN_VERSION ?= "5.3.0"
11+
export PODMAN_VERSION ?= "5.4.0"
1212

1313
.PHONY: podman
1414
podman:

podman/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Do not auto-update these from version.py,
44
# as test code should be changed to reflect changes in Podman API versions
55
BASE_SOCK = "unix:///run/api.sock"
6-
LIBPOD_URL = "http://%2Frun%2Fapi.sock/v5.3.0/libpod"
6+
LIBPOD_URL = "http://%2Frun%2Fapi.sock/v5.4.0/libpod"
77
COMPATIBLE_URL = "http://%2Frun%2Fapi.sock/v1.40"

podman/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version of PodmanPy."""
22

3-
__version__ = "5.3.0"
3+
__version__ = "5.4.0"
44
__compatible_version__ = "1.40"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = podman
3-
version = 5.3.0
3+
version = 5.4.0
44
author = Brent Baude, Jhon Honce, Urvashi Mohnani, Nicola Sella
55
author_email = [email protected]
66
description = Bindings for Podman RESTful API

0 commit comments

Comments
 (0)