[packages/python-bottle] - updated to 0.12.25

qboosh qboosh at pld-linux.org
Sat Oct 14 10:35:26 CEST 2023


commit 8a6dd75ea8031735d6f8dd0217c17f086305128a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 14 10:37:22 2023 +0200

    - updated to 0.12.25

 python-bottle.spec | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)
---
diff --git a/python-bottle.spec b/python-bottle.spec
index 5b50646..4a3f57b 100644
--- a/python-bottle.spec
+++ b/python-bottle.spec
@@ -1,31 +1,36 @@
-# TODO: fix tests
 #
 # Conditional build:
 %bcond_without	python2		# build python 2 module
 %bcond_without	python3		# build python 3 module
-%bcond_with	tests		# unit/functional tests [one fails on py3 as of 0.12.18, probably network is used]
+%bcond_with	tests		# unit/functional tests [probably network is used]
 #
 %define 	module	bottle
 #
 Summary:	Fast and simple WSGI-framework for small web-applications
 Summary(pl.UTF-8):	Szybki i prosty szkielet WSGI dla małych aplikacji sieciowych
 Name:		python-%{module}
-Version:	0.12.18
-Release:	5
+Version:	0.12.25
+Release:	1
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/bottle/
 Source0:	https://files.pythonhosted.org/packages/source/b/bottle/%{module}-%{version}.tar.gz
-# Source0-md5:	a00b7e9a1ab3be7c19c1235fea2ccb40
+# Source0-md5:	7d79d6131ecd524530f4e919bc60f444
 URL:		http://bottlepy.org/
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.5
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-nose
+%endif
 %endif
 %if %{with python3}
 BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-nose
+%endif
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -77,7 +82,8 @@ standardowej biblioteki Pythona.
 %py_build
 
 %if %{with tests}
-%{__python} test/testall.py
+nosetests-%{py_ver} test
+#%{__python} -m unittest discover -s test
 %endif
 %endif
 
@@ -85,7 +91,8 @@ standardowej biblioteki Pythona.
 %py3_build
 
 %if %{with tests}
-%{__python3} test/testall.py
+nosetests-%{py3_ver} test
+#%{__python3} -m unittest discover -s test
 %endif
 %endif
 
@@ -113,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst
+%doc AUTHORS LICENSE README.rst
 %attr(755,root,root) %{_bindir}/bottle-2
 %{py_sitescriptdir}/bottle.py[co]
 %{py_sitescriptdir}/bottle-%{version}-py*.egg-info
@@ -122,7 +129,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc README.rst
+%doc AUTHORS LICENSE README.rst
 %attr(755,root,root) %{_bindir}/bottle
 %attr(755,root,root) %{_bindir}/bottle-3
 %{py3_sitescriptdir}/bottle.py
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bottle.git/commitdiff/8a6dd75ea8031735d6f8dd0217c17f086305128a



More information about the pld-cvs-commit mailing list