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 2022-12-09 13:18:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-copr (Old) and /work/SRC/openSUSE:Factory/.python-copr.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-copr" Fri Dec 9 13:18:06 2022 rev:6 rq:1041745 version:1.124 Changes: -------- --- /work/SRC/openSUSE:Factory/python-copr/python-copr.changes 2022-10-12 18:27:38.818080223 +0200 +++ /work/SRC/openSUSE:Factory/.python-copr.new.1835/python-copr.changes 2022-12-09 13:19:33.439567829 +0100 @@ -1,0 +2,8 @@ +Wed Dec 7 15:53:03 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 1.124 + - move to GitHub home page + - add external repos for custom build + - don't play with sessions if using ApiToken + +------------------------------------------------------------------- Old: ---- copr-1.123.tar.gz New: ---- copr-1.124.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-copr.spec ++++++ --- /var/tmp/diff_new_pack.dMRADL/_old 2022-12-09 13:19:33.875570145 +0100 +++ /var/tmp/diff_new_pack.dMRADL/_new 2022-12-09 13:19:33.879570167 +0100 @@ -16,16 +16,21 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-copr -Version: 1.123 +Version: 1.124 Release: 0 Summary: Python client for copr service License: GPL-2.0-or-later -URL: https://pagure.io/copr/copr +URL: https://github.com/fedora-copr/copr Source: https://files.pythonhosted.org/packages/source/c/copr/copr-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-marshmallow +Requires: python-munch +Requires: python-requests +Requires: python-requests-toolbelt +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module filelock} BuildRequires: %{python_module future} @@ -36,12 +41,6 @@ BuildRequires: %{python_module requests-toolbelt} BuildRequires: %{python_module requests} # /SECTION -BuildRequires: fdupes -Requires: python-marshmallow -Requires: python-munch -Requires: python-requests -Requires: python-requests-toolbelt -BuildArch: noarch %python_subpackages %description @@ -62,6 +61,7 @@ %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/copr +%{python_sitelib}/copr-%{version}*-info %changelog ++++++ copr-1.123.tar.gz -> copr-1.124.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/.gitignore new/copr-1.124/.gitignore --- old/copr-1.123/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/copr-1.124/.gitignore 2021-12-12 16:37:48.000000000 +0100 @@ -0,0 +1 @@ +docs/_build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/Makefile new/copr-1.124/Makefile --- old/copr-1.123/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/copr-1.124/Makefile 2022-11-13 21:33:19.000000000 +0100 @@ -0,0 +1,14 @@ +.PHONY: check test lint unittests + +# we keep this serialized to avoid messed standard output +check: + $(MAKE) unittests + $(MAKE) lint + +test: check + +unittests: + ./run_tests.sh -vv -s + +lint: + vcs-diff-lint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/PKG-INFO new/copr-1.124/PKG-INFO --- old/copr-1.123/PKG-INFO 2022-09-21 16:05:21.387154600 +0200 +++ new/copr-1.124/PKG-INFO 2022-11-29 14:15:43.764444600 +0100 @@ -1,8 +1,8 @@ Metadata-Version: 2.1 Name: copr -Version: 1.123 +Version: 1.124 Summary: Python client for copr service. -Home-page: https://pagure.io/copr/copr +Home-page: https://github.com/fedora-copr/copr Author: Valentin Gologuzov Author-email: vgolo...@redhat.com License: GPLv2+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr/test/client_v3/test_auth.py new/copr-1.124/copr/test/client_v3/test_auth.py --- old/copr-1.123/copr/test/client_v3/test_auth.py 2022-08-16 11:02:39.000000000 +0200 +++ new/copr-1.124/copr/test/client_v3/test_auth.py 2022-11-13 23:13:49.000000000 +0100 @@ -13,11 +13,7 @@ """ config = mock.MagicMock() auth = ApiToken(config) - assert not auth.auth - assert not auth.username - # Make sure all auth values are loaded from the config - auth.make_expensive() assert auth.auth assert auth.username diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr/v3/auth/base.py new/copr-1.124/copr/v3/auth/base.py --- old/copr-1.123/copr/v3/auth/base.py 2022-08-16 11:02:39.000000000 +0200 +++ new/copr-1.124/copr/v3/auth/base.py 2022-11-13 23:13:49.000000000 +0100 @@ -14,7 +14,7 @@ from urlparse import urlparse -class BaseAuth: +class BaseAuth(object): """ Base authentication class There is a more standard way of implementing custom authentication classes, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr/v3/auth/token.py new/copr-1.124/copr/v3/auth/token.py --- old/copr-1.123/copr/v3/auth/token.py 2022-08-16 11:02:39.000000000 +0200 +++ new/copr-1.124/copr/v3/auth/token.py 2022-11-13 23:13:49.000000000 +0100 @@ -7,8 +7,25 @@ class ApiToken(BaseAuth): """ - The standard authentication via `(login, token)` from `~/.config/copr` + The standard authentication via `(login, token)` from `~/.config/copr`. """ - def make_expensive(self): + + def __init__(self, *args, **kwargs): + super(ApiToken, self).__init__(*args, **kwargs) + # No need to lazy-login + self.make() + + def make(self, reauth=False): + """ + Override the higher abstraction method BaseAuth.make() because we don't + need the complicated logic with API tokens at all (working with caches + or sessions, etc.). We also don't use make_expensive() at all. + """ self.auth = self.config["login"], self.config["token"] self.username = self.config.get("username") + + def make_expensive(self): + """ + This is never called. We have overridden the parent's make() method. + """ + raise RuntimeError("ApiToken.make_expensive() should never be called") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr/v3/proxies/build.py new/copr-1.124/copr/v3/proxies/build.py --- old/copr-1.123/copr/v3/proxies/build.py 2022-08-16 11:02:39.000000000 +0200 +++ new/copr-1.124/copr/v3/proxies/build.py 2022-11-17 20:15:24.000000000 +0100 @@ -264,8 +264,8 @@ return self._create(endpoint, data, buildopts=buildopts) def create_from_custom(self, ownername, projectname, script, script_chroot=None, - script_builddeps=None, script_resultdir=None, buildopts=None, - project_dirname=None): + script_builddeps=None, script_resultdir=None, script_repos=None, + buildopts=None, project_dirname=None): """ Create a build from custom script. @@ -277,6 +277,9 @@ :param script_builddeps: [optional] list of script's dependencies :param script_resultdir: [optional] where script generates results (relative to cwd) + :parm script_repos: [optional] external repositories containing script's + dependencies + :param buildopts: http://python-copr.readthedocs.io/en/latest/client_v3/build_options.html :param str project_dirname: :return: Munch """ @@ -289,6 +292,7 @@ "builddeps": script_builddeps, "resultdir": script_resultdir, "project_dirname": project_dirname, + "repos": script_repos, } return self._create(endpoint, data, buildopts=buildopts) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr.egg-info/PKG-INFO new/copr-1.124/copr.egg-info/PKG-INFO --- old/copr-1.123/copr.egg-info/PKG-INFO 2022-09-21 16:05:21.000000000 +0200 +++ new/copr-1.124/copr.egg-info/PKG-INFO 2022-11-29 14:15:43.000000000 +0100 @@ -1,8 +1,8 @@ Metadata-Version: 2.1 Name: copr -Version: 1.123 +Version: 1.124 Summary: Python client for copr service. -Home-page: https://pagure.io/copr/copr +Home-page: https://github.com/fedora-copr/copr Author: Valentin Gologuzov Author-email: vgolo...@redhat.com License: GPLv2+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/copr.egg-info/SOURCES.txt new/copr-1.124/copr.egg-info/SOURCES.txt --- old/copr-1.123/copr.egg-info/SOURCES.txt 2022-09-21 16:05:21.000000000 +0200 +++ new/copr-1.124/copr.egg-info/SOURCES.txt 2022-11-29 14:15:43.000000000 +0100 @@ -1,7 +1,11 @@ +.gitignore LICENSE MANIFEST.in +Makefile +pylintrc pyproject.toml python-copr.spec +requirements.readthedocs.txt requirements.txt run_tests.sh setup.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/pylintrc new/copr-1.124/pylintrc --- old/copr-1.123/pylintrc 1970-01-01 01:00:00.000000000 +0100 +++ new/copr-1.124/pylintrc 2022-11-13 21:33:19.000000000 +0100 @@ -0,0 +1,121 @@ +# Copr clients pylint configuration + +[MASTER] +# Pickle collected data for later comparisons. +persistent=no + +init-hook= + import os + import subprocess + gitrootdir = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip() + sys.path.insert(0, os.path.join(gitrootdir, '.pylintpath')) + import copr_pylintrc + copr_pylintrc.init() + + +# Our own pylint transformations. +load-plugins=pylint_copr_plugin + +[MESSAGES CONTROL] +# Reasoning for wide warning ignore +# --------------------------------- +# import-error +# This is to fix our Jenkins CI where we do not have all the build +# requirements for all our sub-components. We can afford not listening to +# this error because our packaging CI would discover the problems anyways. +# useless-object-inheritance +# We need to keep compatibility with Python 2 for EL6 and EL7. +# consider-using-f-string +# We still support Python 2.7 (EL7) for clients. +# unspecified-encoding +# Python2.7: TypeError: 'encoding' is an invalid keyword argument for this function +disable=import-error,useless-object-inheritance,super-with-arguments,consider-using-f-string,unspecified-encoding + +[VARIABLES] +# A regular expression matching names used for dummy variables (i.e. not used). +dummy-variables-rgx=_|dummy + + +[BASIC] +# Regular expression which should only match correct module names +module-rgx=([a-zA-Z_][a-zA-Z0-9_]+)$ + +# Regular expression which should only match correct module level names +const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$ + +# Regular expression which should only match correct class names +class-rgx=[a-zA-Z_][a-zA-Z0-9_]+$ + +# Regular expression which should only match correct function names +function-rgx=[a-z_][a-zA-Z0-9_]{,42}$ + +# Regular expression which should only match correct method names +method-rgx=[a-z_][a-zA-Z0-9_]{,42}$ + +# Regular expression which should only match correct instance attribute names +attr-rgx=[a-z_][a-zA-Z0-9_]{,30}$ + +# Regular expression which should only match correct argument names +argument-rgx=[a-z_][a-zA-Z0-9_]{,30}$ + +# Regular expression which should only match correct variable names +variable-rgx=[a-z_][a-zA-Z0-9_]{,30}$ + +# Regular expression which should only match correct list comprehension / +# generator expression variable names +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ + +# Regular expression which should only match correct class sttribute names +class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,42}|(__.*__))$ + +# Good variable names which should always be accepted, separated by a comma +good-names=i,j,k,ex,Run,_ + +# Bad variable names which should always be refused, separated by a comma +bad-names=foo,bar,baz,toto,tutu,tata + +[DESIGN] + +# Maximum number of arguments for function / method +max-args=10 + +# Maximum number of locals for function / method body +max-locals=20 + +# Maximum number of return / yield for function / method body +max-returns=6 + +# Maximum number of branch for function / method body +max-branches=20 + +# Maximum number of statements in function / method body +max-statements=50 + +# Maximum number of parents for a class (see R0901). +max-parents=7 + +# Maximum number of attributes for a class (see R0902). +max-attributes=7 + +# Minimum number of public methods for a class (see R0903). +min-public-methods=1 + +# Maximum number of public methods for a class (see R0904). +max-public-methods=20 + + +[FORMAT] +# Maximum number of characters on a single line. +max-line-length=120 + +# Maximum number of lines in a module +max-module-lines=1000 + +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 +# tab). +indent-string=' ' + + +[MISCELLANEOUS] +# List of note tags to take in consideration, separated by a comma. +notes= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/python-copr.spec new/copr-1.124/python-copr.spec --- old/copr-1.123/python-copr.spec 2022-09-21 16:04:29.000000000 +0200 +++ new/copr-1.124/python-copr.spec 2022-11-26 21:50:20.000000000 +0100 @@ -9,12 +9,12 @@ %endif Name: python-copr -Version: 1.123 +Version: 1.124 Release: 1%{?dist} Summary: Python interface for Copr License: GPLv2+ -URL: https://pagure.io/copr/copr +URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr @@ -244,6 +244,11 @@ %doc %{_pkgdocdir} %changelog +* Sat Nov 26 2022 Jakub Kadlcik <fros...@email.cz> 1.124-1 +- move to GitHub home page +- add external repos for custom build +- don't play with sessions if using ApiToken + * Tue Sep 20 2022 Jakub Kadlcik <fros...@email.cz> 1.123-1 - more generic docs for Client initialization - add runtime_dependencies param doc for project edit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/requirements.readthedocs.txt new/copr-1.124/requirements.readthedocs.txt --- old/copr-1.123/requirements.readthedocs.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/copr-1.124/requirements.readthedocs.txt 2021-12-12 16:37:48.000000000 +0100 @@ -0,0 +1,5 @@ +# Used solely for building documentation on readthedocs.org +# Use this file by running "$ pip install -r requirements.readthedocs.txt" +# http://docs.readthedocs.io/en/latest/faq.html#can-i-document-a-python-package-that-is-not-at-the-root-of-my-repository + +./python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/copr-1.123/setup.py new/copr-1.124/setup.py --- old/copr-1.123/setup.py 2022-09-21 16:04:29.000000000 +0200 +++ new/copr-1.124/setup.py 2022-11-26 21:50:20.000000000 +0100 @@ -27,12 +27,12 @@ __description__ = "Python client for copr service." __author__ = "Valentin Gologuzov" __author_email__ = "vgolo...@redhat.com" -__url__ = "https://pagure.io/copr/copr" +__url__ = "https://github.com/fedora-copr/copr" setup( name='copr', - version="1.123", + version="1.124", description=__description__, long_description=long_description, author=__author__,