Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sortinghat for openSUSE:Factory checked in at 2023-07-27 16:52:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sortinghat (Old) and /work/SRC/openSUSE:Factory/.python-sortinghat.new.32662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sortinghat" Thu Jul 27 16:52:43 2023 rev:8 rq:1100980 version:0.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sortinghat/python-sortinghat.changes 2023-07-25 11:49:46.520985979 +0200 +++ /work/SRC/openSUSE:Factory/.python-sortinghat.new.32662/python-sortinghat.changes 2023-07-27 16:52:55.862533815 +0200 @@ -1,0 +2,7 @@ +Thu Jul 27 06:07:58 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 0.12.0: + * Job scheduler +- Refresh patch add-missing-format-calls.patch. + +------------------------------------------------------------------- Old: ---- sortinghat-0.11.1.tar.gz New: ---- sortinghat-0.12.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sortinghat.spec ++++++ --- /var/tmp/diff_new_pack.stdVy3/_old 2023-07-27 16:52:56.682538447 +0200 +++ /var/tmp/diff_new_pack.stdVy3/_new 2023-07-27 16:52:56.686538470 +0200 @@ -17,7 +17,7 @@ Name: python-sortinghat -Version: 0.11.1 +Version: 0.12.0 Release: 0 Summary: A tool to manage identities License: GPL-3.0-only ++++++ add-missing-format-calls.patch ++++++ --- /var/tmp/diff_new_pack.stdVy3/_old 2023-07-27 16:52:56.714538628 +0200 +++ /var/tmp/diff_new_pack.stdVy3/_new 2023-07-27 16:52:56.718538650 +0200 @@ -1,7 +1,7 @@ -Index: grimoirelab-sortinghat-0.11.1/tests/test_schema.py +Index: grimoirelab-sortinghat-0.12.0/tests/test_schema.py =================================================================== ---- grimoirelab-sortinghat-0.11.1.orig/tests/test_schema.py -+++ grimoirelab-sortinghat-0.11.1/tests/test_schema.py +--- grimoirelab-sortinghat-0.12.0.orig/tests/test_schema.py ++++ grimoirelab-sortinghat-0.12.0/tests/test_schema.py @@ -22,6 +22,7 @@ # @@ -10,7 +10,7 @@ import unittest.mock import json import httpretty -@@ -1401,6 +1402,7 @@ class TestQueryPagination(django.test.Te +@@ -1403,6 +1404,7 @@ class TestQueryPagination(django.test.Te self.assertEqual(pag_data['endIndex'], 6) self.assertEqual(pag_data['totalResults'], 6) @@ -18,7 +18,7 @@ def test_page_size_negative(self): """Check if it fails when `pageSize` is a negative number""" -@@ -6341,7 +6343,8 @@ class TestAddIdentityMutation(django.tes +@@ -6343,7 +6345,8 @@ class TestAddIdentityMutation(django.tes variables=params) msg = executed['errors'][0]['message'] @@ -28,7 +28,7 @@ def test_add_identity_name_none(self): """Check if the username is set to the profile when no name is provided""" -@@ -8137,7 +8140,8 @@ class TestWithdrawMutation(django.test.T +@@ -8139,7 +8142,8 @@ class TestWithdrawMutation(django.test.T variables=params) msg = executed['errors'][0]['message'] @@ -38,7 +38,7 @@ def test_non_existing_organization(self): """Check if it fails when the organization does not exist""" -@@ -9769,6 +9773,7 @@ class TestUnifyMutation(django.test.Test +@@ -9771,6 +9775,7 @@ class TestUnifyMutation(django.test.Test source='scm', uuid=self.jrae.uuid) @@ -46,7 +46,7 @@ @unittest.mock.patch('sortinghat.core.jobs.rq.job.uuid4') def test_unify(self, mock_job_id_gen): """Check if unify is applied for the specified individuals""" -@@ -9840,6 +9845,7 @@ class TestUnifyMutation(django.test.Test +@@ -9842,6 +9847,7 @@ class TestUnifyMutation(django.test.Test id5 = identities[4] self.assertEqual(id5, self.jr2) @@ -54,139 +54,10 @@ @unittest.mock.patch('sortinghat.core.jobs.rq.job.uuid4') def test_unify_exclude(self, mock_job_id_gen): """Check if unify is applied for the specified individuals""" -Index: grimoirelab-sortinghat-0.11.1/sortinghat/core/errors.py +Index: grimoirelab-sortinghat-0.12.0/tests/cli/test_cmd_config.py =================================================================== ---- grimoirelab-sortinghat-0.11.1.orig/sortinghat/core/errors.py -+++ grimoirelab-sortinghat-0.11.1/sortinghat/core/errors.py -@@ -50,10 +50,10 @@ class BaseError(Exception): - - def __init__(self, **kwargs): - super().__init__() -- self.msg = self.message % kwargs -+ self.message = self._msg % kwargs - - def __str__(self): -- return self.msg -+ return self.message - - def __int__(self): - return self.code -@@ -62,7 +62,7 @@ class BaseError(Exception): - class AlreadyExistsError(BaseError): - """Exception raised when an entity already exists in the registry""" - -- message = "%(entity)s '%(eid)s' already exists in the registry" -+ _msg = "%(entity)s '%(eid)s' already exists in the registry" - code = CODE_ALREADY_EXISTS_ERROR - - def __init__(self, **kwargs): -@@ -74,68 +74,68 @@ class AlreadyExistsError(BaseError): - class InvalidFormatError(BaseError): - """Exception raised when a format is invalid""" - -- message = "%(cause)s" -+ _msg = "%(cause)s" - code = CODE_INVALID_FORMAT_ERROR - - - class LoadError(BaseError): - """Exception raised when an error occurs loading data""" - -- message = "%(cause)s" -+ _msg = "%(cause)s" - code = CODE_LOAD_ERROR - - - class NotFoundError(BaseError): - """Exception raised when an entity is not found in the registry""" - -- message = "%(entity)s not found in the registry" -+ _msg = "%(entity)s not found in the registry" - code = CODE_NOT_FOUND_ERROR - - - class InvalidValueError(BaseError): - """Exception raised when a value is invalid""" - -+ _msg = "%(msg)s" - code = CODE_VALUE_ERROR -- message = "%(msg)s" - - - class InvalidFilterError(BaseError): - """Exception raised when a filter is invalid""" - -+ _msg = "Error in %(filter_name)s filter: %(msg)s" - code = CODE_FILTER_ERROR -- message = "Error in %(filter_name)s filter: %(msg)s" - - - class EqualIndividualError(BaseError): - """Exception raised when the source and destination individual are the same""" - -+ _msg = "%(msg)s" - code = CODE_EQUAL_INDIVIDUAL_ERROR -- message = "%(msg)s" - - - class ClosedTransactionError(BaseError): - """Exception raised when performing a change on a closed transaction""" - -+ _msg = "%(msg)s" - code = CODE_CLOSED_TRANSACTION_ERROR -- message = "%(msg)s" - - - class LockedIdentityError(BaseError): - """Exception raised when performing a change on a locked individual""" - -+ _msg = "Individual %(uuid)s is locked" - code = CODE_LOCKED_IDENTITY_ERROR -- message = "Individual %(uuid)s is locked" - - - class DuplicateRangeError(BaseError): - """Exception raised when setting an enrollment with an existing date range""" - -+ _msg = "range date '%(start)s'-'%(end)s' is part of an existing range for %(group)s" - code = CODE_DUPLICATE_RANGE_ERROR -- message = "range date '%(start)s'-'%(end)s' is part of an existing range for %(group)s" - - - class RecommendationEngineError(BaseError): - """Exception raised when there is an error in the recommendation engine""" - -+ _msg = "%(msg)s" - code = CODE_RECOMMENDATION_ERROR -- message = "%(msg)s" -Index: grimoirelab-sortinghat-0.11.1/tests/test_errors.py -=================================================================== ---- grimoirelab-sortinghat-0.11.1.orig/tests/test_errors.py -+++ grimoirelab-sortinghat-0.11.1/tests/test_errors.py -@@ -39,16 +39,16 @@ from sortinghat.core.errors import (Base - - # Mock classes to test BaseError class - class MockCode(BaseError): -- message = "Mock error with code" -+ _msg = "Mock error with code" - code = 9314 - - - class MockErrorNoArgs(BaseError): -- message = "Mock error without args" -+ _msg = "Mock error without args" - - - class MockErrorArgs(BaseError): -- message = "Mock error with args. Error: %(code)s %(msg)s" -+ _msg = "Mock error with args. Error: %(code)s %(msg)s" - - - class TestBaseError(TestCase): -Index: grimoirelab-sortinghat-0.11.1/tests/cli/test_cmd_config.py -=================================================================== ---- grimoirelab-sortinghat-0.11.1.orig/tests/cli/test_cmd_config.py -+++ grimoirelab-sortinghat-0.11.1/tests/cli/test_cmd_config.py +--- grimoirelab-sortinghat-0.12.0.orig/tests/cli/test_cmd_config.py ++++ grimoirelab-sortinghat-0.12.0/tests/cli/test_cmd_config.py @@ -41,10 +41,10 @@ MOCK_CONFIG_FILEPATH = os.path.join(os.p @@ -200,10 +71,10 @@ class TestInitConfig(unittest.TestCase): -Index: grimoirelab-sortinghat-0.11.1/sortinghat/core/decorators.py +Index: grimoirelab-sortinghat-0.12.0/sortinghat/core/decorators.py =================================================================== ---- grimoirelab-sortinghat-0.11.1.orig/sortinghat/core/decorators.py -+++ grimoirelab-sortinghat-0.11.1/sortinghat/core/decorators.py +--- grimoirelab-sortinghat-0.12.0.orig/sortinghat/core/decorators.py ++++ grimoirelab-sortinghat-0.12.0/sortinghat/core/decorators.py @@ -44,6 +44,8 @@ check_auth = user_passes_test( ++++++ sortinghat-0.11.1.tar.gz -> sortinghat-0.12.0.tar.gz ++++++ ++++ 1815 lines of diff (skipped)