public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: Use %%py3_check_import to smoke test the package
@ 2026-08-01 11:43 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-08-01 11:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-py
Branch : pr7
Commit : 4f302f3dbd479d27910d6b71962cad0fa1e6921f
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2022-02-17T09:27:06+01:00
Stats  : +2/-27 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-py/c/4f302f3dbd479d27910d6b71962cad0fa1e6921f?branch=pr7

Log:
Use %%py3_check_import to smoke test the package

---
diff --git a/python-py.spec b/python-py.spec
index 08fc3d0..d1c21d7 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -1,16 +1,3 @@
-# we have a circular (build) dependency with the (new) pytest package
-# when running the testsuite
-# the testsuite is currently not compatible with pytest 3, see
-# https://github.com/pytest-dev/py/issues/104
-%if 0%{?fedora} || 0%{?rhel} > 7
-%bcond_with tests
-%else
-%bcond_without tests
-%endif
-
-%global pytest_version_lb 2.9.0
-%global pytest_version_ub 2.10
-
 %global srcname py
 
 Name:           python-%{srcname}
@@ -23,11 +10,6 @@ URL:            http://py.readthedocs.io/
 Source:         %{pypi_source}
 BuildArch:      noarch
 
-%if %{with tests}
-# needed by the testsuite
-BuildRequires:  subversion
-%endif # with tests
-
 %description
 The py lib is a Python development support library featuring the
 following tools and modules:
@@ -44,9 +26,6 @@ Summary:        Library with cross-python path, ini-parsing, io, code, log facil
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-setuptools_scm
-%if %{with tests}
-BuildRequires:  python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
-%endif # with tests
 Requires:       python3-setuptools
 %{?python_provide:%python_provide python3-%{srcname}}
 Provides:       bundled(python3-apipkg) = 2.0
@@ -88,12 +67,7 @@ rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info
 
 
 %check
-%if %{with tests}
-# disable failing Subversion checks for now
-PYTHONPATH=%{buildroot}%{python3_sitelib} \
-py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
-%endif # with tests
-
+%py3_check_import %{srcname}
 
 %files -n python3-%{srcname}
 %doc CHANGELOG.rst
@@ -106,6 +80,7 @@ py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
 %changelog
 * Tue Feb 15 2022 Karolina Surma <ksurma@redhat.com> - 1.11.0-3
 - Remove documentation from the package
+- Remove testing that requires very old pytest, use %%py3_check_import instead
 
 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

^ 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: Use %%py3_check_import to smoke test the package Karolina Surma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox