Accepting request 1242952 from devel:languages:python:pytest

- Update to 1.8.1:
  * Small refactor to make error messages a bit clearer
  * Fixed tests which were installing from PyPI rather than local
  * Removed usage of deprecated pytest.yield_fixture.
  * Removed usage of distutils, where possible.
- Refreshed python-pytest-profiling-no-six.patch
- Drop patch fix-type-arguments.patch, now included.

OBS-URL: https://build.opensuse.org/request/show/1242952
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-profiling?expand=0&rev=7
This commit is contained in:
2025-02-04 17:13:06 +00:00
committed by Git OBS Bridge
6 changed files with 27 additions and 32 deletions

View File

@@ -1,13 +0,0 @@
Index: pytest-profiling-1.8.0/pytest_profiling.py
===================================================================
--- pytest-profiling-1.8.0.orig/pytest_profiling.py
+++ pytest-profiling-1.8.0/pytest_profiling.py
@@ -142,7 +142,7 @@ def pytest_addoption(parser):
help="generate profiling graph (using gprof2dot and dot -Tsvg)")
group.addoption("--pstats-dir", nargs=1,
help="configure the dump directory of profile data files")
- group.addoption("--element-number", action="store", type="int", default=20,
+ group.addoption("--element-number", action="store", type=int, default=20,
help="defines how many elements will display in a result")
group.addoption("--strip-dirs", action="store_true",
help="configure to show/hide the leading path information from file names")

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c3a7ee88bcd9a3723c01b4e885ea9da6d070d62110d800e51ddd7f35ea82cf7
size 33491

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f171fa69d5c82fa9aab76d66abd5f59da69135c37d6ae5bf7557f1b154cb08d
size 33135

View File

@@ -1,7 +1,7 @@
Index: pytest-profiling-1.8.0/pytest_profiling.py
Index: pytest-profiling-1.8.1/pytest_profiling.py
===================================================================
--- pytest-profiling-1.8.0.orig/pytest_profiling.py
+++ pytest-profiling-1.8.0/pytest_profiling.py
--- pytest-profiling-1.8.1.orig/pytest_profiling.py
+++ pytest-profiling-1.8.1/pytest_profiling.py
@@ -10,7 +10,6 @@ import errno
from hashlib import md5
import subprocess
@@ -19,10 +19,10 @@ Index: pytest-profiling-1.8.0/pytest_profiling.py
for c in s))
Index: pytest-profiling-1.8.0/tests/unit/test_profile.py
Index: pytest-profiling-1.8.1/tests/unit/test_profile.py
===================================================================
--- pytest-profiling-1.8.0.orig/tests/unit/test_profile.py
+++ pytest-profiling-1.8.0/tests/unit/test_profile.py
--- pytest-profiling-1.8.1.orig/tests/unit/test_profile.py
+++ pytest-profiling-1.8.1/tests/unit/test_profile.py
@@ -3,11 +3,11 @@
# coverage, so force it to be reloaded within this test unit under coverage
@@ -37,12 +37,12 @@ Index: pytest-profiling-1.8.0/tests/unit/test_profile.py
import os
import subprocess
Index: pytest-profiling-1.8.0/setup.py
Index: pytest-profiling-1.8.1/setup.py
===================================================================
--- pytest-profiling-1.8.0.orig/setup.py
+++ pytest-profiling-1.8.0/setup.py
@@ -17,8 +17,7 @@ classifiers = [
'Programming Language :: Python :: 3.7',
--- pytest-profiling-1.8.1.orig/setup.py
+++ pytest-profiling-1.8.1/setup.py
@@ -24,8 +24,7 @@ classifiers = [
'Programming Language :: Python :: 3.12',
]
-install_requires = ['six',

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Feb 4 04:06:12 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.8.1:
* Small refactor to make error messages a bit clearer
* Fixed tests which were installing from PyPI rather than local
* Removed usage of deprecated pytest.yield_fixture.
* Removed usage of distutils, where possible.
- Refreshed python-pytest-profiling-no-six.patch
- Drop patch fix-type-arguments.patch, now included.
-------------------------------------------------------------------
Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-profiling
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-pytest-profiling
Version: 1.8.0
Version: 1.8.1
Release: 0
Summary: Profiling plugin for pytest
License: MIT
@@ -25,10 +25,7 @@ URL: https://github.com/man-group/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-profiling/pytest-profiling-%{version}.tar.gz
# https://github.com/man-group/pytest-plugins/issues/209
Patch0: python-pytest-profiling-no-six.patch
# PATCH-FIX-UPSTREAM gh#man-group/pytest-plugins#247
Patch1: fix-type-arguments.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module q}
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}