Sync from SUSE:SLFO:Main python-yarg revision 87e2297ccd3f696555befd0f8f5af355

This commit is contained in:
2025-05-13 17:13:31 +02:00
commit d451e26b99
5 changed files with 131 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

34
python-yarg.changes Normal file
View File

@@ -0,0 +1,34 @@
-------------------------------------------------------------------
Mon Nov 11 14:36:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <code@bnavigator.de>
- Fix python312 tests by replacing long deprecated assertEquals
- Build PEP517 style
-------------------------------------------------------------------
Tue Jan 30 15:10:26 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Fix (C) line in spec file
-------------------------------------------------------------------
Tue Jun 13 09:00:47 UTC 2023 - ecsos <ecsos@opensuse.org>
- 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 <jayvdb@gmail.com>
- Initial spec for v0.1.9

68
python-yarg.spec Normal file
View File

@@ -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

BIN
test-data-cf67924.tgz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
yarg-0.1.10.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.