%global srcname copr-common Name: python-copr-common Version: 1.4 Release: 1.20251205112551058542.pr4039.54.gaa5f0516d%{?dist} Summary: Python code used by Copr License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr # tito build --tgz --tag %%name-%%version-%%release Source0: python-copr-common-git-54.3dc1158.tar.gz BuildArch: noarch %if 0%{?rhel} > 10 || 0%{?fedora} > 42 BuildRequires: python3-devel %else BuildRequires: python3-devel BuildRequires: python3-setuptools %endif BuildRequires: python3-pytest BuildRequires: python3-requests BuildRequires: python3-filelock BuildRequires: python3-setproctitle %global _description\ COPR is lightweight build system. It allows you to create new project in WebUI,\ and submit new builds and COPR will create yum repository from latest builds.\ \ This package contains python code used by other Copr packages. Mostly\ useful for developers only.\ %description %_description %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %if 0%{?rhel} > 10 || 0%{?fedora} > 42 %generate_buildrequires %pyproject_buildrequires %endif %prep %setup -q -n python-copr-common-git-54.3dc1158 %build %if 0%{?rhel} > 10 || 0%{?fedora} > 42 version="%version" %pyproject_wheel %else version="%version" %py3_build %endif %install %if 0%{?rhel} > 10 || 0%{?fedora} > 42 version=%version %pyproject_install %else version=%version %py3_install %endif %check %{_bindir}/python3 -m pytest -vv tests %files -n python3-%{srcname} %license LICENSE %{python3_sitelib}/* %changelog * Fri Dec 05 2025 Packit - 1.4-1.20251205112551058542.pr4039.54.gaa5f0516d - testing-farm: install pre-release packages with Ansible (Pavel Raiskup) - test rebuilds (Pavel Raiskup) - frontend: generate build URL from a preloaded copr object (Jakub Kadlcik) - frontend: preload copr.forked_from.group and copr.forked_from.user (Jakub Kadlcik) - docker: update containers to F43 (Jakub Kadlcik) - beaker-tests: add a superficial coverage for the WebUI routes (Jakub Kadlcik) - backend: skip already migrated projects (Jakub Kadlcik) - backend: show progress of currently uploaded RPMs (Jakub Kadlcik) - backend: catch KeyboardInterrupt exception (Jakub Kadlcik) - doc: explain how to migrate projects to Pulp (Jakub Kadlcik) - build(deps): bump actions/checkout from 5 to 6 (dependabot[bot]) - backend, common: set user agent for Pulp requests to crc-pulp-client (Jakub Kadlcik) - backend: set longer timeout for Pulp file uploads (Jakub Kadlcik) - beaker-tests: custom method tests: avoid using spax (Pavel Raiskup) - beaker-tests: move testing OCI image to F43 (Pavel Raiskup) - common: send JSON data for PATCH requests (Jakub Kadlcik) - backend: ignore the "Regenerate" button for Pulp projects without manual createrepo (Jakub Kadlcik) - doc: use RTH theme again (Jakub Kadlcik) - doc: link Pulp SOP (Jakub Kadlcik) - doc: link the Fedora Infra Copr SOP (Jakub Kadlcik) - testing-farm: do not fail tests if no packages are built (Pavel Raiskup) - testing-farm: start Copr stack with playbooks (Pavel Raiskup) - frontend: preload fields for streamed responses (Pavel Raiskup) - backend: recognize Pulp format for RPM package URLs (Jakub Kadlcik) - backend: fix deleting project from pulp-redirect.txt (Jiri Kyjovsky) - frontend: migrate from pytz to zoneinfo (Peter Robinson) - backend: spec: drop requirement on pytz (Peter Robinson) - frontend, cli, python: add API endpoint for generating a new token (Jakub Kadlcik) - backend: Add Pagination for PulpClient.get_content (Jiri Kyjovsky) - build(deps): bump actions/upload-artifact from 4 to 5 (dependabot[bot]) - backend: allow non-standard ssh ports on builders (Pavel Raiskup) - backend, common: implement chunked uploads to Pulp (Jakub Kadlcik) - doc, python: fix errors and warnings when building documentation Fix #3955 - add double underscore in package_source_types.rst - handle WARNING: Duplicate explicit target name - add double backticks in copr/v3/proxies project.py and project_chroot.py - handle WARNING: 'any' reference target not found - add :orphan: to rst files that are not in any doctree - handle WARNING: document isn't included in any toctree - add sphinx.ext.todo in sphinx conf - handle ERROR: Unknown directive type 'todo' - remove from docs/client_v3/proxies.rst - fix for autodoc: failed to import class - remove try-except block and use importlib to check for theme package (Anton Petrov) - python: Make copr.v3.helpers.wait official part of API (Jiri Kyjovsky) - backend: catch 400 from timeouted Pulp uploads (Jakub Kadlcik) - backend: don't create "spawner", "terminator" and "vmm" logs (Pavel Raiskup) - remove general exception handling (Anton Petrov) - fix linting errors (Anton Petrov) - feat: continue on exceptions in prune_results (Anton Petrov) - feat: add exception handling (Anton Petrov) - doc: Document how PULP pruning works (Jiri Kyjovsky) - frontend: drop custom RedisSession in favor of flask-session (Jakub Kadlcik) - testing-farm: basic installability test (Pavel Raiskup) - frontend: fix swapped canceled and ended builds (Jiri Kyjovsky) - build(deps): bump github/codeql-action from 3 to 4 (dependabot[bot]) - frontend: gitignore test.src.rpm (Jakub Kadlcik) - doc: document we don't support high-perf s390x (Pavel Raiskup) - frontend: do not traceback for OAuthError (Pavel Raiskup) - testing-farm: skeleton for sanity tests (Pavel Raiskup) - backend: fix hitcounter auth to frontend (Jakub Kadlcik) - doc: upload the golden image howto (Pavel Raiskup) - backend, frontend: add option to migrate all projects for an owner (Jakub Kadlcik) - frontend, cli: Add wildcard support for 'Packit allowed forge projects' (Jiri Kyjovsky) - doc: add 2025-09-30 release notes (Jakub Kadlcik) - Automatic commit of package [copr-backend] release [2.10-1]. (Jakub Kadlcik) * Mon Sep 29 2025 Jakub Kadlcik 1.4-1 - Increase the user SSH builder max expiration to 3 days * Tue Sep 16 2025 Jakub Kadlcik 1.3-1 - SafeRequest to retry upon error 408 - Handle unsuccessful Pulp requests * Tue Aug 26 2025 Jakub Kadlcik 1.2-1 - Specify reason for running createrepo - Improve robustness and cooperation between backend and rpmbuild - Remove license classifier - Modernize specfile using pyproject macro * Tue Mar 25 2025 Pavel Raiskup 1.1-1 - lock the pulp-redirect.txt file * Wed Oct 02 2024 Jiri Kyjovsky 1.0-1 - Drop support for rhel7 and rhel6 * Thu Aug 01 2024 Miroslav Suchý 0.25-1 - frontend, backend, common: don't limit the storage to pulp only * Tue May 21 2024 Jakub Kadlcik 0.24-1 - Fix chroot_to_branch default * Fri Mar 15 2024 Pavel Raiskup 0.23-1 - make get_redis_connection to accept dict-like 'opts' argument * Fri Mar 01 2024 Pavel Raiskup 0.22-1 - fix misleading warning for non-copr library consumers - add `contextlib.nullcontext` function as EL8 compat - limit stdout/stderr of ssh.run_expensive() commands - use 'copr-common/' as http user agent identifier - changes needed to allow user SSH to builders * Thu Nov 23 2023 Pavel Raiskup 0.21-1 - rename GroupWorkerLimit to HashWorkerLimit - explicitly build-depend on python-six * Tue Aug 15 2023 Pavel Raiskup 0.20-1 - move chroot_to_branch from frontend to copr-common - redis authentication support added * Tue May 23 2023 Jakub Kadlcik 0.19-1 - Specfile compatibility with OpenEuler * Tue Jan 24 2023 Jakub Kadlcik 0.18-1 - Periodically dump the priority queue to a JSON file - Use SPDX license * Sat Nov 26 2022 Jakub Kadlcik 0.17-1 - move to GitHub home page - logging shouldn't affect stdout - move dispatcher and background workers to copr-common - scripts should log also timestamps etc when logging into file - move setup_script_logger to copr-common * Thu Oct 27 2022 Jakub Kadlcik - 0.16.2.dev-1 - Add background_worker.py from backend - Add get_redis_connection function - Add Dispatcher, WorkerManager, and QueueTask classes - Add WorkerLimit, PredicateWorkerLimit, and GroupWorkerLimit classes * Sun Oct 02 2022 Jakub Kadlcik - 0.16-1 - Add setup_script_logger function * Tue Jun 21 2022 Jakub Kadlcik 0.15-1 - Allow SafeRequest's timeout to be specified * Wed Feb 02 2022 Silvie Chlupova 0.14-1 - Fixing copr-common version * Wed Feb 02 2022 Silvie Chlupova 0.13.2.dev-1 - dist-git: python code for removing unused tarballs on dist-git server * Wed Nov 10 2021 Silvie Chlupova 0.13.1-1 - Fixing copr-common version * Wed Nov 10 2021 Silvie Chlupova 0.12.2.dev-1 - Always set 'requests.get()' timeout * Tue Jun 15 2021 Pavel Raiskup 0.12-1 - new action type for automatically deleting pull-request CoprDirs * Mon Nov 30 2020 Pavel Raiskup 0.11-1 - add first tests for copr-common package - repeatedly send requests to frontend until they succeed * Mon Nov 30 2020 Pavel Raiskup 0.10-1 - ship LICENSE file in PyPI tarball * Wed Nov 11 2020 Pavel Raiskup 0.9-1 - bump to non-devel version * Mon Nov 09 2020 Jakub Kadlcik 0.8.2.dev-1 - common, cli, python, rpmbuild, frontend, backend: DistGit source method - common: RHEL6 fix for ModuleStatusEnum * Tue Jun 09 2020 Pavel Raiskup 0.8-1 - non-devel version 0.8 * Tue May 05 2020 Jakub Kadlcik 0.7-1 - add ActionResult (moved from backend package) - add DefaultActionPriorityEnum - add ActionPriorityEnum - add run_tests.sh script and run pylint in it * Wed Aug 28 2019 Pavel Raiskup 0.6-1 - enhanced ModuleStatusEnum (issue#607) * Fri Jul 26 2019 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Feb 11 2019 Jakub Kadlčík 0.5-1 - Add splitFilename function * Fri Oct 19 2018 Miroslav Suchý 0.4-1 - sync common.BuildSourceEnum with helpers.BuildSourceEnum - use git_dir_archive instead of git_dir_pack - packaging: Python 2/3, RHEL/Fedora fixes * Mon Aug 06 2018 clime 0.3-1 - %%{python_sitelib} → %%{python2_sitelib} - fix git packing for python-copr, copr-common - fix reading spec file values from setup.py - rpkg deployment into COPR * Thu Mar 22 2018 Dominik Turecek 0.2-1 - [common] fix spec file * Mon Mar 19 2018 Dominik Turecek 0.1-1 - create python-copr-common package