From 796658fb5111371a78145879f2cec544d93df964 Mon Sep 17 00:00:00 2001 From: Packit Date: Mon, 16 Dec 2024 08:22:08 +0000 Subject: [PATCH] Update to 0.33.0 upstream release - Resolves: rhbz#2332288 Upstream tag: 0.33.0 Upstream commit: c0a98a85 Commit authored by Packit automation (https://packit.dev/) --- .packit.yaml | 48 ++++++++++++++++++++++++++++++++++++ README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 14 ++++++++++- sources | 2 +- 6 files changed, 65 insertions(+), 5 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 837931a..f0e2f41 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -33,6 +33,33 @@ packages: - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" get-current-version: python3 -m setuptools_scm + # docs: https://gitlab.com/CentOS/Integration/packit-cbs/docs + specfile-centos-integration-sig: + upstream_package_name: specfile + downstream_package_name: python-specfile + specfile_path: &specfile_path_centos centos-integration-sig/python-specfile.spec + files_to_sync: + - *specfile_path_centos + - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ + srpm_build_deps: + - python3-build + - python3-setuptools_scm + actions: + pre-sync: + - python3 plans/git_reference.py + create-archive: + - python3 -m build --sdist --outdir ./fedora/ + - bash -c "ls -1t ./centos-integration-sig/*.tar.gz | head -n 1" + get-current-version: python3 -m setuptools_scm + dist_git_base_url: https://gitlab.com # this is not taken into account by centpkg-sig yet! + dist_git_namespace: CentOS/Integration/packit-cbs/rpms # this is not taken into account by centpkg-sig yet! + #sig: Integration/packit-cbs # this is not taken into account by centpkg-sig yet! + pkg_tool: centpkg-sig + specfile-epel8: upstream_package_name: specfile downstream_package_name: python-specfile @@ -60,6 +87,7 @@ jobs: packages: [specfile] targets: - fedora-all + - fedora-all-aarch64 - epel-9 - job: copr_build trigger: pull_request @@ -73,6 +101,7 @@ jobs: packages: [specfile] targets: - fedora-all + - fedora-all-aarch64 - epel-9 project: packit-dev list_on_homepage: True @@ -93,6 +122,7 @@ jobs: packages: [specfile] targets: - fedora-stable + - fedora-stable-aarch64 - epel-9 project: packit-stable list_on_homepage: True @@ -112,6 +142,7 @@ jobs: packages: [specfile] targets: - fedora-all + - fedora-all-aarch64 - epel-9 project: packit-releases list_on_homepage: True @@ -171,6 +202,11 @@ jobs: packages: [specfile-epel8] dist_git_branches: - epel-8 + - job: propose_downstream + trigger: release + packages: [specfile-centos-integration-sig] + dist_git_branches: + - c9-sig-integration - job: pull_from_upstream trigger: release @@ -185,6 +221,11 @@ jobs: packages: [specfile-epel8] dist_git_branches: - epel-8 + - job: pull_from_upstream + trigger: release + packages: [specfile-centos-integration-sig] + dist_git_branches: + - c9-sig-integration - job: koji_build trigger: commit @@ -204,6 +245,13 @@ jobs: allowed_pr_authors: ["packit-stg", "packit"] dist_git_branches: - epel-8 + - job: koji_build + trigger: commit + packages: [specfile-centos-integration-sig] + packit_instances: ["stg"] + allowed_pr_authors: ["packit-stg", "packit"] + dist_git_branches: + - c9-sig-integration - job: bodhi_update trigger: commit diff --git a/README.packit b/README.packit index 2e89534..1da7848 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.103.0.post1.dev4+g30e2fb58. +The file was generated using packit 0.105.0.post1.dev12+gf83936a0. diff --git a/plans/main.fmf b/plans/main.fmf index b18cd78..97b940c 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 442e2a976fc608a33e6e4a970e3420ce9aafc8ac + ref: c0a98a85d9e43f59447248bb7f5258c2406ce9f1 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index a6b2670..eaaa775 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tier:0 | tier:1 - ref: 30e2fb5839ded7dd901fd2852d32e7b02e416270 + ref: e5b3d8c94ec79aa9cc5e1fa8dd7d0aabc1dcfbf4 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index d093810..c65bb66 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.32.6 +%global base_version 0.33.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,18 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Mon Dec 16 2024 Packit - 0.33.0-1 +- There is a new convenience method `Sections.get_or_create()` that allows you to manipulate a section + without checking if it exists first. If a section doesn't exist, it will be appended to the end. (#441) + For example, this will work properly even on spec files without `%%changelog`: + + ``` + with spec.sections() as sections: + changelog = sections.get_or_create("changelog") + changelog[:] = ["%%autochangelog"] + ``` +- Resolves: rhbz#2332288 + * Wed Nov 13 2024 Packit - 0.32.6-1 - New minor release for testing in CBS Koji diff --git a/sources b/sources index a94b119..f861749 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.32.6.tar.gz) = 1ea328772f2779854f9b0099a106322fa08a8f6fd2b6e9e55fe5d9c9724bcb3dc102f43291a0cdcdc3cc7e973d928c5d47fe47836d364da5cd2a5276d2e1baba +SHA512 (specfile-0.33.0.tar.gz) = 0df6eb5b464997f073950126333c71c1d501c066b4349fc3b556d5da5722f450548fbdc94b610c3990c8c66ba80b356e1594ecd5c823a8b0c4945d1e55c11cb6