[packit] 0.75.0 upstream release

Upstream tag: 0.75.0
Upstream commit: ebb1486d
This commit is contained in:
Packit 2023-04-28 07:57:47 +00:00
commit fc72ff21ba
7 changed files with 58 additions and 64 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@
/packitos-0.72.0.tar.gz
/packitos-0.73.0.tar.gz
/packitos-0.74.0.tar.gz
/packitos-0.75.0.tar.gz

View file

@ -18,10 +18,10 @@ issue_repository: https://github.com/packit/packit
actions:
create-archive:
- "python3 setup.py sdist --dist-dir ."
- "sh -c 'echo packitos-$(python3 setup.py --version).tar.gz'"
- "python3 -m build --sdist --outdir ."
- "sh -c 'echo packitos-$(hatch version).tar.gz'"
get-current-version:
- "python3 setup.py --version"
- "hatch version"
pre-sync:
# FMF has to be installed on system where you are calling this tool.
- python3 plans/git_reference.py
@ -30,8 +30,9 @@ allowed_gpg_keys:
- 5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23
srpm_build_deps:
- python3-pip # "python3 setup.py --version" needs it
- python3-setuptools_scm
- python3-build
- hatch
- python3-hatch-vcs
jobs:
- job: propose_downstream

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.73.0.post7+g6499d36.
The file was generated using packit 0.74.0.post35+g8a9c282.

View file

@ -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.74.0
Name: packit
Version: 0.75.0
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 >= 7.0.0
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,50 +35,57 @@ 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}
%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}
%{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 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)

View file

@ -1,6 +1,13 @@
summary: Unit, integration & functional tests.
discover+:
filter: tier:1
prepare:
# 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: dnf -y config-manager --save --setopt="*:packit:packit-dev.priority=5"
adjust:
- when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9"
because: "flexmock and deepdiff are not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251"

View file

@ -3,4 +3,4 @@ execute:
discover:
how: fmf
url: https://github.com/packit/packit.git
ref: 0e7f3845360b2a0fbf81a08bee2092437c2f5d9d
ref: ebb1486dac4969347c34d89f0f6138007c8bd86c

View file

@ -1 +1 @@
SHA512 (packitos-0.74.0.tar.gz) = 2ba3b1fa8c8cea8b9d2672e1d512b2207d46dc18c7b26a634710e78f26d41ecf247448732071acd51f42a59d46899be0f8ac923542cd75a72824a41daf613a17
SHA512 (packitos-0.75.0.tar.gz) = c8168dd830db8048b0119e6124fc770a014c2642a41733a6dd59cefc890f15b839b56f07703e605330549707e8e92d62a2e50ec8fc3d279f826d6064a9d57329