You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.7 KiB
103 lines
2.7 KiB
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.7.2)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 2;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
%if 0%{?epel} == 9
|
|
# pytest fails to import test.support on epel9
|
|
%bcond_with test
|
|
%else
|
|
%bcond_without test
|
|
%endif
|
|
|
|
Name: python-jaraco-test
|
|
Version: 5.5.1
|
|
Release: %autorelease
|
|
Summary: Testing support by jaraco
|
|
License: MIT
|
|
URL: https://github.com/jaraco/jaraco.test
|
|
Source: %{pypi_source jaraco_test}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
# needs test module which is part of python stdlib
|
|
BuildRequires: python3-test
|
|
%if 0%{?epel} == 9
|
|
# Change the build backend in EPEL9 because `setuptools>=61.2` is needed for PEP621
|
|
BuildRequires: tomcli
|
|
%endif
|
|
|
|
%global _description %{expand:
|
|
Testing support by jaraco.}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-jaraco-test
|
|
Summary: %{summary}
|
|
Requires: python3-test
|
|
|
|
%description -n python3-jaraco-test %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n jaraco_test-%{version}
|
|
%if 0%{?epel} == 9
|
|
tomcli set pyproject.toml lists str "build-system.requires" "hatchling" "hatch-vcs"
|
|
tomcli set pyproject.toml str "build-system.build-backend" "hatchling.build"
|
|
tomcli set pyproject.toml str "tool.hatch.version.source" "vcs"
|
|
tomcli set pyproject.toml lists str "tool.hatch.build.targets.wheel.packages" "jaraco"
|
|
%endif
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -x test
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files -l jaraco
|
|
|
|
|
|
%check
|
|
%pyproject_check_import
|
|
%if %{with test}
|
|
%{py3_test_envvars} %{python3} -m pytest -v
|
|
%endif
|
|
|
|
|
|
%files -n python3-jaraco-test -f %{pyproject_files}
|
|
%doc README.rst
|
|
|
|
%changelog
|
|
* Sat Sep 28 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 5.5.1-2
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
## START: Generated by rpmautospec
|
|
* Fri Sep 20 2024 Cristian Le <cristian.le@mpsd.mpg.de> - 5.5.1-2
|
|
- Make package buildable for epel>=9
|
|
|
|
* Fri Sep 20 2024 Cristian Le <cristian.le@mpsd.mpg.de> - 5.5.1-1
|
|
- Update to 5.5.1
|
|
|
|
* Mon Aug 12 2024 Lumir Balhar <lbalhar@redhat.com> - 5.4.0-4
|
|
- Fix compatibility with pytest 8 (rhbz#2279864)
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 5.4.0-2
|
|
- Rebuilt for Python 3.13
|
|
|
|
* Wed Apr 03 2024 Lumir Balhar <lbalhar@redhat.com> - 5.4.0-1
|
|
- Initial import (fedora#2270683).
|
|
## END: Generated by rpmautospec
|