[packages/python3-wrapt] Up to 1.17.1

arekm arekm at pld-linux.org
Mon Mar 17 18:44:13 CET 2025


commit 6278601022bb07fb455b0326993cf30f33503431
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 17 18:20:22 2025 +0100

    Up to 1.17.1

 python-wrapt.spec  | 146 -----------------------------------------------------
 python3-wrapt.spec |  75 +++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 146 deletions(-)
---
diff --git a/python-wrapt.spec b/python-wrapt.spec
deleted file mode 100644
index a04e7b6..0000000
--- a/python-wrapt.spec
+++ /dev/null
@@ -1,146 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	wrapt
-Summary:	Python 2 module for decorators, wrappers and monkey patching
-Summary(pl.UTF-8):	Moduł Pythona 2 do dekorowania, opakowywania i łatania w locie
-Name:		python-%{module}
-# keep version compatible with python3-astroid.spec (2.9.x wants <1.14.0)
-Version:	1.13.3
-Release:	5
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/wrapt/
-Source0:	https://files.pythonhosted.org/packages/source/w/wrapt/%{module}-%{version}.tar.gz
-# Source0-md5:	50efce974cc8a0d39fd274d74eb0fd1e
-URL:		https://github.com/GrahamDumpleton/wrapt
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools >= 1:38.3.0
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.5
-BuildRequires:	python3-setuptools >= 1:38.3.0
-%endif
-Requires:	python-modules >= 1:2.7
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The aim of the wrapt module is to provide a transparent object proxy
-for Python, which can be used as the basis for the construction of
-function wrappers and decorator functions.
-
-The wrapt module focuses very much on correctness. It therefore goes
-way beyond existing mechanisms such as functools.wraps() to ensure
-that decorators preserve introspectability, signatures, type checking
-abilities etc. The decorators that can be constructed using this
-module will work in far more scenarios than typical decorators and
-provide more predictable and consistent behaviour.
-
-%description -l pl.UTF-8
-Celem modułu wrapt jest dostarczenie przezroczystego proxy obiektów
-dla Pythona. Można go używać jako podstawy do konstruowania opakowań
-funkcji lub funkcji dekoratorów.
-
-Moduł wrapt skupia się bardzo na poprawności - wykracza więc poza
-istniejące mechanizmy, tkaie jak functools.wraps(), aby zapewnić, że
-dekoratory zachowują introspekcje, sygnatury, możliwość sprawdzania
-typów itp. Dekoratory tworzone przy użyciu tego modułu będą działać w
-większej liczbie scenariuszy niż typowe dekoratory oraz zapewniać
-bardziej przewidywalne i spójne zachowanie.
-
-%package -n python3-%{module}
-Summary:	Python 3 module for decorators, wrappers and monkey patching
-Summary(pl.UTF-8):	Moduł Pythona 3 do dekorowania, opakowywania i łatania w locie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-The aim of the wrapt module is to provide a transparent object proxy
-for Python, which can be used as the basis for the construction of
-function wrappers and decorator functions.
-
-The wrapt module focuses very much on correctness. It therefore goes
-way beyond existing mechanisms such as functools.wraps() to ensure
-that decorators preserve introspectability, signatures, type checking
-abilities etc. The decorators that can be constructed using this
-module will work in far more scenarios than typical decorators and
-provide more predictable and consistent behaviour.
-
-%description -n python3-%{module} -l pl.UTF-8
-Celem modułu wrapt jest dostarczenie przezroczystego proxy obiektów
-dla Pythona. Można go używać jako podstawy do konstruowania opakowań
-funkcji lub funkcji dekoratorów.
-
-Moduł wrapt skupia się bardzo na poprawności - wykracza więc poza
-istniejące mechanizmy, tkaie jak functools.wraps(), aby zapewnić, że
-dekoratory zachowują introspekcje, sygnatury, możliwość sprawdzania
-typów itp. Dekoratory tworzone przy użyciu tego modułu będą działać w
-większej liczbie scenariuszy niż typowe dekoratory oraz zapewniać
-bardziej przewidywalne i spójne zachowanie.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
-%{__python3} -m pytest tests
-%endif
-%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
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/*.so
-%{py_sitedir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
-%{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python3-wrapt.spec b/python3-wrapt.spec
new file mode 100644
index 0000000..6558e0f
--- /dev/null
+++ b/python3-wrapt.spec
@@ -0,0 +1,75 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define 	module	wrapt
+Summary:	Python module for decorators, wrappers and monkey patching
+Summary(pl.UTF-8):	Moduł Pythona do dekorowania, opakowywania i łatania w locie
+Name:		python3-%{module}
+Version:	1.17.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/wrapt/
+Source0:	https://files.pythonhosted.org/packages/source/w/wrapt/%{module}-%{version}.tar.gz
+# Source0-md5:	31bef7bc31a8ba7da00cb33a70aca7a1
+URL:		https://github.com/GrahamDumpleton/wrapt
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	python3-setuptools >= 1:38.3.0
+Requires:	python3-modules >= 1:3.8
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The aim of the wrapt module is to provide a transparent object proxy
+for Python, which can be used as the basis for the construction of
+function wrappers and decorator functions.
+
+The wrapt module focuses very much on correctness. It therefore goes
+way beyond existing mechanisms such as functools.wraps() to ensure
+that decorators preserve introspectability, signatures, type checking
+abilities etc. The decorators that can be constructed using this
+module will work in far more scenarios than typical decorators and
+provide more predictable and consistent behaviour.
+
+%description -l pl.UTF-8
+Celem modułu wrapt jest dostarczenie przezroczystego proxy obiektów
+dla Pythona. Można go używać jako podstawy do konstruowania opakowań
+funkcji lub funkcji dekoratorów.
+
+Moduł wrapt skupia się bardzo na poprawności - wykracza więc poza
+istniejące mechanizmy, tkaie jak functools.wraps(), aby zapewnić, że
+dekoratory zachowują introspekcje, sygnatury, możliwość sprawdzania
+typów itp. Dekoratory tworzone przy użyciu tego modułu będą działać w
+większej liczbie scenariuszy niż typowe dekoratory oraz zapewniać
+bardziej przewidywalne i spójne zachowanie.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%dir %{py3_sitedir}/%{module}
+%{py3_sitedir}/%{module}/*.py
+%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
+%{py3_sitedir}/%{module}/__pycache__
+%{py3_sitedir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-wrapt.git/commitdiff/6278601022bb07fb455b0326993cf30f33503431



More information about the pld-cvs-commit mailing list