public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: Enable tests for Fedora<26.
@ 2026-08-01 11:43 Thomas Moschny
0 siblings, 0 replies; only message in thread
From: Thomas Moschny @ 2026-08-01 11:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-py
Branch : pr7
Commit : 9c251374eeaec8b7bbf1f9a1fbd59ee96e3916e2
Author : Thomas Moschny <thm@fedoraproject.org>
Date : 2016-12-30T23:05:14+01:00
Stats : +13/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-py/c/9c251374eeaec8b7bbf1f9a1fbd59ee96e3916e2?branch=pr7
Log:
Enable tests for Fedora<26.
---
diff --git a/python-py.spec b/python-py.spec
index 48b1753..2b6d934 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -1,15 +1,20 @@
# we have a circular (build) dependency with the (new) pytest package
# when generating the docs or running the testsuite
%global with_docs 1
-%global run_check 0
+# the testsuite is curremtly not compatible with pytest 3, see
+# https://github.com/pytest-dev/py/issues/104
+%if 0%{fedora} < 26
+%global run_check 1
+%endif
-%global pytest_version 2.5
+%global pytest_version_lb 2.9.0
+%global pytest_version_ub 2.10
%global srcname py
Name: python-%{srcname}
Version: 1.4.32
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
License: MIT and Public Domain
# main package: MIT, except: doc/style.css: Public Domain
@@ -25,8 +30,8 @@ BuildRequires: python3-setuptools
BuildRequires: python-sphinx
%endif # with_docs
%if 0%{?run_check}
-BuildRequires: python2-pytest >= %{pytest_version}
-BuildRequires: python3-pytest >= %{pytest_version}
+BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub}
+BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
%endif # run_check
# needed by the testsuite
BuildRequires: subversion
@@ -158,6 +163,9 @@ popd
%changelog
+* Fri Dec 30 2016 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.32-2
+- Enable tests for Fedora<26.
+
* Thu Dec 29 2016 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.32-1
- Update to 1.4.32.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 11:43 [rpms/python-py] pr7: Enable tests for Fedora<26 Thomas Moschny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox