]> git.pld-linux.org Git - packages/python3-outcome.git/commitdiff
- python-outcome.spec updated to 1.1.0 for python 3.6+ auto/th/python3-outcome-1.1.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 20:26:37 +0000 (21:26 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 20:26:37 +0000 (21:26 +0100)
python3-outcome.spec [moved from python-outcome.spec with 58% similarity]

similarity index 58%
rename from python-outcome.spec
rename to python3-outcome.spec
index f6bc620a307c0628505483e868e4b217065f9f7b..27500649ad003d1600ce21322d4e695f27b9cd59 100644 (file)
@@ -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
This page took 0.152599 seconds and 4 git commands to generate.