Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-copr for openSUSE:Factory checked in at 2023-06-20 16:48:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-copr (Old) and /work/SRC/openSUSE:Factory/.python-copr.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-copr" Tue Jun 20 16:48:54 2023 rev:7 rq:1093861 version:1.129 Changes: -------- --- /work/SRC/openSUSE:Factory/python-copr/python-copr.changes 2022-12-09 13:19:33.439567829 +0100 +++ /work/SRC/openSUSE:Factory/.python-copr.new.15902/python-copr.changes 2023-06-20 16:49:03.447613509 +0200 @@ -1,0 +2,8 @@ +Tue Jun 20 05:56:05 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 1.129: + * No upstream changelog. +- Fiddle with {Build,}Requires as appropiate. +- Move to pyproject macros. + +------------------------------------------------------------------- Old: ---- copr-1.124.tar.gz New: ---- copr-1.129.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-copr.spec ++++++ --- /var/tmp/diff_new_pack.ZEgWn6/_old 2023-06-20 16:49:04.479619711 +0200 +++ /var/tmp/diff_new_pack.ZEgWn6/_new 2023-06-20 16:49:04.483619735 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-copr # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,19 @@ Name: python-copr -Version: 1.124 +Version: 1.129 Release: 0 Summary: Python client for copr service License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr Source: https://files.pythonhosted.org/packages/source/c/copr/copr-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-marshmallow +Requires: python-filelock +Requires: python-future Requires: python-munch Requires: python-requests Requires: python-requests-toolbelt @@ -34,12 +37,12 @@ # SECTION test requirements BuildRequires: %{python_module filelock} BuildRequires: %{python_module future} -BuildRequires: %{python_module marshmallow} BuildRequires: %{python_module munch} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests-gssapi} BuildRequires: %{python_module requests-toolbelt} BuildRequires: %{python_module requests} +BuildRequires: %{python_module six} # /SECTION %python_subpackages @@ -50,10 +53,10 @@ %setup -q -n copr-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check ++++++ copr-1.124.tar.gz -> copr-1.129.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/Makefile new/copr-1.129/Makefile --- old/copr-1.124/Makefile 2022-11-13 21:33:19.000000000 +0100 +++ new/copr-1.129/Makefile 2023-05-14 16:31:17.000000000 +0200 @@ -12,3 +12,8 @@ lint: vcs-diff-lint + +unittest-in-container: + podman build -f ../build_aux/Containerfile.unittest . -t copr_test_image + podman run --rm -it copr_test_image /bin/sh -c "./run_tests.sh -vv -s" + podman image rm copr_test_image diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/PKG-INFO new/copr-1.129/PKG-INFO --- old/copr-1.124/PKG-INFO 2022-11-29 14:15:43.764444600 +0100 +++ new/copr-1.129/PKG-INFO 2023-05-25 13:45:37.949153200 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: copr -Version: 1.124 +Version: 1.129 Summary: Python client for copr service. Home-page: https://github.com/fedora-copr/copr Author: Valentin Gologuzov Author-email: vgolo...@redhat.com License: GPLv2+ -Platform: UNKNOWN Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 @@ -22,4 +21,3 @@ is used to allow packagers to create third party repositories. This part is a python client to the copr service. - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr/README.rst new/copr-1.129/copr/README.rst --- old/copr-1.124/copr/README.rst 2022-02-17 10:42:30.000000000 +0100 +++ new/copr-1.129/copr/README.rst 2023-04-16 14:31:29.000000000 +0200 @@ -11,9 +11,9 @@ About this project: ------------------- -- Website: https://pagure.io/copr/copr +- Website: https://github.com/fedora-copr/copr - Python-copr documentation: http://python-copr.readthedocs.org -- Git: https://pagure.io/copr/copr.git +- Git: https://github.com/fedora-copr/copr.git - Test instance: http://copr.stg.fedoraproject.org/ Usage: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr/v3/proxies/build.py new/copr-1.129/copr/v3/proxies/build.py --- old/copr-1.124/copr/v3/proxies/build.py 2022-11-17 20:15:24.000000000 +0100 +++ new/copr-1.129/copr/v3/proxies/build.py 2023-05-14 16:31:17.000000000 +0200 @@ -149,6 +149,37 @@ } return self._create(endpoint, data, files=files, buildopts=buildopts) + def check_before_build(self, ownername, projectname, + project_dirname=None, buildopts=None): + """ + Check if a build can be submitted (if the project exists, you have + permissions, the chroot exists, etc). This is useful before trying to + upload a large SRPM and failing to do so. + + :param str ownername: + :param str projectname: + :param str project_dirname: + :param buildopts: http://python-copr.readthedocs.io/en/latest/client_v3/build_options.html + :return: Munch + """ + endpoint = "/build/check-before-build" + data = { + "ownername": ownername, + "projectname": projectname, + "project_dirname": project_dirname, + } + + del buildopts["progress_callback"] + data.update(buildopts or {}) + + response = self.request.send( + endpoint=endpoint, + method=POST, + data=data, + auth=self.auth, + ) + return munchify(response) + def create_from_scm(self, ownername, projectname, clone_url, committish="", subdirectory="", spec="", scm_type="git", source_build_method="rpkg", buildopts=None, project_dirname=None): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr/v3/proxies/project.py new/copr-1.129/copr/v3/proxies/project.py --- old/copr-1.124/copr/v3/proxies/project.py 2022-09-14 12:45:26.000000000 +0200 +++ new/copr-1.129/copr/v3/proxies/project.py 2023-05-14 16:31:17.000000000 +0200 @@ -70,8 +70,8 @@ contact=None, additional_repos=None, unlisted_on_hp=False, enable_net=False, persistent=False, auto_prune=True, use_bootstrap_container=None, devel_mode=False, delete_after_days=None, multilib=False, module_hotfixes=False, - bootstrap=None, bootstrap_image=None, isolation=None, - fedora_review=None, appstream=True, runtime_dependencies=None, packit_forge_projects_allowed=None): + bootstrap=None, bootstrap_image=None, isolation=None, follow_fedora_branching=True, + fedora_review=None, appstream=False, runtime_dependencies=None, packit_forge_projects_allowed=None): """ Create a project @@ -91,8 +91,8 @@ argument and/or the 'bootstrap_image'. :param bool devel_mode: if createrepo should run automatically :param int delete_after_days: delete the project after the specfied period of time - :param bool module_hotfixes: make packages from this project available - on along with packages from the active module streams. + :param bool module_hotfixes: allow packages from this project to + override packages from active module streams. :param str bootstrap: Mock bootstrap feature setup. Possible values are 'default', 'on', 'off', 'image'. :param str bootstrap_image: Name of the container image to initialize @@ -100,6 +100,7 @@ This is a noop parameter and its value is ignored. :param str isolation: Mock isolation feature setup. Possible values are 'default', 'simple', 'nspawn'. + :param bool follow_fedora_branching: If newly branched chroots should be automatically enabled and populated :param bool fedora_review: Run fedora-review tool for packages in this project :param bool appstream: Disable or enable generating the appstream metadata @@ -129,6 +130,7 @@ "bootstrap": bootstrap, "bootstrap_image": bootstrap_image, "isolation": isolation, + "follow_fedora_branching": follow_fedora_branching, "devel_mode": devel_mode, "delete_after_days": delete_after_days, "multilib": multilib, @@ -154,7 +156,7 @@ contact=None, additional_repos=None, unlisted_on_hp=None, enable_net=None, auto_prune=None, use_bootstrap_container=None, devel_mode=None, delete_after_days=None, multilib=None, module_hotfixes=None, - bootstrap=None, bootstrap_image=None, isolation=None, + bootstrap=None, bootstrap_image=None, isolation=None, follow_fedora_branching=None, fedora_review=None, appstream=None, runtime_dependencies=None, packit_forge_projects_allowed=None): """ Edit a project @@ -174,12 +176,13 @@ argument and/or the 'bootstrap_image'. :param bool devel_mode: if createrepo should run automatically :param int delete_after_days: delete the project after the specfied period of time - :param bool module_hotfixes: make packages from this project available - on along with packages from the active module streams. + :param bool module_hotfixes: allow packages from this project to + override packages from active module streams. :param str bootstrap: Mock bootstrap feature setup. Possible values are 'default', 'on', 'off', 'image'. :param str isolation: Mock isolation feature setup. Possible values are 'default', 'simple', 'nspawn'. + :param bool follow_fedora_branching: If newly branched chroots should be automatically enabled and populated. :param str bootstrap_image: Name of the container image to initialize the bootstrap chroot from. This also implies 'bootstrap=image'. This is a noop parameter and its value is ignored. @@ -210,6 +213,7 @@ "auto_prune": auto_prune, "bootstrap": bootstrap, "isolation": isolation, + "follow_fedora_branching": follow_fedora_branching, "bootstrap_image": bootstrap_image, "devel_mode": devel_mode, "delete_after_days": delete_after_days, @@ -288,6 +292,29 @@ ) return munchify(response) + def can_build_in(self, who, ownername, projectname): + """ + Return `True` a user can submit builds for a ownername/projectname + + :param str who: name of the user checking their permissions + :param str ownername: owner of the project + :param str projectname: name of the project + :return Bool: `True` or raise + """ + endpoint = ("/project/permissions/can_build_in/" + "{who}/{ownername}/{projectname}/") + params = { + "who": who, + "ownername": ownername, + "projectname": projectname, + } + response = self.request.send( + endpoint=endpoint, + params=params, + auth=self.auth + ) + return munchify(response).can_build_in + def get_permissions(self, ownername, projectname): """ Get project permissions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr/v3/proxies/project_chroot.py new/copr-1.129/copr/v3/proxies/project_chroot.py --- old/copr-1.124/copr/v3/proxies/project_chroot.py 2022-04-04 10:23:00.000000000 +0200 +++ new/copr-1.129/copr/v3/proxies/project_chroot.py 2023-04-16 14:31:29.000000000 +0200 @@ -58,7 +58,9 @@ :param str chrootname: :param list additional_packages: buildroot packages for the chroot :param list additional_repos: buildroot additional additional_repos - :param list additional_modules: additional modules for the chroot + :param list additional_modules: list of modules that will be enabled or + disabled in the given chroot, + e.g. ['module1:stream', '!module2:stream']. :param str comps: file path to the comps.xml file :param bool delete_comps: if True, current comps.xml will be removed :param list with_opts: Mock --with option diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr.egg-info/PKG-INFO new/copr-1.129/copr.egg-info/PKG-INFO --- old/copr-1.124/copr.egg-info/PKG-INFO 2022-11-29 14:15:43.000000000 +0100 +++ new/copr-1.129/copr.egg-info/PKG-INFO 2023-05-25 13:45:37.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: copr -Version: 1.124 +Version: 1.129 Summary: Python client for copr service. Home-page: https://github.com/fedora-copr/copr Author: Valentin Gologuzov Author-email: vgolo...@redhat.com License: GPLv2+ -Platform: UNKNOWN Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 @@ -22,4 +21,3 @@ is used to allow packagers to create third party repositories. This part is a python client to the copr service. - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/copr.egg-info/requires.txt new/copr-1.129/copr.egg-info/requires.txt --- old/copr-1.124/copr.egg-info/requires.txt 2022-11-29 14:15:43.000000000 +0100 +++ new/copr-1.129/copr.egg-info/requires.txt 2023-05-25 13:45:37.000000000 +0200 @@ -1,5 +1,4 @@ filelock -marshmallow requests requests-toolbelt setuptools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/docs/installation.rst new/copr-1.129/docs/installation.rst --- old/copr-1.124/docs/installation.rst 2022-01-04 01:09:47.000000000 +0100 +++ new/copr-1.129/docs/installation.rst 2023-04-16 14:31:29.000000000 +0200 @@ -21,7 +21,7 @@ .. code-block:: bash - git clone https://pagure.io/copr/copr.git + git clone https://github.com/fedora-copr/copr.git cd copr/python # enable virtualenv if needed pip install -r requirements.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/python-copr.spec new/copr-1.129/python-copr.spec --- old/copr-1.124/python-copr.spec 2022-11-26 21:50:20.000000000 +0100 +++ new/copr-1.129/python-copr.spec 2023-05-23 00:03:13.000000000 +0200 @@ -9,11 +9,11 @@ %endif Name: python-copr -Version: 1.124 +Version: 1.129 Release: 1%{?dist} Summary: Python interface for Copr -License: GPLv2+ +License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr # Source is created by: @@ -31,7 +31,6 @@ BuildRequires: python-setuptools BuildRequires: python-requests BuildRequires: python-requests-toolbelt -BuildRequires: python-marshmallow BuildRequires: python-six >= 1.9.0 BuildRequires: python-mock BuildRequires: python-munch @@ -48,7 +47,6 @@ BuildRequires: python2-setuptools BuildRequires: python2-requests BuildRequires: python2-requests-toolbelt -BuildRequires: python2-marshmallow BuildRequires: python2-six >= 1.9.0 BuildRequires: python2-pytest BuildRequires: python2-devel @@ -81,7 +79,6 @@ %if 0%{?rhel} == 7 Requires: python-configparser -Requires: python-marshmallow Requires: python-munch Requires: python-filelock Requires: python-requests @@ -92,7 +89,6 @@ Requires: python-future %else Requires: python2-configparser -Requires: python2-marshmallow Requires: python2-munch Requires: python2-filelock Requires: python2-requests @@ -120,7 +116,6 @@ BuildRequires: python3-docutils BuildRequires: python3-munch BuildRequires: python3-filelock -BuildRequires: python3-marshmallow BuildRequires: python3-pytest BuildRequires: python3-setuptools BuildRequires: python3-requests @@ -130,7 +125,6 @@ BuildRequires: python3-requests-gssapi BuildRequires: python3-future -Requires: python3-marshmallow Requires: python3-munch Requires: python3-filelock Requires: python3-requests @@ -244,6 +238,25 @@ %doc %{_pkgdocdir} %changelog +* Tue May 23 2023 Jakub Kadlcik <fros...@email.cz> 1.129-1 +- General check if it makes sense to upload SRPM + +* Wed Apr 05 2023 Jiri Kyjovsky <j1.kyjov...@gmail.com> 1.128-1 +- Rebuilding for release mess + +* Tue Apr 04 2023 Jiri Kyjovsky <j1.kyjov...@gmail.com> 1.127-1 +- Explicitly ask which user checks the permissions +- Make sure user can build in the project before uploading + +* Wed Mar 22 2023 Jiri Kyjovsky <j1.kyjov...@gmail.com> 1.126-1 +- Add option for follow_fedora_branching +* Tue Jan 24 2023 Jakub Kadlcik <fros...@email.cz> 1.125-1 +- Drop the unneeded marshmallow dependency +- Fix APIv3 additional_modules CoprChroot option +- More understandable module hotfixes description +- Disable appstream by default +- Use SPDX license + * Sat Nov 26 2022 Jakub Kadlcik <fros...@email.cz> 1.124-1 - move to GitHub home page - add external repos for custom build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.124/setup.py new/copr-1.129/setup.py --- old/copr-1.124/setup.py 2022-11-26 21:50:20.000000000 +0100 +++ new/copr-1.129/setup.py 2023-05-23 00:03:13.000000000 +0200 @@ -15,7 +15,6 @@ requires = [ 'filelock', - 'marshmallow', 'requests', 'requests-toolbelt', 'setuptools', @@ -32,7 +31,7 @@ setup( name='copr', - version="1.124", + version="1.129", description=__description__, long_description=long_description, author=__author__,