diff --git a/.gitignore b/.gitignore index 7764ab5..3485cfe 100644 --- a/.gitignore +++ b/.gitignore @@ -126,4 +126,28 @@ /packitos-0.104.0.tar.gz /packitos-0.104.1.tar.gz /packitos-0.105.0.tar.gz -/packitos-0.106.0.tar.gz \ No newline at end of file +/packitos-0.106.0.tar.gz +/packitos-1.0.0.tar.gz +/packitos-1.0.1.tar.gz +/packitos-1.1.0.tar.gz +/packitos-1.1.1.tar.gz +/packitos-1.2.0.tar.gz +/packitos-1.3.0.tar.gz +/packitos-1.5.0.tar.gz +/packitos-1.6.0.tar.gz +/packitos-1.7.0.tar.gz +/packitos-1.8.0.tar.gz +/packitos-1.10.0.tar.gz +/packitos-1.9.0.tar.gz +/packitos-1.11.0.tar.gz +/packitos-1.12.0.tar.gz +/packitos-1.13.0.tar.gz +/packitos-1.14.0.tar.gz +/packitos-1.15.0.tar.gz +/packitos-1.15.1.tar.gz +/packitos-1.15.2.tar.gz +/packitos-1.15.3.tar.gz +/packitos-1.16.0.tar.gz +/packitos-1.16.1.tar.gz +/packitos-1.16.2.tar.gz +/packitos-1.16.3.tar.gz diff --git a/.packit.yaml b/.packit.yaml index a4244c2..0178029 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -28,8 +28,8 @@ issue_repository: https://github.com/packit/packit actions: create-archive: - - "python3 -m build --sdist --outdir ." - - "sh -c 'echo packitos-$(hatch version).tar.gz'" + - "sh -c 'hatch build -t sdist 2>&1 | tee hatch_build.log'" + - "tail -n1 hatch_build.log" get-current-version: - "hatch version" pre-sync: @@ -51,14 +51,14 @@ jobs: dist_git_branches: rawhide: fast_forward_merge_into: [fedora-branched] - epel-9: {} - + epel-10: + fast_forward_merge_into: [epel-10-branched] - job: copr_build trigger: pull_request targets: - fedora-all - fedora-all-aarch64 - - epel-9 + - epel-10-all packages: - packit @@ -66,7 +66,7 @@ jobs: trigger: pull_request targets: - fedora-all - - epel-9 + - epel-10-all packages: - packit @@ -76,7 +76,7 @@ jobs: targets: - fedora-all - fedora-all-aarch64 - - epel-9 + - epel-10-all project: packit-dev list_on_homepage: True preserve_project: True @@ -87,7 +87,6 @@ jobs: targets: - fedora-stable - fedora-stable-aarch64 - - epel-9 project: packit-stable list_on_homepage: True preserve_project: True @@ -97,7 +96,7 @@ jobs: targets: - fedora-stable - fedora-stable-aarch64 - - epel-9 + - epel-10-all project: packit-releases list_on_homepage: True preserve_project: True @@ -108,7 +107,8 @@ jobs: dist_git_branches: rawhide: fast_forward_merge_into: [fedora-branched] - epel-9: {} + epel-10: + fast_forward_merge_into: [epel-10-branched] - job: koji_build trigger: commit | koji_build @@ -120,7 +120,7 @@ jobs: - python-specfile dist_git_branches: - fedora-all - - epel-9 + - epel-10-all - job: bodhi_update trigger: koji_build @@ -132,7 +132,7 @@ jobs: - python-specfile dist_git_branches: - fedora-all - - epel-9 + - epel-10-all # - job: vm_image_build # trigger: pull_request # packit_instances: ["stg"] diff --git a/README.packit b/README.packit index 1da7848..72ae4cd 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.105.0.post1.dev12+gf83936a0. +The file was generated using packit 1.16.2.post1.dev18+g099fa292c. diff --git a/packit.spec b/packit.spec index 0db1806..f130f29 100644 --- a/packit.spec +++ b/packit.spec @@ -6,8 +6,8 @@ %endif Name: packit -Version: 0.106.0 -Release: 2%{?dist} +Version: 1.16.3 +Release: 1%{?dist} Summary: A tool for integrating upstream projects with Fedora operating system License: MIT @@ -78,6 +78,143 @@ cp files/bash-completion/packit %{buildroot}%{bash_completions_dir}/packit %doc README.md %changelog +* Fri Sep 04 2026 Packit - 1.16.3-1 +- Packit now retries when it encounters connection errors during authentication when attempting to create a Bodhi update. (#2749) +- Fixed an issue where a relative `--dist-git-path` (e.g. `.`) could cause packit to incorrectly identify a dist-git directory as an upstream repository. (#2736) +- Resolves: rhbz#2528471 + +* Mon Jul 20 2026 Packit - 1.16.2-1 +- Add HTTP timeouts and make `get_monitoring_metadata()` unauthenticated which should improve the UX of `packit validate`. (#2730) +- Resolves: rhbz#2502899 + +* Thu Jul 16 2026 Fedora Release Engineering - 1.16.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sun Jun 14 2026 Packit - 1.16.1-1 +- Fixed a couple of Copr-related issues. (#2721, #2727) +- Resolves: rhbz#2488767 + +* Fri Jun 05 2026 Python Maint - 1.16.0-2 +- Rebuilt for Python 3.15 + +* Fri Apr 24 2026 Packit - 1.16.0-1 +- Packit CLI has a new option `--[no-]update-release` that, by default, follows the value of the option set in the config, and also allows you to override manually, if necessary. (#2713) +- In addition to `version_update_mask`, users can now use a new `version_update_specifiers` configuration option to control the upstream versions allowed to be release-synced. The option accepts [PEP440 version specifier sets](https://packaging.pypa.io/en/stable/specifiers.html), for example `version_update_specifiers: >=1.0,~=1.0`. (#2710) +- Resolves: rhbz#2461103 + +* Wed Apr 01 2026 Packit - 1.15.3-1 +- We've fixed the formatting of the strings Packit appends to the changelog. Now there will be at most one blank line before or after the Packit comment. (#2707) +- Resolves: rhbz#2453842 + +* Tue Mar 24 2026 Packit - 1.15.2-1 +- Packit now uses the specfile library's sanitization when parsing spec files. +- Resolves: rhbz#2450841 + +* Fri Mar 06 2026 Packit - 1.15.1-1 +- We have fixed a bug that prevented running `sync_release()` on a `PackitAPI` instance initialized with `non_git_upstream=True` repeatedly due to an improper clean-up. (#2691) +- Resolves: rhbz#2445195 + +* Thu Feb 12 2026 Packit - 1.15.0-1 +- The `version_suffix` configuration option is now supported in Packit. This option is meant for appending information to the Version field in RPM spec files. This is useful for post-release snapshots following RPM versioning conventions. The `version_suffix` behaves similarly to the already existing `release_suffix` and also supports expansion of environment variables. (#2664) +- Packit now supports `bodhi_extra_params` configuration option to customize creating Bodhi updates. (#2682) +- Resolves: rhbz#2439424 + +* Fri Jan 16 2026 Fedora Release Engineering - 1.14.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Thu Jan 08 2026 Packit - 1.14.0-1 +- We have added the `--preserve-spec` flag to the `prepare-sources` and `srpm` commands. When used, Packit will not change the spec file in any way (e.g., release is not bumped, Source0 is not changed). When enabled, it implies `--no-update-release`. (#2653) +- Resolves: rhbz#2427944 + +* Tue Dec 09 2025 Packit - 1.13.0-1 +- `packit init` now automatically retrieves the latest version of the pre-commit hook to be added to the user's pre-commit configuration file. (#2651) +- Resolves: rhbz#2420553 + +* Fri Sep 19 2025 Packit - 1.12.0-1 +- Packit now automatically invokes an rpm build in mock when no rpm test is passed using `--rpm_paths` before running local tests with `packit test`. (#2636) +- Fixed an issue where the upstream spec file was synchronized without applying packit's patches. (#2637) + This happened when syncing a folder that contains the specfile, e.g.: +```yaml +files_to_sync: + - src: distro/ + dest: ./ +specfile_path: distro/my_pkg.spec +``` +- `packit init` now automatically adds a packit-specific pre-commit hook to user's pre-commit configuration file if present. Two new flags were added, which modify this behavior. (#2641) +- Resolves: rhbz#2396659 + +* Fri Sep 19 2025 Python Maint - 1.11.0-3 +- Rebuilt for Python 3.14.0rc3 bytecode + +* Fri Aug 15 2025 Python Maint - 1.11.0-2 +- Rebuilt for Python 3.14.0rc2 bytecode + +* Mon Jul 28 2025 Packit - 1.11.0-1 +- `packit test` now supports running and validating TMT tests locally without requiring a PR or a release, including result parsing and basic failure reporting. (#2632) +- Resolves: rhbz#2383891 + +* Thu Jul 24 2025 Fedora Release Engineering - 1.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Fri Jul 11 2025 Packit - 1.10.0-1 +- We have fixed a minor bug caused by adding the `PACKIT_SPECFILE_PATH` to the environment of Packit actions. (#2627) +- We have added a support for ELN aliases in Packit. (#2630) +- Resolves: rhbz#2372314 + +* Sun Jun 22 2025 Python Maint - 1.8.0-2 +- Rebuilt for Python 3.14 + +* Wed Jun 11 2025 Packit - 1.9.0-1 +- Packit now exposes `specfile_path` as the environment variable `PACKIT_SPECFILE_PATH` for all Packit action hooks to reference from the config. (#2589) +- We have added a support for passing `upstream_package_name` to the `upstream_tag_template` option. (#2604) +- Resolves: rhbz#2372314 + +* Fri May 09 2025 Packit - 1.8.0-1 +- You can now validate a Packit config passed to the Packit CLI via a path, e.g., `packit config validate -c /tmp/my-custom-packit-config.yml`. (#2556) +- The `--resultdir` argument in `build_in_mock` now defaults to the current directory (`"."`), preventing loss of build artifacts when not explicitly set. (#2567) +- Resolves: rhbz#2365298 + +* Sun Apr 13 2025 Packit - 1.7.0-1 +- We have implemented a set of options `osh_options` that allow you to customize OpenScanHub scans via config. (#2570) +- Resolves: rhbz#2359309 + +* Fri Apr 04 2025 Packit - 1.6.0-1 +- When using `fast_forward_merge_into`, `version_update_mask` is now correctly being taken into consideration. (#2551) +- We have introduced a new command group `config` for configuration-related commands and moved `validate-config` command under it, resulting in the new command being `packit config validate`. (#2559) +- Resolves: rhbz#2357504 + +* Mon Mar 31 2025 Packit - 1.5.0-1 +- Packit now supports `--base-nvr` option while submitting scans to OpenScanHub. The base nvr is pulled in from koji to perform a differential scan. (#2569) +- Resolves: rhbz#2356218 + +* Tue Mar 18 2025 Packit - 1.3.0-1 +- Cached values of OpenSUSE aliases are used for any exception coming from `opensuse_distro_aliases` to not break a code flow if there is any problem with getting the online ones. (#2548) +- A couple of other small improvements. +- Resolves: rhbz#2353174 + +* Sun Feb 23 2025 Packit - 1.2.0-1 +- Packit reloads spec file after `create-archive` to keep user changes. (#2533) +- Resolves: rhbz#2347179 + +* Fri Feb 14 2025 Packit - 1.1.1-1 +- Packit doesn't attempt to upload git-tracked remote sources (for example a [GPG keyring](https://docs.fedoraproject.org/en-US/packaging-guidelines/#_verifying_signatures)) to lookaside cache anymore when syncing release. (#2518) +- Resolves: rhbz#2345745 + +* Sun Feb 02 2025 Packit - 1.1.0-1 +- Thanks to the work of [Bryan Elee](https://github.com/rxbryan) (as part of his Google Summer of Code work) and [Dan Čermák](https://github.com/dcermak), there is a new `packit build in-obs` CLI command to trigger a build in [OBS](https://build.opensuse.org/). (#2067) +- Resolves: rhbz#2343396 + +* Sun Jan 26 2025 Packit - 1.0.1-1 +- `version_update_mask` now applies to EPEL dist-git branches in the same way it does to stable Fedora branches. (#2507) +- Resolves: rhbz#2342176 + +* Mon Jan 20 2025 Packit - 1.0.0-1 +- Job type `build` removed after deprecation, is now `copr_build`. +- Job type `production_build` removed after deprecation, is now `upstream_koji_build`. +- Key `upstream_project_name` removed after deprecation, is now `upstream_package_name`. +- Key `synced_files` removed after deprecation, is now `files_to_sync`. +- Resolves: rhbz#2338988 + * Fri Jan 17 2025 Fedora Release Engineering - 0.106.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/plans/full.fmf b/plans/full.fmf index 60a6092..fd42d60 100644 --- a/plans/full.fmf +++ b/plans/full.fmf @@ -1,6 +1,15 @@ summary: Unit, integration & functional tests. + discover+: filter: tag:full + +# marshmallow-jsonschema has no Fedora/EPEL package, install it from PyPI +prepare: + - how: install + package: python3-pip + - how: shell + script: pip3 install marshmallow-jsonschema + adjust: - when: "initiator == packit" because: "have the latest builds of ogr and specfile available for upstream test jobs" @@ -11,9 +20,15 @@ adjust: # make sure the Copr repo has higher priority than TF Tag Repository - how: shell script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo - # upgrade ogr and specfile in case they are already installed + + # upgrade or install ‹ogr›, if needed - how: shell - script: dnf -y upgrade python3-ogr python3-specfile + script: dnf -y upgrade python3-ogr || dnf -y install python3-ogr + + # upgrade or install ‹specfile›, if needed + - how: shell + script: dnf -y upgrade python3-specfile || dnf -y install python3-specfile + - when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9" because: "build and deepdiff are not in EPEL 9" prepare+: diff --git a/plans/main.fmf b/plans/main.fmf index d702a42..ee8dd03 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ -execute: - how: tmt discover: how: fmf url: https://github.com/packit/packit.git - ref: c5ddfd17c5adac846a41e85c06af522d644afa4d + ref: 868f8f6b5f04b0dfc5f4e42aa466721ffc0e4b15 +execute: + how: tmt diff --git a/plans/rpmlint.fmf b/plans/rpmlint.fmf index f9487df..c220c74 100644 --- a/plans/rpmlint.fmf +++ b/plans/rpmlint.fmf @@ -1,10 +1,12 @@ summary: Execute rpmlint on the spec file + discover: how: shell tests: - name: rpmlint test: rpmlint packit.spec + prepare: - name: packages how: install diff --git a/plans/session-recording.fmf b/plans/session-recording.fmf index fe7b016..141a092 100644 --- a/plans/session-recording.fmf +++ b/plans/session-recording.fmf @@ -1,6 +1,8 @@ summary: Session recording testcases + discover+: - filter: tier:2 + filter: tag:requre + adjust: - when: "initiator == packit" because: "have the latest builds of ogr and specfile available for upstream test jobs" @@ -8,12 +10,19 @@ adjust: # enable packit-dev Copr repo to get the latest builds of ogr and specfile - how: install copr: packit/packit-dev + # make sure the Copr repo has higher priority than TF Tag Repository - how: shell script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo - # upgrade ogr and specfile in case they are already installed + + # upgrade or install ‹ogr›, if needed - how: shell - script: dnf -y upgrade python3-ogr python3-specfile + script: dnf -y upgrade python3-ogr || dnf -y install python3-ogr + + # upgrade or install ‹specfile›, if needed + - how: shell + script: dnf -y upgrade python3-specfile || dnf -y install python3-specfile + - when: "distro <= rhel-9 or distro <= centos-9 or distro == centos-stream-8 or distro == centos-stream-9" prepare+: - how: install diff --git a/plans/smoke.fmf b/plans/smoke.fmf index c67e52c..f797e91 100644 --- a/plans/smoke.fmf +++ b/plans/smoke.fmf @@ -1,3 +1,4 @@ summary: Basic simple tests + discover+: filter: tier:0 diff --git a/sources b/sources index 78c6ca9..fa66d96 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (packitos-0.106.0.tar.gz) = f82380ce4a5f438185c0c829192b715698e934432fbb421bb1e031c277ed5cd3b15caf5716fabdffae6d2ce6e47fcdf1cf4534b2504eca6d696905e1dc85890f +SHA512 (packitos-1.16.3.tar.gz) = 0bf3d8a574f09d78261044e6b66447363e6c1d14f77c610b73773565aeac696aac952a2fc777aafc769023c211436ac18a84dce935f0da006fec02f981313758