|
|
|
|
@ -1,50 +1,28 @@
|
|
|
|
|
%global pypi_name packitos
|
|
|
|
|
%global real_name packit
|
|
|
|
|
# Testing dependencies: deepdiff, flexmock are missing on EPEL 9. Cannot use testing environment
|
|
|
|
|
%if 0%{?el9}
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: %{real_name}
|
|
|
|
|
Version: 0.67.0
|
|
|
|
|
Name: packit
|
|
|
|
|
Version: 0.97.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A tool for integrating upstream projects with Fedora operating system
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/packit/packit
|
|
|
|
|
Source0: %pypi_source
|
|
|
|
|
Source0: %{pypi_source packitos}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-click-man
|
|
|
|
|
BuildRequires: python3-GitPython
|
|
|
|
|
BuildRequires: python3-gnupg
|
|
|
|
|
BuildRequires: python3-ogr
|
|
|
|
|
BuildRequires: python3-packaging
|
|
|
|
|
BuildRequires: python3-pyyaml
|
|
|
|
|
BuildRequires: python3-specfile
|
|
|
|
|
BuildRequires: python3-tabulate
|
|
|
|
|
BuildRequires: python3-cccolutils
|
|
|
|
|
BuildRequires: python3-copr
|
|
|
|
|
BuildRequires: python3-koji
|
|
|
|
|
BuildRequires: python3-rpkg
|
|
|
|
|
BuildRequires: python3-lazy-object-proxy
|
|
|
|
|
BuildRequires: python3-marshmallow
|
|
|
|
|
BuildRequires: python3-marshmallow-enum
|
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
|
BuildRequires: python3-requests-kerberos
|
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
BuildRequires: python3dist(setuptools-scm)
|
|
|
|
|
BuildRequires: python3dist(setuptools-scm-git-archive)
|
|
|
|
|
BuildRequires: python3-bodhi-client
|
|
|
|
|
BuildRequires: python3-cachetools
|
|
|
|
|
BuildRequires: python3-fedora
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# epel-8 requires typing-extensions due to old python version
|
|
|
|
|
BuildRequires: python3-typing-extensions
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python3-%{real_name} = %{version}-%{release}
|
|
|
|
|
BuildRequires: python3dist(click-man)
|
|
|
|
|
Requires: python3-packit = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This project provides tooling and automation to integrate upstream open source
|
|
|
|
|
projects into Fedora operating system.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{real_name}
|
|
|
|
|
%package -n python3-packit
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
# new-sources
|
|
|
|
|
Requires: fedpkg
|
|
|
|
|
@ -57,51 +35,213 @@ Requires: rpm-build
|
|
|
|
|
Requires: rpmdevtools
|
|
|
|
|
# Copying files between repositories
|
|
|
|
|
Requires: rsync
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# rhbz#1968618 still not fixed for epel-8
|
|
|
|
|
Requires: python3-koji
|
|
|
|
|
%endif
|
|
|
|
|
%{?python_provide:%python_provide python3-%{real_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{real_name}
|
|
|
|
|
Recommends: osh-cli
|
|
|
|
|
|
|
|
|
|
%description -n python3-packit
|
|
|
|
|
Python library for Packit,
|
|
|
|
|
check out packit package for the executable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
# Remove bundled egg-info
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
%autosetup -n packitos-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
# The -w flag is required for EPEL 9's older hatchling
|
|
|
|
|
%pyproject_buildrequires %{?with_tests:-x testing} %{?el9:-w}
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# rhbz#1968618 still not fixed for epel-8
|
|
|
|
|
sed -i -e 's|koji|# koji|' setup.cfg
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
python3 setup.py --command-packages=click_man.commands man_pages --target %{buildroot}%{_mandir}/man1
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files packit
|
|
|
|
|
PYTHONPATH="%{buildroot}%{python3_sitelib}" click-man packit --target %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{bash_completions_dir}
|
|
|
|
|
cp files/bash-completion/packit %{buildroot}%{bash_completions_dir}/packit
|
|
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions
|
|
|
|
|
cp files/bash-completion/packit %{buildroot}%{_datadir}/bash-completion/completions/packit
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_bindir}/packit
|
|
|
|
|
%{_mandir}/man1/packit*.1*
|
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
|
%{_datadir}/bash-completion/completions/%{real_name}
|
|
|
|
|
%{_bindir}/_packitpatch
|
|
|
|
|
%{bash_completions_dir}/packit
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{real_name}
|
|
|
|
|
%files -n python3-packit -f %{pyproject_files}
|
|
|
|
|
# Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case
|
|
|
|
|
%if 0%{?el9}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%endif
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri May 17 2024 Packit <hello@packit.dev> - 0.97.1-1
|
|
|
|
|
- We have fixed the behaviour for `dist-git init` command when `upstream-git-url` argument is specified.
|
|
|
|
|
- Resolves: rhbz#2278839
|
|
|
|
|
|
|
|
|
|
* Wed May 15 2024 Packit <hello@packit.dev> - 0.97.0-1
|
|
|
|
|
- Add a `scan-in-osh` subcommand in the CLI to perform a scan through OpenScanHub. By default, it performs a full scan of the packages and a differential scan can be performed through `--base-srpm` option. (#2301)
|
|
|
|
|
- When running `dist-git init` command from CLI, you can pass a command to specify a git URL of the project. (#2308)
|
|
|
|
|
|
|
|
|
|
* Mon Apr 22 2024 Packit <hello@packit.dev> - 0.95.0-1
|
|
|
|
|
- `packit dist-git init` now allows specifying `--version-update-mask` option and also any arbitrary top-level configuration options. (#2288)
|
|
|
|
|
- We have fixed Packit auto-referencing Upstream Release Monitoring bug for release syncing to CentOS Stream. (#2284)
|
|
|
|
|
- Resolves: rhbz#2276194
|
|
|
|
|
|
|
|
|
|
* Mon Apr 08 2024 Packit <hello@packit.dev> - 0.94.2-1
|
|
|
|
|
- Packit previously put the "[packit]" string as a prefix in the subject of pull-from-upstream commits. Now the prefix is no longer there - this is made unnecessary noise in autochangelog. This affects the default. Custom action can still override this behavior. (#2263)
|
|
|
|
|
- We have fixed a race condition that could occur when multiple `copr_build` jobs sharing a Copr project but having different targets were running at the same time. (#2274)
|
|
|
|
|
- Resolves: rhbz#2273977
|
|
|
|
|
|
|
|
|
|
* Thu Mar 28 2024 Packit <hello@packit.dev> - 0.94.1-1
|
|
|
|
|
- `packit validate-config` now checks whether `upstream_project_url` is set if `pull_from_upstream` job is configured. (#2254)
|
|
|
|
|
- `Resolves` is changed to `Resolves:` for the dist-git commit since that's the correct format for CentOS Stream 9. (#2260)
|
|
|
|
|
- Resolves: rhbz#2272077
|
|
|
|
|
|
|
|
|
|
* Sun Mar 17 2024 Packit <hello@packit.dev> - 0.94.0-1
|
|
|
|
|
- Added new configuration options `status_name_template` and `allowed_builders`.
|
|
|
|
|
- Resolves rhbz#2266037
|
|
|
|
|
|
|
|
|
|
* Mon Feb 26 2024 Packit <hello@packit.dev> - 0.93.0-1
|
|
|
|
|
- Packit now checks the version to propose against the version in specfile and doesn't create downgrade PRs. (#2239)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2024 Packit <hello@packit.dev> - 0.92.0-1
|
|
|
|
|
- Packit now supports `trigger: ignore` which can be used for templating by using the YAML. (#2234)
|
|
|
|
|
- Packit now searches for bugzilla about new release created by Upstream Release Monitoring to reference each time it syncs the release downstream. (#2229)
|
|
|
|
|
- Resolves rhbz#2264878
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2024 Packit <hello@packit.dev> - 0.91.0-1
|
|
|
|
|
- We have introduced new CLI command `packit dist-git init` that initializes Packit configuration for release automation in dist-git repository. (#2225)
|
|
|
|
|
- `packit validate-config` now checks whether the Upstream Release Monitoring for the package is correctly configured if `pull_from_upstream` job is present in the configuration. (#2226)
|
|
|
|
|
- There is a new global configuration option `parse_time_macros` that allows to configure macros to be explicitly defined or undefined at spec file parse time. (#2222)
|
|
|
|
|
- Resolves rhbz#2259201
|
|
|
|
|
|
|
|
|
|
* Sun Jan 28 2024 Packit <hello@packit.dev> - 0.90.0-1
|
|
|
|
|
- `pull-from-upstream` and `propose-downstream` commands now have the `--sync-acls` option that enables syncing the ACLs between dits-git repo and fork. The default behaviour was, however, changed to not sync the ACLs. (#2214)
|
|
|
|
|
- Packit now properly handles exceptions when syncing ACLs during release syncing. (#2213)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Packit <hello@packit.dev> - 0.89.0-1
|
|
|
|
|
- We have fixed a bug in handling chroot-specific configuration once the chroots themselves are updated. (#2194)
|
|
|
|
|
|
|
|
|
|
* Sun Jan 07 2024 Packit <hello@packit.dev> - 0.88.0-1
|
|
|
|
|
- We have fixed a bug preventing the release from being synced downstream if the changelog to be set is empty. (#2183)
|
|
|
|
|
- Resolves rhbz#2257183
|
|
|
|
|
|
|
|
|
|
* Thu Nov 30 2023 Packit <hello@packit.dev> - 0.87.1-1
|
|
|
|
|
- Packit now links the information related to upstream in PRs opened when syncing a release. (#2173)
|
|
|
|
|
- Resolves rhbz#2252328
|
|
|
|
|
|
|
|
|
|
* Fri Nov 24 2023 Packit <hello@packit.dev> - 0.87.0-1
|
|
|
|
|
- Packit now correctly sets the specfile content (e.g. changelog entry) even if it syncs the specfile from upstream the first time. (#2170)
|
|
|
|
|
- Packit now supports pre-release version in `propose_downstream` and `pull_from_upstream`. A spec file update might be required, see the documentation for more details. (#2149)
|
|
|
|
|
- Resolves rhbz#2251367
|
|
|
|
|
|
|
|
|
|
* Mon Nov 20 2023 Packit <hello@packit.dev> - 0.86.2-1
|
|
|
|
|
- Packit _0.86.1_ was not released on PyPI due to an internal bug, it should be fixed in this release.
|
|
|
|
|
|
|
|
|
|
* Mon Oct 30 2023 Packit <hello@packit.dev> - 0.85.0-1
|
|
|
|
|
- Packit no longer downloads sources excluded using spec file conditions. (#2132)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 16 2023 Packit <hello@packit.dev> - 0.84.0-1
|
|
|
|
|
- We have adjusted how we include the resolved bugzillas in the commit messages created when syncing the release downstream so that the resolved bugzillas are included in changelog when using %%autochangelog. (#2126)
|
|
|
|
|
- Packit now properly cleans up the branch after syncing the release which should prevent unwanted files (e.g.tarballs) being committed in dist-git. (#2125)
|
|
|
|
|
- Packit no longer accepts `packit.json` or `.packit.json` as a configuration file name. (#2123)
|
|
|
|
|
- Packit now updates ACL of a dist-git fork when creating dist-git PRs to allow users and groups with commit rights to the original dist-git repo to push directly to a source branch. (#2112)
|
|
|
|
|
- We have fixed an issue that prevented you from running the jobs on the GitLab.com due to failing resolution of the upstream/downstream relationship for the cloned project. (#2120)
|
|
|
|
|
- We have fixed an issue that you could encounter when running the Packit from the CLI that caused misinterpretation of the repository to be an upstream repo instead of a downstream. (#2117)
|
|
|
|
|
- Resolves rhbz#2244381
|
|
|
|
|
|
|
|
|
|
* Fri Oct 06 2023 Packit <hello@packit.dev> - 0.83.0-1
|
|
|
|
|
- We have fixed an issue that prevented automated allowlisting in the Packit Service. (#2113)
|
|
|
|
|
- Packit now also detects resolved bugs in the default update notes (created from changelog diff) and assigns these when submitting the Bodhi updates. (#2111)
|
|
|
|
|
- Packit now exports `PACKIT_UPSTREAM_PACKAGE_NAME`, `PACKIT_DOWNSTREAM_PACKAGE_NAME` and `PACKIT_CONFIG_PACKAGE_NAME` also in the `changelog_entry` action. (#2103)
|
|
|
|
|
|
|
|
|
|
* Fri Sep 29 2023 Packit <hello@packit.dev> - 0.82.0-1
|
|
|
|
|
- You can now specify bugs resolved by an update by `-b` or `--resolve-bug` option for `propose-downstream` and `pull-from-upstream` commands. The values will be added by default to the changelog and commit message and provided in `commit-message` and `changelog-entry` actions as `PACKIT_RESOLVED_BUGS` env variable. (#2094)
|
|
|
|
|
- Resolves rhbz#2240355
|
|
|
|
|
|
|
|
|
|
* Sat Sep 23 2023 Packit <hello@packit.dev> - 0.81.0-1
|
|
|
|
|
- Packit now supports the `pkg_tool` option in the config (at the top-level or with specific packages when using the monorepo syntax). This option can be used for switching between `fedpkg` or `centpkg`. (#2085)
|
|
|
|
|
- When updating the `Version` tag during `propose_downstream` or `pull_from_upstream`, Packit now tries to update referenced macros (if any) rather than overwriting the references. (#2087)
|
|
|
|
|
- If you have concerns about Packit uploading new archives to lookaside cache before creating a pull request, you can newly set `upload_sources` to False to disable this. (#2086)
|
|
|
|
|
- We have fixed a bug that could cause duplicit PRs to be created when using the `commit-message` action. (#2080)
|
|
|
|
|
- Packit now supports `commit-message` action that can be used to override the default commit message produced by Packit during `propose-downstream` or `pull-from-upstream`. Please pay attention to our [documentation](https://packit.dev/docs/configuration/actions#commit-message) with regards to the usage of this action. (#2070)
|
|
|
|
|
|
|
|
|
|
* Fri Sep 08 2023 Packit <hello@packit.dev> - 0.80.0-1
|
|
|
|
|
- Packit CLI now provides a new command `pull-from-upstream`, offering the same functionality as `propose-downstream` but suited for usage from the dist-git repository with Packit configuration placed there. This was primarily added to help reproduce the behaviour of the service's [pull_from_upstream job](https://packit.dev/docs/configuration/downstream/pull_from_upstream). (#2063)
|
|
|
|
|
- Packit now exposes `PACKIT_PACKAGE_NAME`, `PACKIT_UPSTREAM_PACKAGE_NAME` and `PACKIT_DOWNSTREAM_PACKAGE_NAME` environment variables to all actions. (#2061)
|
|
|
|
|
- We have fixed a bug in `packit source-git init` caused by changed behaviour in a newer version of rpmbuild. (#2048)
|
|
|
|
|
|
|
|
|
|
* Tue Aug 22 2023 Packit <hello@packit.dev> - 0.79.1-1
|
|
|
|
|
- We have fixed a bug in getting allowed GPG keys when syncing the release for projects with Packit config
|
|
|
|
|
in monorepo format in dist-git. (#2037)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 11 2023 Packit <hello@packit.dev> - 0.79.0-1
|
|
|
|
|
- 2 new configuration options for filtering when getting latest upstream release tag were introduced: `upstream_tag_include` and `upstream_tag_exclude`. They should contain a Python regex that can be used as an argument in `re.match`. (#2030)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 04 2023 Packit <hello@packit.dev> - 0.78.2-1
|
|
|
|
|
- Packit's license in RPM specfile is now confirmed to be SPDX compatible. (#2026)
|
|
|
|
|
- `source-git init --ignore-missing-autosetup` help was improved to be less confusing. (#2016) (#2017)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 13 2023 Packit <hello@packit.dev> - 0.78.1-1
|
|
|
|
|
- Temporarily disabled test dependencies on Fedora Rawhide because of missing `python3-deepdiff`. (#2008)
|
|
|
|
|
|
|
|
|
|
* Sat Jul 08 2023 Packit <hello@packit.dev> - 0.78.0-1
|
|
|
|
|
- Packit now correctly reloads upstream specfile after running `pre-sync` action. (#2006)
|
|
|
|
|
|
|
|
|
|
* Sat Jun 17 2023 Packit <hello@packit.dev> - 0.77.0-1
|
|
|
|
|
- Packit now includes dist-git branch in the title of the PRs for `propose-downstream` and `pull-from-upstream`. (#1996)
|
|
|
|
|
- We have fixed an issue with `files_to_sync` filters not being applied properly. (#1977)
|
|
|
|
|
|
|
|
|
|
* Fri May 26 2023 Packit <hello@packit.dev> - 0.76.0-1
|
|
|
|
|
- Unsuccessful Image Builder requests now provide error details so you can fix the Image configuration. (#1981)
|
|
|
|
|
- Copr projects created by Packit will not follow the Fedora branching from now on.
|
|
|
|
|
This decision has been made to lower the load on Copr from the temporary Copr projects created, mainly, for the PR builds.
|
|
|
|
|
If you are releasing your packages to Copr, please use the new setting `follow_fedora_branching`.
|
|
|
|
|
Already existing projects are not affected by this change and it is also not enforced with the custom Copr repositories. (#1970)
|
|
|
|
|
|
|
|
|
|
* Fri Apr 28 2023 Packit <hello@packit.dev> - 0.75.0-1
|
|
|
|
|
- Detection of `%%autorelease` usage in dist-git spec file during `propose-downstream` and `pull-from-upstream` has been improved and Packit will always preserve it. (#1949)
|
|
|
|
|
- Changed build tool to hatchling and moved metadata to `pyproject.toml`. (PEP621) (#1913)
|
|
|
|
|
- Respect `upstream_ref` for tags that start with "a", "b", "c", "e", "n", "r", "s". This was caused by an issue with a `branches` prefix being treated as a set of letters to remove. (#1943)
|
|
|
|
|
- Reset `Release` field in dist-git spec file to `1` when the version in upstream spec file is not up-to-date with the release that triggered `propose_downstream`. (#1940)
|
|
|
|
|
- Correctly catch the logs, if any of the user actions fail during the propose-downstream. (#1939)
|
|
|
|
|
- `packit source-git` related commands can skip dist-git repos, where the git trailer is not found, when looking for the right dist-git dir where to work. (#1938)
|
|
|
|
|
- More monorepo related fixes. (#1946, #1947, #1948)
|
|
|
|
|
|
|
|
|
|
* Sun Apr 16 2023 Packit <hello@packit.dev> - 0.74.0-1
|
|
|
|
|
- Allow configuring tmt tests with fmf root outside of git root. (#1936)
|
|
|
|
|
- Removed adding the "Signed-off-by" tag to commits created by Packit. (#1934)
|
|
|
|
|
- Packit's source_git functionality installs/loads the `_packitpatch` script in a more reliable manner that doesn't rely on deprecated setuptools functionality. (#1926)
|
|
|
|
|
|
|
|
|
|
* Thu Apr 06 2023 Packit <hello@packit.dev> - 0.73.0-1
|
|
|
|
|
- Packit now supports monorepo configuration in CLI (#1864)
|
|
|
|
|
|
|
|
|
|
* Fri Mar 31 2023 Packit <hello@packit.dev> - 0.72.0-1
|
|
|
|
|
- Packit now preserves `autorelease` macro during `propose_downstream` and `pull_from_upstream`. (#1904)
|
|
|
|
|
|
|
|
|
|
* Sat Mar 25 2023 Packit <hello@packit.dev> - 0.71.0-1
|
|
|
|
|
- `upstream_tag_template` is now also used when looking for the latest version tag in Git. This allows upstream repositories to mix different tag-patterns in the same repository, but consider only one to tell the latest version. (#1891)
|
|
|
|
|
|
|
|
|
|
* Mon Mar 20 2023 Packit <hello@packit.dev> - 0.70.0-1
|
|
|
|
|
- Now packit uses the `get_current_version` action defined by the user to retrieve version before updating the specfile %%setup macro (if any). (#1886)
|
|
|
|
|
|
|
|
|
|
* Sun Mar 05 2023 Packit <hello@packit.dev> - 0.69.0-1
|
|
|
|
|
- `packit validate-config` now correctly checks glob-patterns in `files_to_sync`. (#1865)
|
|
|
|
|
- Aliases logic was updated to account for the upcoming Fedora release (Bodhi now marks such release as `frozen`). (#1863)
|
|
|
|
|
- Command `packit validate-config` now provides details about errors when it cannot parse the config file. (#1861)
|
|
|
|
|
- Packit does fewer API calls when searching for the package configuration file in remote repositories. (#1846)
|
|
|
|
|
- `--update-release`/`--no-update-release` now affects only `Release`, not `Version`. (#1857)
|
|
|
|
|
- Packit now provides `PACKIT_PROJECT_VERSION` environment variable when running `changelog-entry` action. (#1853)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 20 2023 Packit <hello@packit.dev> - 0.68.0-1
|
|
|
|
|
- Packit now requires bodhi in version 7.0.0 at minimum. (#1844)
|
|
|
|
|
- You can now use `--srpm` option with the `packit build locally` CLI command. (#1810)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 03 2023 Packit <hello@packit.dev> - 0.67.0-1
|
|
|
|
|
- Packit now sanitizes changelog messages in order not to break spec file parsing. (#1841)
|
|
|
|
|
|
|
|
|
|
|