public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-py] pr7: Use %%py3_check_import to smoke test the package
Date: Sat, 01 Aug 2026 11:43:46 GMT	[thread overview]
Message-ID: <178558462694.1.977631036778810474.rpms-python-py-4f302f3dbd47@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-01 11:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178558462694.1.977631036778810474.rpms-python-py-4f302f3dbd47@fedoraproject.org \
    --to=ksurma@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox