Update to 0.1.5

And use setuptools instead of Poetry for building on RHEL and CentOS
Stream.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2024-06-27 15:12:43 +02:00
parent e509340c1c
commit 5f35979db5
3 changed files with 9 additions and 13 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/rpmautospec_core-0.1.2.tar.gz
/rpmautospec_core-0.1.3.tar.gz
/rpmautospec_core-0.1.4.tar.gz
/rpmautospec_core-0.1.5.tar.gz

View File

@ -1,10 +1,13 @@
%bcond_with testcoverage
%if ! 0%{?rhel} || 0%{?rhel} >= 10
%bcond_without pyproject_build
# Only generate buildrequires or use PEP 518 style building on Fedora and new EPEL releases because
# Poetry is missing elsewhere. Fall back to using setuptools instead.
%if ! 0%{?rhel} || 0%{?epel} >= 10
%bcond_without genbrs
%bcond_without pyproject_build
%else
%bcond_with pyproject_build
%bcond_with genbrs
%bcond_with pyproject_build
%endif
%if 0%{undefined pyproject_files}
@ -15,7 +18,7 @@
%global canonicalname rpmautospec-core
Name: python-%{canonicalname}
Version: 0.1.4
Version: 0.1.5
Release: %autorelease
Summary: Minimum functionality for rpmautospec
@ -63,14 +66,6 @@ addopts =
PYTESTINI
%endif
%if %{without pyproject_build}
cat << SETUPPY > setup.py
from setuptools import setup
setup(name="%{canonicalname}", version="%{version}", packages=["%{srcname}"])
SETUPPY
%endif
%build
%if %{with pyproject_build}
%pyproject_wheel

View File

@ -1 +1 @@
SHA512 (rpmautospec_core-0.1.4.tar.gz) = ae72a27516c27d96f5e42da555a2d842aa1d8f3e9747598a558ab30847c1986369eacb4312ff8f884c5b8ae3c320d7a56d551e76627fa86d923929471d490c7f
SHA512 (rpmautospec_core-0.1.5.tar.gz) = ab04ad5f97cc2fafc0ae3064aa2aee1b894c987b8402ecc3709e66bafb1f6c0096844be845036fbceefc3b88b5b1ced277f936a1d5e5f35b252415115bd307bb