From 08fcca9c215b23aca4953b408aa4db2f939bee345017144684d4605f1bc56720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 5 Jun 2025 09:30:36 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-labels?expand=0&rev=9 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + labels-20.1.0.tar.gz | 3 ++ python-labels.changes | 26 ++++++++++++++ python-labels.spec | 80 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 labels-20.1.0.tar.gz create mode 100644 python-labels.changes create mode 100644 python-labels.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/labels-20.1.0.tar.gz b/labels-20.1.0.tar.gz new file mode 100644 index 0000000..699b5aa --- /dev/null +++ b/labels-20.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e8e68e09a3331a5f70921df2046a75459e4aab506abd2c65d4465054cea7771 +size 16106 diff --git a/python-labels.changes b/python-labels.changes new file mode 100644 index 0000000..1060bb9 --- /dev/null +++ b/python-labels.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Thu Jun 5 09:25:03 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Fri May 30 09:38:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Sep 29 14:41:43 UTC 2022 - Yogalakshmi Arunachalam + +- Update to Version 20.1.0 + * This labels release adds support for paginated responses from the GitHub API on requesting a repository's labels. + This enables users to manage labels for projects that use more than 30 labels. rocket + +------------------------------------------------------------------- +Mon May 25 06:50:32 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Sun Dec 8 02:17:56 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.0 diff --git a/python-labels.spec b/python-labels.spec new file mode 100644 index 0000000..9ee3149 --- /dev/null +++ b/python-labels.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-labels +# +# 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/ +# + + +%bcond_without libalternatives +Name: python-labels +Version: 20.1.0 +Release: 0 +Summary: CLI app for managing GitHub labels +License: MIT +Group: Development/Languages/Python +URL: https://github.com/hackebrot/labels +Source: https://github.com/hackebrot/labels/archive/%{version}.tar.gz#/labels-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-attrs +Requires: python-click +Requires: python-pytoml +Requires: python-requests +BuildRequires: alts +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module click} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytoml} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module responses} +# /SECTION +%python_subpackages + +%description +CLI app for managing GitHub labels. + +%prep +%setup -q -n labels-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/labels +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +%pytest + +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative labels + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/labels +%{python_sitelib}/labels +%{python_sitelib}/labels-%{version}*-info + +%changelog