| |
@@ -1,6 +1,8 @@
|
| |
+ %bcond_without tests
|
| |
%global srcname more-itertools
|
| |
+
|
| |
Name: python-%{srcname}
|
| |
- Version: 8.4.0
|
| |
+ Version: 8.5.0
|
| |
Release: 1%{?dist}
|
| |
Summary: More routines for operating on Python iterables, beyond itertools
|
| |
License: MIT
|
| |
@@ -9,8 +11,7 @@
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
- BuildRequires: python3-six
|
| |
+ BuildRequires: pyproject-rpm-macros
|
| |
|
| |
%global _description %{expand:
|
| |
Python's itertools library is a gem - you can compose elegant solutions for
|
| |
@@ -29,23 +30,29 @@
|
| |
%prep
|
| |
%autosetup -n %{srcname}-%{version}
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires %{?with_tests:-r -t}
|
| |
+
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files more_itertools
|
| |
|
| |
+ %if %{with tests}
|
| |
%check
|
| |
- %{python3} setup.py test
|
| |
+ %tox
|
| |
+ %endif
|
| |
|
| |
- %files -n python3-%{srcname}
|
| |
+ %files -n python3-%{srcname} -f %pyproject_files
|
| |
%license LICENSE
|
| |
%doc README.rst PKG-INFO
|
| |
- %{python3_sitelib}/more_itertools/
|
| |
- %exclude %{python3_sitelib}/more_itertools/tests
|
| |
- %{python3_sitelib}/more_itertools-%{version}-py%{python3_version}.egg-info/
|
| |
|
| |
%changelog
|
| |
+ * Wed Sep 09 2020 Lumír Balhar <lbalhar@redhat.com> - 8.5.0-1
|
| |
+ - Update to 8.5.0 (#1873653)
|
| |
+
|
| |
* Wed Jul 29 2020 Miro Hrončok <mhroncok@redhat.com> - 8.4.0-1
|
| |
- Update to 8.4.0
|
| |
- Fixes rhbz#1778332
|
| |
Dependant packages build fine: https://copr.fedorainfracloud.org/coprs/lbalhar/python-more-itertools-8.5.0/builds/