15
0

Compare commits

9 Commits

Author SHA256 Message Date
817b732c6d Accepting request 1326745 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1326745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-copr-cli?expand=0&rev=12
2026-01-13 20:26:18 +00:00
840acafb28 - 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
2026-01-12 10:08:09 +00:00
1c904406d2 Accepting request 1291004 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-copr-cli?expand=0&rev=11
2025-07-07 12:49:48 +00:00
8e4c511b6b - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=24
2025-07-07 09:34:15 +00:00
eb088c5609 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=23 2025-07-07 09:26:06 +00:00
7c7791e30d Accepting request 1267814 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-copr-cli?expand=0&rev=10
2025-04-08 15:51:58 +00:00
5e81b7edd9 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=21
2025-04-08 05:57:57 +00:00
0014ff11a1 Accepting request 1230779 from devel:languages:python
Forwarded request #1230656 from rrahl0

- update to 2.0:
    * no upstream changelog
  - remove remove-simplejson.patch, as upstream removed simplejson

OBS-URL: https://build.opensuse.org/request/show/1230779
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-copr-cli?expand=0&rev=9
2024-12-13 21:39:22 +00:00
2cb9ab7665 Accepting request 1230656 from home:rrahl0
- update to 2.0:
  * no upstream changelog
- remove remove-simplejson.patch, as upstream removed simplejson

OBS-URL: https://build.opensuse.org/request/show/1230656
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=19
2024-12-13 10:46:27 +00:00
5 changed files with 40 additions and 88 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1274a41d195adcebbe683b4c15b2565b35dcfccae0e6fed206f1d27ef701d5bc
size 66350

3
copr_cli-2.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7cfbd9927e3f9a9956249dd42100fe58fa2641c324c5e8203c3d92ace3ff42e7
size 65491

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Fri Jan 9 22:15:50 UTC 2026 - Marius Grossu <marius.grossu@suse.com>
- 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á <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Apr 7 13:52:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- 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 <rrahl0@opensuse.org>
- 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 <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-copr-cli
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -16,22 +16,21 @@
#
%bcond_without libalternatives
Name: python-copr-cli
Version: 1.111
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
# PATCH-FIX-UPSTREAM remove-simplejson.patch gh#fedora-copr/copr#2539 mcepl@suse.com
# Remove dependency on simplejson
# (not upstream, which on master switched to ujson)
Patch0: remove-simplejson.patch
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
@@ -44,15 +43,13 @@ BuildRequires: %{python_module humanize}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses}
# /SECTION
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
CLI tool to run copr.
%prep
%autosetup -p1 -n copr-cli-%{version}
%autosetup -p1 -n copr_cli-%{version}
sed -i '1{/#!/d}' copr_cli/package_build_order.py
@@ -67,11 +64,8 @@ sed -i '1{/#!/d}' copr_cli/package_build_order.py
%check
%pytest
%post
%python_install_alternative copr-cli
%postun
%python_uninstall_alternative copr-cli
%pre
%python_libalternatives_reset_alternative copr-cli
%files %{python_files}
%license LICENSE

View File

@@ -1,70 +0,0 @@
---
copr-cli.spec | 4 ----
copr_cli/util.py | 4 ++--
setup.py | 1 -
3 files changed, 2 insertions(+), 7 deletions(-)
Index: copr-cli-1.110/copr-cli.spec
===================================================================
--- copr-cli-1.110.orig/copr-cli.spec
+++ copr-cli-1.110/copr-cli.spec
@@ -32,7 +32,6 @@ BuildRequires: util-linux
%if %{with python3}
Requires: python3-copr >= %min_python_copr_version
Requires: python3-jinja2
-Requires: python3-simplejson
Requires: python3-humanize
Requires: python3-koji
@@ -46,12 +45,10 @@ BuildRequires: python3-humanize
BuildRequires: python3-pytest
BuildRequires: python3-responses
BuildRequires: python3-setuptools
-BuildRequires: python3-simplejson
BuildRequires: python3-munch
%else
Requires: python-copr >= %min_python_copr_version
Requires: python-jinja2
-Requires: python-simplejson
Requires: python-humanize
BuildRequires: pytest
@@ -62,7 +59,6 @@ BuildRequires: python-humanize
BuildRequires: python-mock
BuildRequires: python2-responses
BuildRequires: python-setuptools
-BuildRequires: python-simplejson
BuildRequires: python-munch
%endif
Index: copr-cli-1.110/copr_cli/util.py
===================================================================
--- copr-cli-1.110.orig/copr_cli/util.py
+++ copr-cli-1.110/copr_cli/util.py
@@ -1,7 +1,7 @@
# coding: utf-8
import humanize
-import simplejson
+import json
try:
@@ -66,4 +66,4 @@ def serializable(result):
def json_dumps(result):
- return simplejson.dumps(serializable(result), indent=4, sort_keys=True, for_json=True)
+ return json.dumps(serializable(result), indent=4, sort_keys=True)
Index: copr-cli-1.110/setup.py
===================================================================
--- copr-cli-1.110.orig/setup.py
+++ copr-cli-1.110/setup.py
@@ -16,7 +16,6 @@ This part is a command line interface to
requires = [
'copr',
'humanize',
- 'simplejson',
'jinja2',
'setuptools',
]