Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-UkPostcodeParser for openSUSE:Factory checked in at 2023-08-16 14:16:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-UkPostcodeParser (Old) and /work/SRC/openSUSE:Factory/.python-UkPostcodeParser.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-UkPostcodeParser" Wed Aug 16 14:16:31 2023 rev:5 rq:1103988 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-UkPostcodeParser/python-UkPostcodeParser.changes 2023-04-22 22:03:17.650232960 +0200 +++ /work/SRC/openSUSE:Factory/.python-UkPostcodeParser.new.11712/python-UkPostcodeParser.changes 2023-08-16 14:16:43.698824882 +0200 @@ -1,0 +2,5 @@ +Tue Aug 15 07:31:36 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- add python312.patch to fix build with python 3.12 + +------------------------------------------------------------------- New: ---- python312.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-UkPostcodeParser.spec ++++++ --- /var/tmp/diff_new_pack.uVOCnQ/_old 2023-08-16 14:16:44.426829491 +0200 +++ /var/tmp/diff_new_pack.uVOCnQ/_new 2023-08-16 14:16:44.434829542 +0200 @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: https://github.com/hamstah/ukpostcodeparser Source: https://files.pythonhosted.org/packages/source/U/UkPostcodeParser/UkPostcodeParser-%{version}.tar.gz +Patch1: python312.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -37,7 +38,7 @@ United Kingdom Postcode parser. %prep -%setup -q -n UkPostcodeParser-%{version} +%autosetup -p1 -n UkPostcodeParser-%{version} %build %python_build @@ -55,6 +56,7 @@ %files %{python_files} %license LICENSE %doc README -%{python_sitelib}/* +%{python_sitelib}/ukpostcodeparser +%{python_sitelib}/UkPostcodeParser-%{version}*-info %changelog ++++++ python312.patch ++++++ --- a/ukpostcodeparser/test/parser.py +++ b/ukpostcodeparser/test/parser.py @@ -18,7 +18,7 @@ with self.assertRaises(ValueError) as cm: parse_uk_postcode('N16', True, True) - self.assertEquals(cm.exception.__class__, IncodeNotFoundError) + self.assertEqual(cm.exception.__class__, IncodeNotFoundError) def test_max_length_exceeded_error_is_value_error(self): """ @@ -28,7 +28,7 @@ with self.assertRaises(ValueError) as cm: parse_uk_postcode('N16 8QSSS', True, True) - self.assertEquals(cm.exception.__class__, MaxLengthExceededError) + self.assertEqual(cm.exception.__class__, MaxLengthExceededError) def test_invalid_postcode_error_is_value_error(self): """ @@ -38,7 +38,7 @@ with self.assertRaises(ValueError) as cm: parse_uk_postcode('xx0 2yr', True, True) - self.assertEquals(cm.exception.__class__, InvalidPostcodeError) + self.assertEqual(cm.exception.__class__, InvalidPostcodeError) class PostcodeTestCase(unittest.TestCase): @@ -68,7 +68,7 @@ m = 'Expected {!r} but got {!r} for postcode={!r}, strict={!r} and ' \ 'incode_mandatory={!r}' - self.assertEquals( + self.assertEqual( expected, result, m.format(