2019-07-26 12:34:21 +00:00
|
|
|
%global pypi_name pluggy
|
|
|
|
Name: python-%{pypi_name}
|
2019-09-12 10:52:56 +00:00
|
|
|
Version: 0.13.0
|
2019-07-26 12:34:21 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: The plugin manager stripped of pytest specific details
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/pytest-dev/pluggy
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
%description
|
2020-04-15 14:44:04 +00:00
|
|
|
A pure Python library. The package contains tox.ini. Does not contain executables.
|
|
|
|
Building this tests:
|
|
|
|
- generating runtime and testing dependencies
|
|
|
|
- running tests with %%tox
|
|
|
|
- the %%pyproject_save_files +bindir option works without actual executables
|
|
|
|
- pyproject.toml with the setuptools backend and setuptools-scm
|
2019-07-26 12:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2019-09-12 10:52:56 +00:00
|
|
|
%pyproject_buildrequires -t
|
2019-07-26 12:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
2020-04-15 14:44:04 +00:00
|
|
|
# There are no executables, but we are allowed to pass +bindir anyway
|
|
|
|
%pyproject_save_files pluggy +bindir
|
2019-07-26 12:34:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2019-07-26 15:50:36 +00:00
|
|
|
%tox
|
2019-07-26 12:34:21 +00:00
|
|
|
|
|
|
|
|
2020-04-15 14:44:04 +00:00
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
2019-07-26 12:34:21 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|