14
0

Accepting request 1156037 from devel:languages:python

- Clean up the SPEC file
- Fix build with --nocheck

OBS-URL: https://build.opensuse.org/request/show/1156037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pypuppetdb?expand=0&rev=8
This commit is contained in:
2024-03-07 17:31:52 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Mar 7 08:48:08 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Wed Mar 6 15:47:50 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Fix build with --nocheck
-------------------------------------------------------------------
Thu Apr 7 08:24:33 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pypuppetdb
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pypuppetdb
Version: 2.5.1
@@ -51,16 +50,18 @@ More information: https://github.com/nedap/pypuppetdb
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# requirements-test.txt packages oddly
rm %{buildroot}%{_prefix}/requirements_for_tests/requirements-test.txt
%check
# https://github.com/voxpupuli/pypuppetdb/issues/227
sed -i 's:import mock:from unittest import mock:' tests/test_*.py
%pytest
# requirements-test.txt packages oddly
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
%files %{python_files}
%doc README.md CHANGELOG.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pypuppetdb
%{python_sitelib}/pypuppetdb-%{version}*-info
%changelog