From ffe6b1d7f0dceda58d8c6e19bed4b5000f2cf7f3 Mon Sep 17 00:00:00 2001 From: Packit Date: Oct 30 2023 11:55:03 +0000 Subject: [packit] 0.8.3 upstream release Upstream tag: 0.8.3 Upstream commit: dc253f99 --- diff --git a/.gitignore b/.gitignore index 8451b1a..aa6bf99 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /requre-0.8.0.tar.gz /requre-0.8.1.tar.gz /requre-0.8.2.tar.gz +/requre-0.8.3.tar.gz diff --git a/.packit.yaml b/.packit.yaml index cc72ffb..a6d16ae 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,4 +1,7 @@ --- +# We want to use both instances for all upstream jobs including the `propose-downstream` one. +# For downstream, we need to pick just one instance (`stg` in our case) +# and redefine it for the `koji_build` and `bodhi_update` jobs. packit_instances: ["prod", "stg"] specfile_path: fedora/python-requre.spec # https://packit.dev/docs/configuration/#top-level-keys @@ -17,61 +20,57 @@ actions: # LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/requre-0.11.1'. # Make sure you're either building from a fully intact git repository or PyPI tarballs. create-archive: - - python3 setup.py sdist --dist-dir ./fedora/ + - python3 -m build --sdist --outdir ./fedora/ - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" - get-current-version: python3 setup.py --version + get-current-version: + - hatch version srpm_build_deps: - - python3-pip # "python3 setup.py --version" needs it - - python3-setuptools_scm + - python3-build + - hatch + - python3-hatch-vcs jobs: - job: sync_from_downstream trigger: commit - job: propose_downstream trigger: release - packit_instances: ["prod", "stg"] - metadata: - dist_git_branches: fedora-all + dist_git_branches: + - fedora-all - job: copr_build trigger: pull_request - metadata: - targets: - - fedora-all - - epel-8 + targets: + - fedora-all + - epel-9 - job: copr_build trigger: commit - metadata: - branch: main - project: packit-dev - targets: - - fedora-all - - epel-8 - list_on_homepage: True - preserve_project: True + branch: main + project: packit-dev + targets: + - fedora-all + - epel-9 + list_on_homepage: True + preserve_project: True - job: copr_build trigger: release - metadata: - project: packit-releases - targets: - - fedora-all - - epel-8 - list_on_homepage: True - preserve_project: True + project: packit-releases + targets: + - fedora-all + - epel-9 + list_on_homepage: True + preserve_project: True # downstream automation: - job: koji_build trigger: commit packit_instances: ["stg"] - metadata: - dist_git_branches: - - fedora-all - - epel-8 + dist_git_branches: + - fedora-all + - epel-9 - job: bodhi_update trigger: commit packit_instances: ["stg"] - metadata: - dist_git_branches: - - fedora-latest # branched version, rawhide updates are created automatically - - fedora-stable - - epel-8 + dist_git_branches: + - fedora-latest # branched version, rawhide updates are created automatically + - fedora-stable + - epel-9 diff --git a/README.packit b/README.packit index 484032d..a7f0bd7 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.49.1.dev5+gc36800b. +The file was generated using packit 0.83.0.post1.dev20+gaf7edc1f. diff --git a/python-requre.spec b/python-requre.spec index 0529886..770b889 100644 --- a/python-requre.spec +++ b/python-requre.spec @@ -1,62 +1,66 @@ -%global srcname requre +%global desc %{expand: +REQUest REcordingRequre [rekure] - Is Library for storing output of various +function and methods to persistent storage and be able to replay the stored +output to functions.} + -Name: python-%{srcname} -Version: 0.8.2 -Release: 6%{?dist} -Summary: Python library what allows re/store output of various objects for testing +Name: python-requre +Version: 0.8.3 +Release: 1%{?dist} +Summary: Python library that allows re/store output of various objects for testing License: MIT URL: https://github.com/packit/requre -Source0: %{pypi_source} +Source0: %{pypi_source requre} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(click) -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(pyyaml) -BuildRequires: python3dist(requests) -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(setuptools-scm) -BuildRequires: python3dist(setuptools-scm-git-archive) -BuildRequires: python3dist(sphinx) + %description -REQUest REcordingRequre [rekure] - Is Library for storing output of various -function and methods to persistent storage and be able to replay the stored -output to functions. +%{desc} + -%package -n python3-%{srcname} +%package -n python3-requre Summary: %{summary} -# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides -%if 0%{?fedora} < 33 -%{?python_provide:%python_provide python3-%{srcname}} -%endif -%description -n python3-%{srcname} -REQUest REcordingRequre [rekure] - Is Library for storing output of various -function and methods to persistent storage and be able to replay the stored -output to functions. +%description -n python3-requre +%{desc} + %prep -%autosetup -n %{srcname}-%{version} -# Remove bundled egg-info -rm -rf %{srcname}.egg-info +%autosetup -n requre-%{version} + + +%generate_buildrequires +# The -w flag is required for EPEL 9's older hatchling +%pyproject_buildrequires %{?el9:-w} + %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install +%pyproject_save_files requre -%files -n python3-%{srcname} + +%files -n python3-requre -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 %{_bindir}/requre-patch -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info + %changelog +* Mon Oct 30 2023 Packit - 0.8.3-1 +- Fix an issue of clashing with the _coverage_. +- Packaging has been modernized. + * Fri Jul 21 2023 Fedora Release Engineering - 0.8.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 4118e89..c658449 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (requre-0.8.2.tar.gz) = b004c877c56c376f4abf345ac795889a0c911fe7f6ee993701eca3ad6ee3e41650f7c6789a3ea45826086ce538b170e2e154de01226800367385536caa2384e7 +SHA512 (requre-0.8.3.tar.gz) = 048adee70cc72301c37287d215fcb2aa4d24c62f61b92db4924ce922bb2e2eee7f920e0aea926b57adf547628f3e054154c8bb4da3d7866d5b2d7687e1df4fdb