forked from pool/python-pypuppetdb
Accepting request 1155640 from home:bmwiedemann:branches:devel:languages:python
Fix build with --nocheck OBS-URL: https://build.opensuse.org/request/show/1155640 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypuppetdb?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Thu Apr 7 08:24:33 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -51,12 +51,13 @@ More information: https://github.com/nedap/pypuppetdb
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
# requirements-test.txt packages oddly
|
||||||
|
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# https://github.com/voxpupuli/pypuppetdb/issues/227
|
# https://github.com/voxpupuli/pypuppetdb/issues/227
|
||||||
sed -i 's:import mock:from unittest import mock:' tests/test_*.py
|
sed -i 's:import mock:from unittest import mock:' tests/test_*.py
|
||||||
%pytest
|
%pytest
|
||||||
# requirements-test.txt packages oddly
|
|
||||||
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md CHANGELOG.md
|
%doc README.md CHANGELOG.md
|
||||||
|
Reference in New Issue
Block a user