[packages/python3-vine] - updated to 5.0.0 for python 3.6+ as python3-vine.spec

qboosh qboosh at pld-linux.org
Sun Jan 31 15:34:03 CET 2021


commit 4c05c66c6d9d0a81ff23b1b1ef33b290c76f016e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 31 15:34:21 2021 +0100

    - updated to 5.0.0 for python 3.6+ as python3-vine.spec

 python-vine.spec => python3-vine.spec | 69 ++++-------------------------------
 1 file changed, 8 insertions(+), 61 deletions(-)
---
diff --git a/python-vine.spec b/python3-vine.spec
similarity index 60%
rename from python-vine.spec
rename to python3-vine.spec
index 60a010a..1f95a0d 100644
--- a/python-vine.spec
+++ b/python3-vine.spec
@@ -10,38 +10,27 @@
 %define		pypi_name	vine
 Summary:	Python promises
 Summary(pl.UTF-8):	Obietnice dla Pythona
-Name:		python-%{module}
-# keep 1.x here for python2 support
-Version:	1.3.0
+Name:		python3-%{module}
+Version:	5.0.0
 Release:	1
 License:	BSD
 Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/v/vine/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	5d125e0b4d759b39e03d11902dede8c9
+# Source0-md5:	2fc3270a999cdc9341ba173360d62367
 URL:		https://vine.readthedocs.io/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools >= 20.6.7
-%if %{with tests}
-BuildRequires:	python-case >= 1.3.1
-BuildRequires:	python-pytest >= 3.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools >= 20.6.7
 %if %{with tests}
 BuildRequires:	python3-case >= 1.3.1
 BuildRequires:	python3-pytest >= 3.0
 %endif
-%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	sphinx-pdg-3
 BuildRequires:	python3-sphinx_celery >= 1.1
+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)
 
@@ -51,18 +40,6 @@ Python promises.
 %description -l pl.UTF-8
 Obietnice (promise) dla Pythona.
 
-%package -n python3-%{module}
-Summary:	Python promises
-Summary(pl.UTF-8):	Obietnice dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-Python promises.
-
-%description -n python3-%{module} -l pl.UTF-8
-Obietnice (promise) dla Pythona.
-
 %package apidocs
 Summary:	API documentation for vine module
 Summary(pl.UTF-8):	Dokumentacja API modułu vine
@@ -78,17 +55,6 @@ Dokumentacja API modułu vine.
 %setup -q -n %{pypi_name}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="case.pytest" \
-%{__python} -m pytest t/unit
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -96,7 +62,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS="case.pytest" \
 %{__python3} -m pytest t/unit
 %endif
-%endif
 
 %if %{with doc}
 %{__make} -C docs html \
@@ -106,34 +71,16 @@ PYTEST_PLUGINS="case.pytest" \
 %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 Changelog LICENSE README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc Changelog LICENSE README.rst
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-vine.git/commitdiff/4c05c66c6d9d0a81ff23b1b1ef33b290c76f016e



More information about the pld-cvs-commit mailing list