diff --git a/pluggy-0.13.1.tar.gz b/pluggy-0.13.1.tar.gz deleted file mode 100644 index e9bfd73..0000000 Binary files a/pluggy-0.13.1.tar.gz and /dev/null differ diff --git a/python-pluggy-0.6.0.tar.gz b/python-pluggy-0.6.0.tar.gz new file mode 100644 index 0000000..30f0459 Binary files /dev/null and b/python-pluggy-0.6.0.tar.gz differ diff --git a/python-pluggy.spec b/python-pluggy.spec index 40acbb4..6f7f030 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -1,46 +1,75 @@ -Name: python-pluggy -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 +%global pypi_name pluggy +%bcond_without test -BuildRequires: python3-devel python3-setuptools python3-setuptools_scm -BuildArch: noarch +Name: python-pluggy +Version: 0.6.0 +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 -Plugin manager as used by pytest but stripped of pytest specific -details. +%{_description} -%package -n python3-pluggy -Summary: Plugin and hook calling mechanisms for Python +%package -n python2-%{pypi_name} +Summary: %summary +%{?python_provide:%python_provide python2-%{pypi_name}} -%description -n python3-pluggy -The plugin manager stripped of pytest specific details. +%description -n python2-%{pypi_name} +%{_description} + + +%package -n python3-%{pypi_name} +Summary: %summary +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{_description} -%package_help %prep -%autosetup -p1 -n pluggy-%{version} - +%autosetup -n %{pypi_name}-%{version} %build -%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' +%py2_build +%py3_build %install -%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot +%py2_install +%py3_install -%files -n python3-pluggy -%defattr(-,root,root) -%license LICENSE -%_prefix/lib/python3.7/site-packages/pluggy/ -%_prefix/lib/python3.7/site-packages/pluggy-%{version}-py3.7.egg-info/ +%check +%if %{with test} +export PYTHONPATH=.:$PYTHONPATH +py.test testing +py.test-%{python3_version} testing +%endif -%files help -%defattr(-,root,root) + +%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} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog -* Tue Feb 11 2020 huzunhao - 0.13.1-1 +* Tue Dec 3 2019 mengxian - 0.6.0-6 - Package init