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
|
2020-10-26 15:11:32 +00:00
|
|
|
# we don't BR python3-devel here just for test purposes, but we recommend you do it
|
2019-07-26 12:34:21 +00:00
|
|
|
|
|
|
|
%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
|
2020-08-04 11:08:46 +00:00
|
|
|
- the %%pyproject_save_files +auto option works without actual executables
|
2020-04-15 14:44:04 +00:00
|
|
|
- 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-08-04 11:08:46 +00:00
|
|
|
# There are no executables, but we are allowed to pass +auto anyway
|
|
|
|
%pyproject_save_files pluggy +auto
|
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
|