17
0

- 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
This commit is contained in:
2025-04-08 05:57:57 +00:00
committed by Git OBS Bridge
commit 5e81b7edd9
8 changed files with 284 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
copr-cli-1.111.tar.gz Normal file
View File

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

3
copr-cli-2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5783dba3336a16fd4ba8d8927e7db30d2f411085e44c1215b22be678d693a3a0
size 64600

3
copr-cli-2.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23c1f0665cee13d5812ba34e3975bf0c474ef98f2ac8215facf29b8921e09188
size 64846

103
python-copr-cli.changes Normal file
View File

@@ -0,0 +1,103 @@
-------------------------------------------------------------------
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>
- update to 1.111:
* no upstream changelog
-------------------------------------------------------------------
Fri Sep 8 05:03:19 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <mcepl@suse.com>
- Add remove-simplejson.patch (gh#fedora-copr/copr#2539).
-------------------------------------------------------------------
Fri Feb 10 10:05:34 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
- Update to Version 1.103:
-The previous release brought several enhancements and fixes for the stats calculation mechanism but it wasnt 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 <mcepl@suse.com>
- 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 <jayvdb@gmail.com>
- Initial spec for v1.90

78
python-copr-cli.spec Normal file
View File

@@ -0,0 +1,78 @@
#
# spec file for package python-copr-cli
#
# 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-copr-cli
Version: 2.1
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: fdupes
BuildRequires: python-rpm-macros
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
Requires(post): update-alternatives
Requires(postun): update-alternatives
%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
%post
%python_install_alternative copr-cli
%postun
%python_uninstall_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

70
remove-simplejson.patch Normal file
View File

@@ -0,0 +1,70 @@
---
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',
]