|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global pypi_name pep517
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 0.5.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.7.0
|
|
|
|
|
Release: 0%{?dist}
|
|
|
|
|
Summary: Wrappers to build Python packages using PEP 517 hooks
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
@ -20,7 +20,7 @@ BuildRequires: python3dist(flit)
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
BuildRequires: python3dist(pytoml)
|
|
|
|
|
BuildRequires: python3dist(toml)
|
|
|
|
|
BuildRequires: python3dist(mock)
|
|
|
|
|
BuildRequires: python3dist(testpath)
|
|
|
|
|
%endif
|
|
|
|
@ -35,7 +35,7 @@ for systems which build Python packages, specified in PEP 517.
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python3dist(pytoml)
|
|
|
|
|
Requires: python3dist(toml)
|
|
|
|
|
|
|
|
|
|
# colorlog.py is "copied from Tornado", Apache licensed
|
|
|
|
|
Provides: bundled(python3dist(tornado))
|
|
|
|
@ -63,7 +63,9 @@ sed -i '/^addopts=--flake8$/d' pytest.ini
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
%{__python3} -m pytest
|
|
|
|
|
# "test_meta" skipped as it creates a venv and tries
|
|
|
|
|
# to install to it from PyPI
|
|
|
|
|
%{__python3} -m pytest -v -k "not test_meta"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +77,10 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Oct 23 2019 Petr Viktorin <pviktori@redhat.com> - 0.7.0-1
|
|
|
|
|
- Update to version 0.7.0
|
|
|
|
|
- Change dependency from pytoml to toml
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-4
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|