!1 Package init

Merge pull request !1 from huzunhao/master
This commit is contained in:
openeuler-ci-bot 2020-02-19 10:12:10 +08:00 committed by Gitee
commit 923d5a05d8
3 changed files with 27 additions and 56 deletions

BIN
pluggy-0.13.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,75 +1,46 @@
%global pypi_name pluggy Name: python-pluggy
%bcond_without test Version: 0.13.1
Release: 1
Summary: Plugin and hook calling mechanisms for Python
License: MIT
URL: https://pypi.org/project/pluggy/
Source0: https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz
Name: python-pluggy BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
Version: 0.6.0 BuildArch: noarch
Release: 6
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: python2-devel python2-setuptools
BuildRequires: python3-devel python3-setuptools
%if %{with test}
BuildRequires: python2-pytest python3-pytest
%endif
%global _description\
A minimalist production ready plugin system.This is the core\
framework used by the pytest, tox, and devpi projects.
%description %description
%{_description} Plugin manager as used by pytest but stripped of pytest specific
details.
%package -n python2-%{pypi_name} %package -n python3-pluggy
Summary: %summary Summary: Plugin and hook calling mechanisms for Python
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name} %description -n python3-pluggy
%{_description} The plugin manager stripped of pytest specific details.
%package -n python3-%{pypi_name}
Summary: %summary
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%{_description}
%package_help
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -p1 -n pluggy-%{version}
%build %build
%py2_build %_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%py3_build
%install %install
%py2_install %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
%py3_install
%check %files -n python3-pluggy
%if %{with test} %defattr(-,root,root)
export PYTHONPATH=.:$PYTHONPATH
py.test testing
py.test-%{python3_version} testing
%endif
%files -n python2-%{pypi_name}
%doc README.rst
%license LICENSE %license LICENSE
%{python2_sitelib}/%{pypi_name} %_prefix/lib/python3.7/site-packages/pluggy/
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info %_prefix/lib/python3.7/site-packages/pluggy-%{version}-py3.7.egg-info/
%files -n python3-%{pypi_name} %files help
%defattr(-,root,root)
%doc README.rst %doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.6.0-6 * Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.13.1-1
- Package init - Package init