1
0
forked from pool/python-pywbem

8 Commits

Author SHA256 Message Date
95242e58ec Accepting request 1322559 from systemsmanagement:wbem
- Add patch support-pytest-9.patch:
  * Support pytest 9 changes. (forwarded request 1321872 from StevenK)

OBS-URL: https://build.opensuse.org/request/show/1322559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=26
2025-12-12 20:40:44 +00:00
68f5c9da78 - Add patch support-pytest-9.patch:
* Support pytest 9 changes.

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/python-pywbem?expand=0&rev=129
2025-12-12 08:54:36 +00:00
64438d83db Accepting request 1321803 from systemsmanagement:wbem
OBS-URL: https://build.opensuse.org/request/show/1321803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=25
2025-12-11 17:31:44 +00:00
6a7ce587ea - Update to 1.8.1
* Removed setup.py and therefore the possibility to run setup.py
    as a command
  * Removed the support for building, installing and testing a cythonized
    distribution of pywbem, because of the transition from setup.py.
  * Removed support for Python 2.7, 3.6, and 3.7
  * Fixed safety issues
  * Added support for Python 3.13.

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/python-pywbem?expand=0&rev=128
2025-12-09 15:01:30 +00:00
fe2965449c Accepting request 1311397 from systemsmanagement:wbem
OBS-URL: https://build.opensuse.org/request/show/1311397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=24
2025-10-15 10:45:00 +00:00
Klaus Kämpf
f6181e188d - Update to 1.7.4
* Fixed testing of installed version of pywbem
  * Added Python 3.13
  * Fixed safety issues & dependencies
  * Cython support for Python 3.13
- Drop support-new-testfixtures.patch, fixed upstream
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/python-pywbem?expand=0&rev=127
2025-10-14 16:42:57 +00:00
7aaa459f76 Accepting request 1204076 from systemsmanagement:wbem
OBS-URL: https://build.opensuse.org/request/show/1204076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=23
2024-09-29 16:09:19 +00:00
63f850daa9 - Add patch support-new-testfixtures.patch:
* Support testfixtures >= 8.3.0.

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/python-pywbem?expand=0&rev=126
2024-09-27 07:52:35 +00:00
5 changed files with 122 additions and 33 deletions

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Wed Dec 10 00:50:41 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-pytest-9.patch:
* Support pytest 9 changes.
-------------------------------------------------------------------
Thu Nov 27 10:02:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 1.8.1
* Removed setup.py and therefore the possibility to run setup.py
as a command
* Removed the support for building, installing and testing a cythonized
distribution of pywbem, because of the transition from setup.py.
* Removed support for Python 2.7, 3.6, and 3.7
* Fixed safety issues
* Added support for Python 3.13.
-------------------------------------------------------------------
Tue Sep 30 08:12:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 1.7.4
* Fixed testing of installed version of pywbem
* Added Python 3.13
* Fixed safety issues & dependencies
* Cython support for Python 3.13
- Drop support-new-testfixtures.patch, fixed upstream
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Thu Sep 26 06:02:23 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-new-testfixtures.patch:
* Support testfixtures >= 8.3.0.
-------------------------------------------------------------------
Mon May 13 03:49:48 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -16,53 +16,57 @@
#
# cythonized pywbem produces yacc parser errors
%bcond_with cythonize
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-pywbem
Version: 1.7.2
Version: 1.8.1
Release: 0
Summary: Python module for making CIM operation calls using the WBEM protocol
License: LGPL-2.1-or-later
Group: System/Management
URL: https://pywbem.github.io/
Source0: https://github.com/pywbem/pywbem/archive/%{version}.tar.gz#/pywbem-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 38.4.1}
BuildRequires: %{python_module wheel}
%if %{with cythonize}
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
%endif
Source0: https://files.pythonhosted.org/packages/source/p/pywbem/pywbem-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#pywbem/pywbem#3350
Patch0: support-pytest-9.patch
BuildRequires: %{python_module FormEncode >= 2.0.0}
BuildRequires: %{python_module PyYAML > 5.3.1}
BuildRequires: %{python_module certifi >= 2019.11.28}
BuildRequires: %{python_module httpretty}
BuildRequires: %{python_module PyYAML >= 6.0.2}
BuildRequires: %{python_module certifi >= 2024.07.04}
BuildRequires: %{python_module idna >= 3.7}
BuildRequires: %{python_module lxml >= 4.6.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module ply >= 3.10}
BuildRequires: %{python_module pytest >= 6.2.5}
BuildRequires: %{python_module pytest >= 7.0.0}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests >= 2.25.0}
BuildRequires: %{python_module requests >= 2.32.4}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module six >= 1.16.0}
BuildRequires: %{python_module setuptools >= 70.0.0}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module testfixtures}
BuildRequires: %{python_module urllib3 >= 1.26.5}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module yamlloader >= 0.5.5}
BuildRequires: fdupes
BuildRequires: libxml2-tools
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 5.3.1
Requires: python-certifi >= 2019.11.28
Requires: python-PyYAML >= 6.0.2
Requires: python-certifi >= 2024.07.04
Requires: python-idna >= 3.7
Requires: python-ply >= 3.10
Requires: python-requests >= 2.25.0
Requires: python-six >= 1.16.0
Requires: python-urllib3 >= 1.26.5
Requires: python-requests >= 2.32.4
Requires: python-urllib3 >= 2.5.0
Requires: python-yamlloader >= 0.5.5
Recommends: python-pywebmtools
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-pywebmtools
%if ! %{with cythonize}
BuildArch: noarch
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -73,7 +77,7 @@ protocol to query and update managed objects.
%autosetup -p1 -n pywbem-%{version}
%build
%pyproject_wheel %{?_with_cythonize:--config-settings "--build-option=--cythonized" .}
%pyproject_wheel
%install
%pyproject_install
@@ -82,11 +86,7 @@ rm %{buildroot}%{_bindir}/*.bat
%python_clone -a %{buildroot}%{_bindir}/mof_compiler
%check
%if %{with cythonize}
%pytest_arch -k "not (skipnothingbydefault ${$python_donttest})" tests/unittest tests/functiontest
%else
%pytest -k "not (skipnothingbydefault ${$python_donttest})" tests/unittest tests/functiontest
%endif
%post
%python_install_alternative mof_compiler
@@ -94,6 +94,9 @@ rm %{buildroot}%{_bindir}/*.bat
%postun
%python_uninstall_alternative mof_compiler
%pre
%python_libalternatives_reset_alternative mof_compiler
%files %{python_files}
%doc README.md
%license LICENSE.txt

Binary file not shown.

3
pywbem-1.8.1.tar.gz Normal file
View File

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

51
support-pytest-9.patch Normal file
View File

@@ -0,0 +1,51 @@
From 757a4903276169088fa0010fe03c823b94ecc30a Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Wed, 26 Nov 2025 15:21:46 +1100
Subject: [PATCH] Update pytest_collect_file hook
pytest_collect_file from pytest 7 on has deprecated the py.path
arguments and replaced them with pathlib equivalents, bump the minimum
version of pytest installed and use the new argument.
---
test-requirements.txt | 2 +-
tests/functiontest/conftest.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test-requirements.txt b/test-requirements.txt
index 088ab84da..43b013a16 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -23,7 +23,7 @@ packaging>=24.1
# Max pytest version < 8.0 because of issue with Deprecated warnings in pytest 8.0.x.
# pytest-cov 4.0.0 depends on pytest>=4.6
pytest>=4.6.0,!=6.0,<8.0; python_version <= '3.9'
-pytest>=6.2.5,<8.0; python_version >= '3.10'
+pytest>=7.0.0,<10.0; python_version >= '3.10'
testfixtures>=6.9.0
# pylint>=2.15 requires colorama>=0.4.5
colorama>=0.4.5
diff --git a/tests/functiontest/conftest.py b/tests/functiontest/conftest.py
index 79481361c..ea39cd462 100644
--- a/tests/functiontest/conftest.py
+++ b/tests/functiontest/conftest.py
@@ -205,17 +205,17 @@ def patched_makefile(self, mode='r', bufsize=-1):
return self.fd
-def pytest_collect_file(parent, path):
+def pytest_collect_file(parent, file_path):
"""
py.test hook that is called for a directory to collect its test files.
For an example very similar to what we do here, see
https://docs.pytest.org/en/latest/example/nonpython.html
"""
- if path.ext == ".yaml":
+ if file_path.suffix == ".yaml":
if hasattr(YamlFile, 'from_parent'):
# pylint: disable=no-member
- return YamlFile.from_parent(fspath=path, parent=parent)
+ return YamlFile.from_parent(path=file_path, parent=parent)
# Direct creation has been deprecated in pytest, but
# from_parent() was introduced only in pytest 6.0.0 and we
# have to pin to lower pytest versions on py27/py34/py35.