[packages/python-semantic_version] - made peace with django when running tests; release 2
qboosh
qboosh at pld-linux.org
Sun Sep 18 19:04:20 CEST 2022
commit 680e70bfbc05d0b3bd0f451fba400f584a93f14d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 18 19:04:40 2022 +0200
- made peace with django when running tests; release 2
python-semantic_version.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/python-semantic_version.spec b/python-semantic_version.spec
index e8fbb12..15e57be 100644
--- a/python-semantic_version.spec
+++ b/python-semantic_version.spec
@@ -11,7 +11,7 @@ Summary: A library implementing the 'SemVer' scheme
Summary(pl.UTF-8): Biblioteka implementująca schemat "SemVer"
Name: python-%{module}
Version: 2.10.0
-Release: 1
+Release: 2
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/semantic-version/
@@ -22,6 +22,7 @@ URL: https://pypi.org/project/semantic-version/
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
%if %{with nose}
+BuildRequires: python-django >= 1.11
BuildRequires: python-nose
%endif
%endif
@@ -29,6 +30,7 @@ BuildRequires: python-nose
BuildRequires: python3-modules >= 1:3.4
BuildRequires: python3-setuptools
%if %{with nose}
+BuildRequires: python3-django >= 2.2
BuildRequires: python3-nose
%endif
%endif
@@ -84,7 +86,7 @@ Dokumentacja API modułu Pythona semantic_version.
%if %{with tests}
PYTHONPATH=$(pwd) \
-nosetests-%{py_ver} tests
+nosetests-%{py_ver} tests/test_*.py
%endif
%endif
@@ -93,7 +95,7 @@ nosetests-%{py_ver} tests
%if %{with tests}
PYTHONPATH=$(pwd) \
-nosetests-%{py3_ver} tests
+nosetests-%{py3_ver} tests/test_*.py
%endif
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-semantic_version.git/commitdiff/680e70bfbc05d0b3bd0f451fba400f584a93f14d
More information about the pld-cvs-commit
mailing list