|
|
|
%global pypi_name pep517
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 0.7.0
|
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: Wrappers to build Python packages using PEP 517 hooks
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
# colorlog.py is "copied from Tornado", Apache licensed
|
|
|
|
License: MIT and ASL 2.0
|
|
|
|
URL: https://github.com/takluyver/pep517
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
# Don't use %%pyproject_buildrequires to avoid a build dependency loop.
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
BuildRequires: python3dist(flit)
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
BuildRequires: python3dist(toml)
|
|
|
|
BuildRequires: python3dist(mock)
|
|
|
|
BuildRequires: python3dist(testpath)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains wrappers around the hooks of standard API
|
|
|
|
for systems which build Python packages, specified in PEP 517.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
Requires: python3dist(toml)
|
|
|
|
|
|
|
|
# colorlog.py is "copied from Tornado", Apache licensed
|
|
|
|
Provides: bundled(python3dist(tornado))
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
This package contains wrappers around the hooks of standard API
|
|
|
|
for systems which build Python packages, specified in PEP 517.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
# Don't run the linter as part of tests
|
|
|
|
sed -i '/^addopts=--flake8$/d' pytest.ini
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
# "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
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
|
|
|
|
|
|
|
|
|
|
|
%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)
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jul 18 2019 Petr Viktorin <pviktori@redhat.com> - 0.5.0-1
|
|
|
|
- Initial package
|