2020-12-31 15:12:07 +08:00
|
|
|
%global pypi_name pluggy
|
|
|
|
|
%bcond_without test
|
|
|
|
|
|
|
|
|
|
Name: python-pluggy
|
|
|
|
|
Version: 0.6.0
|
|
|
|
|
Release: 7
|
|
|
|
|
Summary: A minimalist production ready plugin system
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pytest-dev/pluggy
|
|
|
|
|
Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
%endif
|
2020-02-19 10:37:32 +08:00
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
|
A minimalist production ready plugin system.This is the core\
|
|
|
|
|
framework used by the pytest, tox, and devpi projects.
|
2019-12-14 21:12:44 +08:00
|
|
|
|
|
|
|
|
%description
|
2020-02-19 10:37:32 +08:00
|
|
|
%{_description}
|
2019-12-14 21:12:44 +08:00
|
|
|
|
2020-12-31 15:12:07 +08:00
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: %summary
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
2020-02-19 10:37:32 +08:00
|
|
|
|
2020-12-31 15:12:07 +08:00
|
|
|
%description -n python3-%{pypi_name}
|
2020-12-09 16:28:02 +08:00
|
|
|
%{_description}
|
2020-02-18 17:13:54 +08:00
|
|
|
|
2020-12-31 15:12:07 +08:00
|
|
|
|
2020-02-19 10:37:32 +08:00
|
|
|
%prep
|
2020-12-31 15:12:07 +08:00
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
2019-12-14 21:12:44 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-02-19 10:37:32 +08:00
|
|
|
%py3_build
|
2019-12-14 21:12:44 +08:00
|
|
|
|
|
|
|
|
%install
|
2020-02-19 10:37:32 +08:00
|
|
|
%py3_install
|
|
|
|
|
|
2020-12-31 15:12:07 +08:00
|
|
|
%check
|
|
|
|
|
%if %{with test}
|
|
|
|
|
export PYTHONPATH=.:$PYTHONPATH
|
|
|
|
|
py.test-%{python3_version} testing
|
|
|
|
|
%endif
|
2020-02-19 10:37:32 +08:00
|
|
|
|
2020-12-31 15:12:07 +08:00
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
2019-12-14 21:12:44 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2020-10-29 11:53:48 +08:00
|
|
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 0.6.0-7
|
|
|
|
|
- drop python2 subpackage
|
|
|
|
|
|
2020-02-19 10:37:32 +08:00
|
|
|
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6
|
2019-12-14 21:12:44 +08:00
|
|
|
- Package init
|