From ab1b3966f669e044cd96d032d7adfc9ab805ed375c701a2c11f96aad2a848af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 10:18:44 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygerrit2?expand=0&rev=11 --- .gitattributes | 23 ++++++++ .gitignore | 1 + pygerrit2-2.0.15.tar.gz | 3 + python-pygerrit2.changes | 121 +++++++++++++++++++++++++++++++++++++++ python-pygerrit2.spec | 71 +++++++++++++++++++++++ 5 files changed, 219 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pygerrit2-2.0.15.tar.gz create mode 100644 python-pygerrit2.changes create mode 100644 python-pygerrit2.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pygerrit2-2.0.15.tar.gz b/pygerrit2-2.0.15.tar.gz new file mode 100644 index 0000000..d551dd7 --- /dev/null +++ b/pygerrit2-2.0.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a18a057ec4d2b54ebbe2ce8457068f57609aa02d2dc94225e176d0c57a44f02a +size 30652 diff --git a/python-pygerrit2.changes b/python-pygerrit2.changes new file mode 100644 index 0000000..c79a493 --- /dev/null +++ b/python-pygerrit2.changes @@ -0,0 +1,121 @@ +------------------------------------------------------------------- +Wed Jun 4 10:18:34 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Apr 7 09:15:39 UTC 2022 - pgajdos@suse.com + +- version update to 2.0.15 + 2.0.15 + ------ + * Sort the trailing README link keys alphabetically + * Replace setup dash with underscore to fix warnings + * Sort listed Pipfile {dev-}packages alphabetically + * Bump importlib-metadata from 4.2.0 to 4.4.0 + * Format livetests.py with base black version 21.5b2 + * Bump black from 21.5b1 to 21.5b2 + * Add 'six' to Pipfile dev-packages to fix livetests + * Remove earlier live-tested versions to reduce pull + * Bump importlib-metadata from 4.0.1 to 4.2.0 + * Format travis and Pip files using typical IntelliJ + * Add the newly released v3.4.0 to livetests images + * Upgrade all maintained image versions in livetests + * Align black and importlib\_metadata python\_version + * Bump black from 21.5b0 to 21.5b1 + * Bump black from 21.4b2 to 21.5b0 + * Bump pytest from 6.2.3 to 6.2.4 + * Bump black from 21.4b0 to 21.4b2 + * Upgrade to GitHub-native Dependabot + * Bump pbr from 5.5.1 to 5.6.0 + * Bump black from 20.8b1 to 21.4b0 + * Bump importlib-metadata from 4.0.0 to 4.0.1 + * Bump importlib-metadata from 3.10.1 to 4.0.0 + * Bump importlib-metadata from 3.10.0 to 3.10.1 + * Bump pytest from 6.2.2 to 6.2.3 + * Update all maintained image versions in livetests + * Bump testcontainers from 3.3.0 to 3.4.0 + * Bump importlib-metadata from 3.9.0 to 3.10.0 + * Bump importlib-metadata from 3.7.3 to 3.9.0 + * Bump pydocstyle from 5.1.1 to 6.0.0 + * Bump importlib-metadata from 3.7.2 to 3.7.3 + * Bump importlib-metadata from 3.7.0 to 3.7.2 + * Bump testcontainers from 3.2.0 to 3.3.0 + * Bump importlib-metadata from 3.4.0 to 3.7.0 + * Update 2.16 image version in livetests + * Update all image versions under livetests to latest + * Bump pytest from 6.2.1 to 6.2.2 + * Bump importlib-metadata from 3.3.0 to 3.4.0 + * Update all image versions under livetests to latest + * Bump requests from 2.25.0 to 2.25.1 + * Bump pytest from 6.2.0 to 6.2.1 + * Bump testcontainers from 3.1.0 to 3.2.0 + * Bump pytest from 6.1.2 to 6.2.0 + * Bump mock from 4.0.2 to 4.0.3 + * Bump importlib-metadata from 3.1.1 to 3.3.0 + * Bump importlib-metadata from 3.1.0 to 3.1.1 + * Set livetests to 3.3.0 after release(d) + * Set the 3.3.0-rc7 version in livetests + * Bump importlib-metadata from 3.0.0 to 3.1.0 + * Bump importlib-metadata from 2.0.0 to 3.0.0 + * Bump requests from 2.24.0 to 2.25.0 + * Set the 3.3.0-rc5 version in livetests + * Set the 3.3.0-rc4 version in livetests + * Set the 2.16.23 version in livetests + * Bump pytest from 6.1.1 to 6.1.2 + 2.0.14 + ------ + * Set the 3.3.0-rc3 version in livetests + * Allow customization of HTTP adapter + * Set the 3.3.0-rc2 version in livetests + * Add 3.3.0-rc1 to the livetests versions under test + * Bump pbr from 5.5.0 to 5.5.1 + * Bump pytest from 6.1.0 to 6.1.1 + * Update livetests to use the latest Gerrit v3.0.13 + * Bump pytest from 6.0.2 to 6.1.0 + * Bump importlib-metadata from 1.7.0 to 2.0.0 + * Bump pytest from 6.0.1 to 6.0.2 + * Bump pbr from 5.4.5 to 5.5.0 + * Bump testcontainers from 3.0.3 to 3.1.0 + * livetests: Apply latest sole black formatting diff + * Bump black from 19.10b0 to 20.8b1 + * Bump pydocstyle from 5.1.0 to 5.1.1 + * Bump pydocstyle from 5.0.2 to 5.1.0 + * Update livetests to use latest versions + * Bump pytest from 5.4.3 to 6.0.1 + * Bump importlib-metadata from 1.6.1 to 1.7.0 + +------------------------------------------------------------------- +Fri Aug 7 15:04:44 UTC 2020 - Marketa Calabkova + +- update to 2.0.13 + * Return result from review() method + * Support explicit anonymous access + * Debug log when .netrc could not be parsed + * Remove unnecessary string concatenation + +------------------------------------------------------------------- +Fri Mar 20 08:26:30 UTC 2020 - Marketa Calabkova + +- update to 2.0.10 + * Support explicit anonymous access + * Remove unnecessary string concatenation + * Explicitly install importlib_metadata for Python < 3.8.0 + * Travis: Add build for Python 3.8 + +------------------------------------------------------------------- +Thu May 23 07:50:13 UTC 2019 - pgajdos@suse.com + +- version update to 2.0.9 + * Run livetests against 2.15.11 and 2.16.6 + * Don't attempt to parse empty response content + * Raise exception for error status before attempting to parse content + * Add debug log of response content type, status code and encoding + * Add a test for PUT request with a json file + * Bump pytest from 4.2.1 to 4.3.0 + +------------------------------------------------------------------- +Tue Oct 30 15:21:19 UTC 2018 - J. Daniel Schmidt + +- Initial package created with py2pack +- Version 2.0.7 diff --git a/python-pygerrit2.spec b/python-pygerrit2.spec new file mode 100644 index 0000000..395bc64 --- /dev/null +++ b/python-pygerrit2.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-pygerrit2 +# +# Copyright (c) 2025 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/ +# + + +Name: python-pygerrit2 +Version: 2.0.15 +Release: 0 +Summary: Client library for interacting with Gerrit code review +License: MIT +Group: Development/Languages/Python +URL: https://github.com/dpursehouse/pygerrit2 +Source: https://files.pythonhosted.org/packages/source/p/pygerrit2/pygerrit2-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pbr >= 0.8.0 +Requires: python-requests >= 2.20.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pbr >= 0.8.0} +BuildRequires: %{python_module requests >= 2.20.0} +# /SECTION +%python_subpackages + +%description +Client library for interacting with Gerrit code review rest api + +Pygerrit2 provides a simple interface for clients to interact with +Gerrit code review via its rest api. + +See also: https://gerritcodereview.com/ + +%prep +%setup -q -n pygerrit2-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# https://github.com/dpursehouse/pygerrit2/issues/247 +sed -i 's:from mock:from unittest.mock:' unittests.py +%python_exec unittests.py + +%files %{python_files} +%license LICENSE +%doc AUTHORS ChangeLog README.md +%{python_sitelib}/pygerrit2 +%{python_sitelib}/pygerrit2-%{version}*-info + +%changelog