[packages/python3-jaraco.packaging] - updated to 8.2.0 (for python 3.6+) as python3-jaraco.packaging.spec

qboosh qboosh at pld-linux.org
Sun Feb 7 17:21:21 CET 2021


commit 1f7ed3007a1845eac1e571ad06cdf03967baf65f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 7 17:21:45 2021 +0100

    - updated to 8.2.0 (for python 3.6+) as python3-jaraco.packaging.spec

 ...packaging.spec => python3-jaraco.packaging.spec | 91 ++++++----------------
 1 file changed, 23 insertions(+), 68 deletions(-)
---
diff --git a/python-jaraco.packaging.spec b/python3-jaraco.packaging.spec
similarity index 56%
rename from python-jaraco.packaging.spec
rename to python3-jaraco.packaging.spec
index 4801541..4d6394b 100644
--- a/python-jaraco.packaging.spec
+++ b/python3-jaraco.packaging.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
+%bcond_with	tests	# unit tests (no tests in sources)
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -9,45 +9,37 @@
 %define		pypi_name	jaraco.packaging
 Summary:	Tools to supplement packaging Python releases
 Summary(pl.UTF-8):	Narzędzia wspierające pakietowanie wydań modułów Pythona
-Name:		python-%{pypi_name}
-Version:	6.2
-Release:	3
+Name:		python3-%{pypi_name}
+Version:	8.2.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/jaraco-packaging/
 Source0:	https://files.pythonhosted.org/packages/source/j/jaraco.packaging/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	ac36cfb217276af107bcbcb60bced1ec
+# Source0-md5:	3a587b8210aaf4ce5433bc57f570883a
 URL:		https://pypi.org/project/jaraco.packaging/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools >= 1:31.0.1
-BuildRequires:	python-setuptools_scm >= 1.15
-%if %{with tests}
-BuildRequires:	python-importlib_metadata
-BuildRequires:	python-pytest >= 3.5
-BuildRequires:	python-six >= 1.4
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools >= 1:31.0.1
-BuildRequires:	python3-setuptools_scm >= 1.15
+BuildRequires:	python3-setuptools_scm >= 3.4.1
+BuildRequires:	python3-toml
 %if %{with tests}
 %if "%{py3_ver}" < "3.8"
 BuildRequires:	python3-importlib_metadata
 %endif
+BuildRequires:	python3-jaraco.test
 BuildRequires:	python3-pytest >= 3.5
-BuildRequires:	python3-six >= 1.4
-%endif
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-black >= 0.3.7
+BuildRequires:	python3-pytest-flake8
 %endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	python3-rst.linker >= 1.9
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-jaraco
-Requires:	python-modules >= 1:2.7
+Requires:	python3-jaraco
+Requires:	python3-modules >= 1:3.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,19 +49,6 @@ A few tools to supplement packaging Python releases.
 %description -l pl.UTF-8
 Kilka narzędzi wspierających pakietowanie wydań modułów Pythona.
 
-%package -n python3-%{pypi_name}
-Summary:	Tools to supplement packaging Python releases
-Summary(pl.UTF-8):	Narzędzia wspierające pakietowanie wydań modułów Pythona
-Group:		Libraries/Python
-Requires:	python3-jaraco
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-%{pypi_name}
-A few tools to supplement packaging Python releases.
-
-%description -n python3-%{pypi_name} -l pl.UTF-8
-Kilka narzędzi wspierających pakietowanie wydań modułów Pythona.
-
 %package apidocs
 Summary:	API documentation for Python jaraco.packaging module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona jaraco.packaging
@@ -85,61 +64,37 @@ Dokumentacja API modułu Pythona jaraco.packaging.
 %setup -q -n %{pypi_name}-%{version}
 
 %build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
+%py3_build
 
-%if %{with python3}
-%py3_build %{?with_tests:test}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest 
 %endif
 
 %if %{with doc}
 # no Makefile
-cd docs
-PYTHONPATH=$(pwd)/.. \
-sphinx-build-3 -b html . _build/html
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-# packaged in python-jaraco.spec
-%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/jaraco/__init__.py*
-%endif
-
-%if %{with python3}
 %py3_install
 
-# packaged in python-jaraco.spec
+# packaged in python3-jaraco.spec
 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/jaraco/__init__.py
 %{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/jaraco/__pycache__/__init__.*
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst LICENSE README.rst
-%{py_sitescriptdir}/jaraco/packaging
-%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{pypi_name}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
 %attr(755,root,root) %{_bindir}/dependency-tree
-%attr(755,root,root) %{_bindir}/upload-package
 %{py3_sitescriptdir}/jaraco/packaging
 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-jaraco.packaging.git/commitdiff/1f7ed3007a1845eac1e571ad06cdf03967baf65f



More information about the pld-cvs-commit mailing list