[packages/python-importlib_resources] - updated to 3.3.1 - removed obsolete no_wheel patch - build docs using python2 (python3 module in n

qboosh qboosh at pld-linux.org
Fri Feb 5 18:55:13 CET 2021


commit a6bbd449d90d9644c5fc3f6cb3d6182bfe6976c3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 5 18:55:37 2021 +0100

    - updated to 3.3.1
    - removed obsolete no_wheel patch
    - build docs using python2 (python3 module in newer version is built from separate spec)

 python-importlib_resources-no_wheel.patch | 10 ------
 python-importlib_resources.spec           | 53 +++++++++++++++++--------------
 2 files changed, 30 insertions(+), 33 deletions(-)
---
diff --git a/python-importlib_resources.spec b/python-importlib_resources.spec
index 8524384..e7b1a94 100644
--- a/python-importlib_resources.spec
+++ b/python-importlib_resources.spec
@@ -1,54 +1,62 @@
+# NOTE: for versions >= 5.0 (for python 3.6+) see python3-importlib_resources.spec
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (for Python < 3.7)
+%bcond_with	python3 # CPython 3.x module (built from python3-importlib_resources.spec)
 
 Summary:	Read resources from Python packages
 Summary(pl.UTF-8):	Odczyt zasobów z pakietów Pythona
 Name:		python-importlib_resources
-Version:	1.0.2
+# keep 3.x here for python2 support
+Version:	3.3.1
 Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/importlib-resources/
 Source0:	https://files.pythonhosted.org/packages/source/i/importlib-resources/importlib_resources-%{version}.tar.gz
-# Source0-md5:	e0a4f004b3508c17143bf969b5414d79
-Patch0:		%{name}-no_wheel.patch
+# Source0-md5:	8db307bae9ec6c3c84298d75230e8043
 URL:		https://pypi.org/project/importlib-resources/
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
-BuildRequires:	python-wheel
+BuildRequires:	python-setuptools_scm >= 3.4.1
+BuildRequires:	python-toml
 %if %{with tests}
+BuildRequires:	python-contextlib2
 BuildRequires:	python-pathlib2
+BuildRequires:	python-singledispatch
 BuildRequires:	python-typing
+BuildRequires:	python-zipp >= 0.4
 %endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
-BuildRequires:	python3-wheel
+BuildRequires:	python3-setuptools_scm >= 3.4.1
+BuildRequires:	python3-toml
 %if %{with tests}
-%if "%{py3_ver}" < "3.5"
-BuildRequires:	python3-typing
+%if "%{py3_ver}" < "3.8"
+BuildRequires:	python3-zipp >= 0.4
 %endif
 %endif
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	sphinx-pdg-3
+BuildRequires:	python-jaraco.packaging
+BuildRequires:	python-rst.linker
+BuildRequires:	sphinx-pdg-2
 %endif
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-importlib_resources is a backport of Python 3.7's standard library
-importlib.resources module for Python 2.7, and 3.4 through 3.6. Users
-of Python 3.7 and beyond should use the standard library module.
+importlib_resources is a backport of Python 3.9's standard library
+importlib.resources module for Python 2.7, and 3.6 through 3.8. Users
+of Python 3.9 and beyond should use the standard library module.
         
 The key goal of this module is to replace parts of pkg_resources with
 a solution in Python's stdlib that relies on well-defined APIs. This
@@ -57,8 +65,8 @@ and consistent semantics.
 
 %description -l pl.UTF-8
 importlib_resources to backport modułu importlib.resources z
-biblioteki standardowej Pythona 3.7, przeznaczony dla Pythona 2.7 oraz
-od 3.4 do 3.6. Użytkownicy Pythona 3.7 i nowszego powinni używać
+biblioteki standardowej Pythona 3.9, przeznaczony dla Pythona 2.7 oraz
+od 3.6 do 3.8. Użytkownicy Pythona 3.9 i nowszego powinni używać
 modułu z biblioteki standardowej.
 
 Głównym celem tego modułu jest zastąpienie części pkg_resources
@@ -70,12 +78,12 @@ dobrze zdefiniowanym API. Czyni to czytanie zasobów z pakietów
 Summary:	Read resources from Python packages
 Summary(pl.UTF-8):	Odczyt zasobów z pakietów Pythona
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
+Requires:	python3-modules >= 1:3.6
 
 %description -n python3-importlib_resources
-importlib_resources is a backport of Python 3.7's standard library
-importlib.resources module for Python 2.7, and 3.4 through 3.6. Users
-of Python 3.7 and beyond should use the standard library module.
+importlib_resources is a backport of Python 3.9's standard library
+importlib.resources module for Python 2.7, and 3.6 through 3.8. Users
+of Python 3.9 and beyond should use the standard library module.
         
 The key goal of this module is to replace parts of pkg_resources with
 a solution in Python's stdlib that relies on well-defined APIs. This
@@ -84,8 +92,8 @@ and consistent semantics.
 
 %description -n python3-importlib_resources -l pl.UTF-8
 importlib_resources to backport modułu importlib.resources z
-biblioteki standardowej Pythona 3.7, przeznaczony dla Pythona 2.7 oraz
-od 3.4 do 3.6. Użytkownicy Pythona 3.7 i nowszego powinni używać
+biblioteki standardowej Pythona 3.9, przeznaczony dla Pythona 2.7 oraz
+od 3.6 do 3.8. Użytkownicy Pythona 3.9 i nowszego powinni używać
 modułu z biblioteki standardowej.
 
 Głównym celem tego modułu jest zastąpienie części pkg_resources
@@ -106,7 +114,6 @@ Dokumentacja API modułu Pythona importlib_resources.
 
 %prep
 %setup -q -n importlib_resources-%{version}
-%patch0 -p1
 
 %build
 %if %{with python2}
@@ -126,7 +133,7 @@ Dokumentacja API modułu Pythona importlib_resources.
 %endif
 
 %if %{with doc}
-sphinx-build-3 -b html importlib_resources/docs docs/_build/html
+sphinx-build-2 -b html docs docs/_build/html
 %endif
 
 %install
diff --git a/python-importlib_resources-no_wheel.patch b/python-importlib_resources-no_wheel.patch
deleted file mode 100644
index e3d2333..0000000
--- a/python-importlib_resources-no_wheel.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- importlib_resources-1.0.2/setup.cfg.orig	2018-11-01 19:39:59.000000000 +0100
-+++ importlib_resources-1.0.2/setup.cfg	2019-10-25 05:32:25.497482338 +0200
-@@ -19,7 +19,6 @@
- python_requires = >=2.7,!=3.0,!=3.1,!=3.2,!=3.3
- setup_requires = 
- 	setuptools
--	wheel
- install_requires = 
- 	pathlib2; python_version < '3'
- 	typing; python_version < '3.5'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-importlib_resources.git/commitdiff/a6bbd449d90d9644c5fc3f6cb3d6182bfe6976c3



More information about the pld-cvs-commit mailing list