[packages/python3-outcome] - python-outcome.spec updated to 1.1.0 for python 3.6+

qboosh qboosh at pld-linux.org
Sun Mar 20 21:24:36 CET 2022


commit 77d8f197924b351d059bfac548d6d1971f145307
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 20 21:26:37 2022 +0100

    - python-outcome.spec updated to 1.1.0 for python 3.6+

 python-outcome.spec => python3-outcome.spec | 67 +++--------------------------
 1 file changed, 5 insertions(+), 62 deletions(-)
---
diff --git a/python-outcome.spec b/python3-outcome.spec
similarity index 58%
rename from python-outcome.spec
rename to python3-outcome.spec
index f6bc620..2750064 100644
--- a/python-outcome.spec
+++ b/python3-outcome.spec
@@ -2,39 +2,25 @@
 # 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
 
 Summary:	Capture the outcome of Python function calls
 Summary(pl.UTF-8):	Przechwytywanie wyników wywołań funkcji pythonowych
-Name:		python-outcome
-# keep 1.0.x here for python2 support
-Version:	1.0.1
+Name:		python3-outcome
+Version:	1.1.0
 Release:	1
 License:	MIT or Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/outcome/
 Source0:	https://files.pythonhosted.org/packages/source/o/outcome/outcome-%{version}.tar.gz
-# Source0-md5:	17e511c2bd1ee3cdd7a1aad29fe0133b
+# Source0-md5:	30184431b681fe2d5460a2344b904aba
 URL:		https://pypi.org/project/outcome/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-attrs >= 19.2.0
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
 %if %{with tests}
-BuildRequires:	python3-async_generator
 BuildRequires:	python3-attrs >= 19.2.0
 BuildRequires:	python3-pytest
 BuildRequires:	python3-pytest-asyncio
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
@@ -42,7 +28,7 @@ BuildRequires:	python3-sphinx_rtd_theme
 BuildRequires:	python3-sphinxcontrib-trio
 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)
 
@@ -52,18 +38,6 @@ Capture the outcome of Python function calls.
 %description -l pl.UTF-8
 Przechwytywanie wyników wywołań funkcji pythonowych.
 
-%package -n python3-outcome
-Summary:	Capture the outcome of Python function calls
-Summary(pl.UTF-8):	Przechwytywanie wyników wywołań funkcji pythonowych
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-outcome
-Capture the outcome of Python function calls.
-
-%description -n python3-outcome -l pl.UTF-8
-Przechwytywanie wyników wywołań funkcji pythonowych.
-
 %package apidocs
 Summary:	API documentation for Python outcome module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona outcome
@@ -79,18 +53,6 @@ Dokumentacja API modułu Pythona outcome.
 %setup -q -n outcome-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS= \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -99,7 +61,6 @@ PYTEST_PLUGINS="pytest_asyncio.plugin" \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
@@ -110,34 +71,16 @@ PYTHONPATH=$(pwd)/src \
 %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 LICENSE.MIT README.rst
-%{py_sitescriptdir}/outcome
-%{py_sitescriptdir}/outcome-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-outcome
-%defattr(644,root,root,755)
-%doc LICENSE LICENSE.MIT README.rst
 %{py3_sitescriptdir}/outcome
 %{py3_sitescriptdir}/outcome-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-outcome.git/commitdiff/77d8f197924b351d059bfac548d6d1971f145307



More information about the pld-cvs-commit mailing list