From d451e26b99cd84625a4bca3ee6514affbacafa6627c3ea96d0f3eb9021eaf9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 13 May 2025 17:13:31 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-yarg revision 87e2297ccd3f696555befd0f8f5af355 --- .gitattributes | 23 +++++++++++++++ python-yarg.changes | 34 ++++++++++++++++++++++ python-yarg.spec | 68 +++++++++++++++++++++++++++++++++++++++++++ test-data-cf67924.tgz | 3 ++ yarg-0.1.10.tar.gz | 3 ++ 5 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 python-yarg.changes create mode 100644 python-yarg.spec create mode 100644 test-data-cf67924.tgz create mode 100644 yarg-0.1.10.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-yarg.changes b/python-yarg.changes new file mode 100644 index 0000000..e733c34 --- /dev/null +++ b/python-yarg.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +Mon Nov 11 14:36:47 UTC 2024 - Dirk Müller + +- update to 0.1.10: + * Python 3.12 support + * Added `decode` call on the response object for Python 3 in + :meth:`yarg.newest_packages` and + :meth:`yarg.latest_updated_packages`. + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +Tue Jun 13 09:00:47 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Oct 8 08:54:08 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Fri Mar 1 01:57:33 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.1.9 diff --git a/python-yarg.spec b/python-yarg.spec new file mode 100644 index 0000000..2d1e3a2 --- /dev/null +++ b/python-yarg.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-yarg +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-yarg +Version: 0.1.10 +Release: 0 +Summary: A PyPI client +License: MIT +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 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module requests} +# /SECTION +%python_subpackages + +%description +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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +#python_expand rm -r %{buildroot}%{$python_sitelib}/tests + +%check + +%pyunittest discover -v + +%files %{python_files} +%doc CHANGES.rst README.rst +%license LICENSE LICENSE-REQUESTS +%{python_sitelib}/yarg +%{python_sitelib}/yarg-%{version}.dist-info + +%changelog diff --git a/test-data-cf67924.tgz b/test-data-cf67924.tgz new file mode 100644 index 0000000..c69c5d4 --- /dev/null +++ b/test-data-cf67924.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6beee682504b24c5a94712ea50a414df08925d81a075340a60c582b108b9f01 +size 2298 diff --git a/yarg-0.1.10.tar.gz b/yarg-0.1.10.tar.gz new file mode 100644 index 0000000..90ede68 --- /dev/null +++ b/yarg-0.1.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fbc94af89d5ebc2d2dfe46a5006a570de549c43e78f0913ce8390a1c5848b7e +size 12869