From 0a8566d76f001a40833e05c8a1a4b2873a28b1fb Mon Sep 17 00:00:00 2001 From: dirkmueller <> Date: Feb 13 2024 21:49:42 +0000 Subject: Update python-yarg to version 0.1.9 / rev 5 via SR 1146241 https://build.opensuse.org/request/show/1146241 by user dirkmueller + anag+factory --- diff --git a/.files b/.files index bfab532..51af049 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index 5586c8b..cadeccf 100644 --- a/.rev +++ b/.rev @@ -32,4 +32,12 @@ 1142816 + + ba2c3927a01abf03295298480ffb5107 + 0.1.9 + + anag+factory + + 1146241 + diff --git a/python-yarg.changes b/python-yarg.changes index 8b05aed..dd20d87 100644 --- a/python-yarg.changes +++ b/python-yarg.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 9 20:59:06 UTC 2024 - Ben Greiner + +- Fix python312 tests by replacing long deprecated assertEquals +- Build PEP517 style + +------------------------------------------------------------------- Tue Jan 30 15:10:26 UTC 2024 - Antonio Larrosa - Fix (C) line in spec file diff --git a/python-yarg.spec b/python-yarg.spec index 509ad17..b35d44a 100644 --- a/python-yarg.spec +++ b/python-yarg.spec @@ -26,7 +26,9 @@ Group: Development/Languages/Python URL: https://yarg.readthedocs.org/ Source: https://files.pythonhosted.org/packages/source/y/yarg/yarg-%{version}.tar.gz Source1: test-data-cf67924.tgz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-requests @@ -42,23 +44,25 @@ A PyPI client. %prep %setup -q -n yarg-%{version} tar -xzf %{SOURCE1} +# https://github.com/kura/yarg/issues/8 +sed -i -e 's/assertEquals/assertEqual/' -e 's/from mock/from unittest.mock/' tests/test_*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand rm -r %{buildroot}%{$python_sitelib}/tests %check -# https://github.com/kura/yarg/issues/8 -sed -i 's:from mock:from unittest.mock:' tests/test_*.py + %pyunittest discover -v %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE LICENSE-REQUESTS -%{python_sitelib}/* +%{python_sitelib}/yarg +%{python_sitelib}/yarg-%{version}.dist-info %changelog