public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-httmock] epel10.2: Migrate tests to tox rhbz#2019409
Date: Sat, 10 Oct 2026 07:53:12 GMT	[thread overview]
Message-ID: <179161879298.1.8990161287598110601.rpms-python-httmock-f2e4b53fd333@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-httmock
Branch : epel10.2
Commit : f2e4b53fd333ce32e3b77710f6bc10e210fc5579
Author : Steve Traylen <steve.traylen@cern.ch>
Date   : 2022-01-28T09:03:37+00:00
Stats  : +32/-7 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-httmock/c/f2e4b53fd333ce32e3b77710f6bc10e210fc5579?branch=epel10.2

Log:
Migrate tests to tox rhbz#2019409

---
diff --git a/64.diff b/64.diff
new file mode 100644
index 0000000..7755b76
--- /dev/null
+++ b/64.diff
@@ -0,0 +1,19 @@
+diff --git a/tox.ini b/tox.ini
+new file mode 100644
+index 0000000..e781a62
+--- /dev/null
++++ b/tox.ini
+@@ -0,0 +1,13 @@
++# Tox (https://tox.readthedocs.io) is a tool for running tests
++# in multiple virtualenvs. This configuration file will run the
++# test suite on all supported Python versions. To use it,
++# "python -m pip install tox" and then run "tox" from this directory.
++
++[tox]
++envlist = py{27, 34, 35, 36, 37, 38, 39, 310, 311, py2, py3}
++
++[testenv]
++deps =
++    pytest
++    requests
++commands = {envpython} -b -m pytest -W always tests.py {posargs}

diff --git a/python-httmock.spec b/python-httmock.spec
index df9191d..bf62fa2 100644
--- a/python-httmock.spec
+++ b/python-httmock.spec
@@ -4,13 +4,16 @@
 
 Name:           python-%{pypi_name}
 Version:        1.4.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A mocking library for requests
 
 License:        ASL 2.0
 URL:            https://github.com/patrys/httmock
 Source0:        https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz
 Source1:        https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py
+# Add a tox file.
+# https://bugzilla.redhat.com/show_bug.cgi?id=2019409
+Patch0:         https://patch-diff.githubusercontent.com/raw/patrys/httmock/pull/64.diff
 BuildArch:      noarch
  
 %description
@@ -20,18 +23,18 @@ that use requests internally.
 
 %package -n     python3-%{pypi_name}
 Summary:        %{summary}
-%{?python_provide:%python_provide python3-%{pypi_name}}
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  python3dist(requests) >= 1
- 
+
+%generate_buildrequires
+%pyproject_buildrequires -t
+
 %description -n python3-%{pypi_name}
 A mocking library for requests for Python.
 You can use it to mock third-party APIs and test libraries 
 that use requests internally. 
 
 %prep
-%autosetup -n %{pypi_name}-%{version}
+%autosetup -p1 -n %{pypi_name}-%{version}
 # Remove bundled egg-info
 rm -rf %{pypi_name}.egg-info
 cp %{SOURCE1} .
@@ -43,7 +46,7 @@ cp %{SOURCE1} .
 %py3_install
 
 %check
-%{__python3} setup.py test
+%{tox}
 
 %files -n python3-%{pypi_name}
 %license LICENSE
@@ -53,6 +56,9 @@ cp %{SOURCE1} .
 %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
 
 %changelog
+* Fri Jan 28 2022 Steve Traylen <steve.traylen@cern.ch> 1.4.0-5
+- Migrate tests to tox rhbz#2019409
+
 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
 

                 reply	other threads:[~2026-10-10  7:53 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=179161879298.1.8990161287598110601.rpms-python-httmock-f2e4b53fd333@fedoraproject.org \
    --to=steve.traylen@cern.ch \
    --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