drop python2 subpackage
This commit is contained in:
parent
76d766f761
commit
db98c0947a
@ -3,17 +3,16 @@
|
|||||||
|
|
||||||
Name: python-pluggy
|
Name: python-pluggy
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A minimalist production ready plugin system
|
Summary: A minimalist production ready plugin system
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pytest-dev/pluggy
|
URL: https://github.com/pytest-dev/pluggy
|
||||||
Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: python2-pytest python3-pytest
|
BuildRequires: python3-pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
@ -23,14 +22,6 @@ framework used by the pytest, tox, and devpi projects.
|
|||||||
%description
|
%description
|
||||||
%{_description}
|
%{_description}
|
||||||
|
|
||||||
%package -n python2-%{pypi_name}
|
|
||||||
Summary: %summary
|
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
||||||
|
|
||||||
%description -n python2-%{pypi_name}
|
|
||||||
%{_description}
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
@ -43,27 +34,17 @@ Summary: %summary
|
|||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
export PYTHONPATH=.:$PYTHONPATH
|
export PYTHONPATH=.:$PYTHONPATH
|
||||||
py.test testing
|
|
||||||
py.test-%{python3_version} testing
|
py.test-%{python3_version} testing
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/%{pypi_name}
|
|
||||||
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info
|
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -71,5 +52,8 @@ py.test-%{python3_version} testing
|
|||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 0.6.0-7
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6
|
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user