commit 73cf59e26d5fbb2dea58d6f7fc99952a255b1b18
Author: Jakub Bogusz <[email protected]>
Date:   Sun Mar 13 17:58:43 2022 +0100

    - python-pluggy.spec updated to 1.0.0 for python 3.6+

 python-pluggy.spec => python3-pluggy.spec | 82 +++++--------------------------
 1 file changed, 13 insertions(+), 69 deletions(-)
---
diff --git a/python-pluggy.spec b/python3-pluggy.spec
similarity index 54%
rename from python-pluggy.spec
rename to python3-pluggy.spec
index a118574..bbcac26 100644
--- a/python-pluggy.spec
+++ b/python3-pluggy.spec
@@ -2,35 +2,20 @@
 # Conditional build:
 %bcond_without doc     # Sphinx documentation
 %bcond_without tests   # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
 
 %define        module  pluggy
 Summary:       Plugin and hook calling mechanisms for Python
 Summary(pl.UTF-8):     Mechanizmy wtyczek dla Pythona
-Name:          python-%{module}
-# keep 0.13.x here for python2 support
-Version:       0.13.1
-Release:       2
+Name:          python3-%{module}
+Version:       1.0.0
+Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/pluggy/
 Source0:       
https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz
-# Source0-md5: 7f610e28b8b34487336b585a3dfb803d
+# Source0-md5: daa6fddfb6cd364f3c82e52098911e4b
 URL:           https://pypi.org/project/pluggy/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-BuildRequires: python-setuptools_scm
-%if %{with tests}
-BuildRequires: python-importlib_metadata >= 0.12
-BuildRequires: python-pytest >= 3.7.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.6
 BuildRequires: python3-setuptools
 BuildRequires: python3-setuptools_scm
 %if %{with tests}
@@ -38,12 +23,15 @@ BuildRequires:      python3-setuptools_scm
 BuildRequires: python3-importlib_metadata >= 0.12
 %endif
 BuildRequires: python3-pytest >= 3.7.0
+BuildRequires: python3-pytest-benchmark
 %endif
-%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires: sphinx-pdg
+BuildRequires: python3-pygments
+BuildRequires: sphinx-pdg-3
 %endif
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.6
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -55,20 +43,6 @@ details.
 Zarządca wtyczek tak jak używany przez pytest, ale pozbawiony detali
 specyficznych dla pytest.
 
-%package -n python3-%{module}
-Summary:       Plugin and hook calling mechanisms for Python
-Summary(pl.UTF-8):     Mechanizmy wtyczek dla Pythona
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-Plugin manager as used by pytest but stripped of pytest specific
-details.
-
-%description -n python3-%{module} -l pl.UTF-8
-Zarządca wtyczek tak jak używany przez pytest, ale pozbawiony detali
-specyficznych dla pytest.
-
 %package apidocs
 Summary:       API documentation for Python pluggy module
 Summary(pl.UTF-8):     Dokumentacja API modułu Pythona pluggy
@@ -84,17 +58,6 @@ Dokumentacja API modułu Pythona pluggy.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest testing
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -102,44 +65,25 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest testing
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH="$PWD/src" \
-sphinx-build -b html docs docs/_build/html
+sphinx-build-3 -b html docs docs/_build/html
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/pluggy
-%{py_sitescriptdir}/pluggy-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
+%doc CHANGELOG.rst LICENSE README.rst
 %{py3_sitescriptdir}/pluggy
 %{py3_sitescriptdir}/pluggy-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pluggy.git/commitdiff/73cf59e26d5fbb2dea58d6f7fc99952a255b1b18

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to