From 840acafb280784130771eff7e469efb77b880c61dbbcefae775e0abe66cefbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 12 Jan 2026 10:08:09 +0000 Subject: [PATCH] - Update to 2.4: * There is a new API endpoint, along with CLI support, for re-generating API tokens (#3960) - full changelog at: * https://github.com/fedora-copr/copr/compare/copr-cli-2.1-1...copr-cli-2.4-1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=26 --- .gitattributes | 23 ++++++++ .gitignore | 1 + copr-cli-2.1.tar.gz | 3 ++ copr_cli-2.4.tar.gz | 3 ++ python-copr-cli.changes | 116 ++++++++++++++++++++++++++++++++++++++++ python-copr-cli.spec | 76 ++++++++++++++++++++++++++ 6 files changed, 222 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 copr-cli-2.1.tar.gz create mode 100644 copr_cli-2.4.tar.gz create mode 100644 python-copr-cli.changes create mode 100644 python-copr-cli.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/copr-cli-2.1.tar.gz b/copr-cli-2.1.tar.gz new file mode 100644 index 0000000..b433405 --- /dev/null +++ b/copr-cli-2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23c1f0665cee13d5812ba34e3975bf0c474ef98f2ac8215facf29b8921e09188 +size 64846 diff --git a/copr_cli-2.4.tar.gz b/copr_cli-2.4.tar.gz new file mode 100644 index 0000000..f4b5bfc --- /dev/null +++ b/copr_cli-2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cfbd9927e3f9a9956249dd42100fe58fa2641c324c5e8203c3d92ace3ff42e7 +size 65491 diff --git a/python-copr-cli.changes b/python-copr-cli.changes new file mode 100644 index 0000000..84aee1d --- /dev/null +++ b/python-copr-cli.changes @@ -0,0 +1,116 @@ +------------------------------------------------------------------- +Fri Jan 9 22:15:50 UTC 2026 - Marius Grossu + +- Update to 2.4: + * There is a new API endpoint, along with CLI support, for re-generating API tokens (#3960) +- full changelog at: + * https://github.com/fedora-copr/copr/compare/copr-cli-2.1-1...copr-cli-2.4-1 + +------------------------------------------------------------------- +Mon Jul 7 09:33:49 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Mon Apr 7 13:52:02 UTC 2025 - Markéta Machová + +- update to 2.1 + * python, cli: drop six dependency + * pylint: fix old import errors that appear as new + * cli: add workaround for redirect download with accept list + +------------------------------------------------------------------- +Thu Dec 12 21:00:03 UTC 2024 - Richard Rahl + +- update to 2.0: + * no upstream changelog +- remove remove-simplejson.patch, as upstream removed simplejson + +------------------------------------------------------------------- +Sat Apr 20 13:40:42 UTC 2024 - Dirk Müller + +- update to 1.111: + * no upstream changelog + +------------------------------------------------------------------- +Fri Sep 8 05:03:19 UTC 2023 - Steve Kowalik + +- Update to 1.110: + * No upstream changelog. +- Fiddle with {Build,}Requires as appropiate. +- Switch to pyproject macros. +- Refresh patch remove-simplejson.patch + +------------------------------------------------------------------- +Fri Feb 10 22:45:01 UTC 2023 - Matej Cepl + +- Add remove-simplejson.patch (gh#fedora-copr/copr#2539). + +------------------------------------------------------------------- +Fri Feb 10 10:05:34 UTC 2023 - Dirk Müller + +- update to 1.105: + * More understandable module hotfixes description + * Add options to download only built RPMs/spec files + * Use the --dirname parameter for copr-cli monitor + * Disable appstream by default + +------------------------------------------------------------------- +Wed Dec 7 15:55:47 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.104: + - move to GitHub home page + - add parameter for custom method repos + +------------------------------------------------------------------- +Mon Sep 26 23:54:56 UTC 2022 - Yogalakshmi Arunachalam + +- Update to Version 1.103: + -The previous release brought several enhancements and fixes for the stats calculation mechanism but it wasn’t quite enough. + -This release comes with some final follow-ups. We are hoping to start counting the RPM downloads shortly after. + Minor UI improvements + -In the project settings, the “Edit” button will now show only for enabled chroots + -The build detail page now shows the build timeout value + -If a build is a part of a batch, the detail page now shows a link for it + -The user detail page now shows a link for the /user/repositories/ + Bugfixes + #2294 - Show correct distribution images based on their OS family + #2293, RHBZ 2081915 - Fixed copr-frontend FTBFS for F37/Rawhide + RHBZ 2113156 - Fixed copr-keygen FTBFS for F37/Rawhide + +------------------------------------------------------------------- +Fri Apr 22 11:55:03 UTC 2022 - Matej Cepl + +- Update to 1.100 (changes for all copr packages, not only copr-cli): + - Bugfixes + - Kerberos/GSSAPI authentication for API and copr-cli + - Copr-cli re-tries connections with Copr Frontend + - Large queue improvements + - More copr-cli options for editing chroots + - Signing packages with SHA256 + - Remote refs in committish + - Removing unused tarballs + - More human-readable validation errors in APIv3 + - Basic build tagging + - Webhook rebuilds are background jobs now + - Searching by attributes + - APIv3 /monitor route + - The “Rebuild all” packages feature enhanced + - Builder VMs priority + - Query built RPM results via API + - Pull request CoprDirs are automatically deleted after inactivity + - Showing two latest Copr-related articles + - Specify copr-cli output format + - IPv6 support + - Isolation configuration per-chroot + - Submit build with excluded chroots + - EOL chroot management + - Disabling modules in buildroot + - New mock –isolation option + - EOL repository management + - Searching by build ID + +------------------------------------------------------------------- +Tue Nov 17 12:07:43 PM UTC 2020 - John Vandenberg + +- Initial spec for v1.90 diff --git a/python-copr-cli.spec b/python-copr-cli.spec new file mode 100644 index 0000000..103099c --- /dev/null +++ b/python-copr-cli.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-copr-cli +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# 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-copr-cli +Version: 2.4 +Release: 0 +Summary: Copr cli +License: GPL-2.0-or-later +URL: https://github.com/fedora-copr/copr +Source: https://files.pythonhosted.org/packages/source/c/copr-cli/copr_cli-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-Jinja2 +Requires: python-copr >= 1.116 +Requires: python-humanize +Requires: python-setuptools +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module copr >= 1.116} +BuildRequires: %{python_module humanize} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module responses} +# /SECTION +%python_subpackages + +%description +CLI tool to run copr. + +%prep +%autosetup -p1 -n copr_cli-%{version} + +sed -i '1{/#!/d}' copr_cli/package_build_order.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/copr-cli +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%pre +%python_libalternatives_reset_alternative copr-cli + +%files %{python_files} +%license LICENSE +%python_alternative %{_bindir}/copr-cli +%{python_sitelib}/copr_cli +%{python_sitelib}/copr_cli-%{version}.dist-info + +%changelog