Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-aenum for openSUSE:Factory checked in at 2023-01-20 17:38:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aenum" Fri Jan 20 17:38:45 2023 rev:8 rq:1059839 version:3.1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2022-01-10 23:54:20.344843031 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.32243/python-aenum.changes 2023-01-20 17:38:59.136622579 +0100 @@ -1,0 +2,41 @@ +Thu Jan 19 17:25:19 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Update to 3.1.11: + * update MANIFEST file +- 3.1.10 + * improve tests +- 3.1.9 + * fail gracefully for badly written EnumType +- 3.1.8 + * recalculate bits used after all flags created (sometimes needed when a + custom `__new__` is in place. +- 3.1.7 + * update flag creation to (possibly) add bitwise operator methods to newly + created flags + * update extend_enum() to work with 3.11 flags +- 3.1.6 + * Update `dir()` on mixed enums to include mixed data type methods and + attributes. + + * Rename `enum_property` to `property` to match stdlib. Recommended usage is + `aenum.property` (prefix with module name). + + * Remove quadritic creation behavior. + + BREAKING CHANGE BUG FIX that won't affect most people + + Enums with a custom `__new__` that: + + - use the enum machinery to generate the values; AND + - have keyword arguments set to a default (like `None`) + + will fail to generate a missing value. To fix: remove the default value and + instead specify it on the member creation line. + + BREAKING CHANGE + + In Python 3.11 the `str()` of mixed enums will now match its `format()` which + will be the normal `str()` of the data type -- so for an IntEnum you'll see + `5` instead of `Perm.R|X`. This affects IntEnum, StrEnum, and IntFlag. + +------------------------------------------------------------------- Old: ---- aenum-3.1.5.tar.gz New: ---- aenum-3.1.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-aenum.spec ++++++ --- /var/tmp/diff_new_pack.5QXx9D/_old 2023-01-20 17:39:01.204634017 +0100 +++ /var/tmp/diff_new_pack.5QXx9D/_new 2023-01-20 17:39:01.208634039 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# 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 @@ -16,9 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version: 3.1.5 +Version: 3.1.11 Release: 0 Summary: Advanced Enumerations, NamedTuples, and NamedConstants License: BSD-3-Clause @@ -76,8 +75,9 @@ %pyunittest -v aenum.test %files %{python_files} -%doc README aenum/CHANGES aenum/doc/* +%doc README.md aenum/CHANGES aenum/doc/* %license aenum/LICENSE -%{python_sitelib}/* +%{python_sitelib}/aenum +%{python_sitelib}/aenum-%{version}*-info %changelog ++++++ aenum-3.1.5.tar.gz -> aenum-3.1.11.tar.gz ++++++ ++++ 3186 lines of diff (skipped) ++++++ skip_failing_testcases.patch ++++++ --- /var/tmp/diff_new_pack.5QXx9D/_old 2023-01-20 17:39:01.368634924 +0100 +++ /var/tmp/diff_new_pack.5QXx9D/_new 2023-01-20 17:39:01.372634946 +0100 @@ -2,24 +2,24 @@ aenum/test.py | 2 ++ 1 file changed, 2 insertions(+) -Index: aenum-3.1.5/aenum/test.py +Index: aenum-3.1.11/aenum/test_v3.py =================================================================== ---- aenum-3.1.5.orig/aenum/test.py -+++ aenum-3.1.5/aenum/test.py -@@ -6569,6 +6569,7 @@ CONVERT_TEST_EIO = 7 - CONVERT_TEST_EBUS = 7 # and this one +--- aenum-3.1.11.orig/aenum/test_v3.py ++++ aenum-3.1.11/aenum/test_v3.py +@@ -65,6 +65,7 @@ class TestEnumV3(TestCase): + self.Holiday = Holiday - class TestIntEnumConvert(TestCase): + @unittest.skipUnless(StdlibEnumMeta, 'Stdlib enum not available') + @unittest.skip('Failing test') - def test_convert_value_lookup_priority(self): - test_type = IntEnum._convert_( - 'UnittestConvert', -@@ -6589,6 +6590,7 @@ class TestIntEnumConvert(TestCase): - ], - ) + def test_stdlib_inheritence(self): + # 3.4 + self.assertTrue(issubclass(self.Season, StdlibEnum)) +@@ -1883,6 +1884,7 @@ class TestExtendEnumV3(TestCase): + self.assertTrue(issubclass(Color, StdlibFlag)) + @unittest.skipUnless(StdlibFlag, 'Stdlib Flag not available') + @unittest.skip('Failing test') - def test_convert_(self): - test_type = IntEnum._convert_( - 'UnittestConvert', + def test_extend_flag_backwards_stdlib(self): + class Color(StdlibFlag): + BLACK = 0 ++++++ tempdir_missing.patch ++++++ --- /var/tmp/diff_new_pack.5QXx9D/_old 2023-01-20 17:39:01.384635013 +0100 +++ /var/tmp/diff_new_pack.5QXx9D/_new 2023-01-20 17:39:01.388635035 +0100 @@ -2,11 +2,11 @@ aenum/test.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) -Index: aenum-3.1.5/aenum/test.py +Index: aenum-3.1.11/aenum/test.py =================================================================== ---- aenum-3.1.5.orig/aenum/test.py -+++ aenum-3.1.5/aenum/test.py -@@ -49,13 +49,18 @@ def load_tests(loader, tests, ignore): +--- aenum-3.1.11.orig/aenum/test.py ++++ aenum-3.1.11/aenum/test.py +@@ -51,13 +51,18 @@ def load_tests(loader, tests, ignore): return tests class TestCase(unittest.TestCase): @@ -26,7 +26,7 @@ # for pickle tests try: -@@ -943,6 +948,8 @@ class TestEnum(TestCase): +@@ -940,6 +945,8 @@ class TestEnum(TestCase): IDES_OF_MARCH = 2013, 3, 15 self.Holiday = Holiday @@ -35,7 +35,7 @@ def test_set_name(self): class Descriptor(object): name = None -@@ -2051,7 +2058,7 @@ class TestEnum(TestCase): +@@ -2081,7 +2088,7 @@ class TestEnum(TestCase): # for use with both Python 2/3 JSONEnum = JSONEnumMeta('JsonEnum', (Enum, ), {}) @@ -44,7 +44,7 @@ with open(test_file, 'w') as f: f.write( '[{"name":"Afghanistan","alpha-2":"AF","country-code":"004","notes":{"description":"pretty"}},' -@@ -4002,6 +4009,8 @@ class TestFlag(TestCase): +@@ -4040,6 +4047,8 @@ class TestFlag(TestCase): CE = 1<<19 self.Open = Open @@ -53,7 +53,7 @@ def test_set_name(self): class Descriptor(object): name = None -@@ -4264,7 +4273,7 @@ class TestFlag(TestCase): +@@ -4338,7 +4347,7 @@ class TestFlag(TestCase): self.assertEqual(AS.STREET._value_, 32) self.assertEqual(AS.SECONDARY_TYPE._value_, 128) self.assertEqual((AS.NAME | AS.STREET)._value_, 48, "%r is not 48" % (AS.NAME | AS.STREET)) @@ -62,7 +62,7 @@ def test_iteration(self): C = self.Color self.assertEqual(list(C), [C.RED, C.GREEN, C.BLUE]) -@@ -4957,6 +4966,8 @@ class TestIntFlag(TestCase): +@@ -5025,6 +5034,8 @@ class TestIntFlag(TestCase): self.Color = Color self.Open = Open @@ -71,7 +71,7 @@ def test_set_name(self): class Descriptor(object): name = None -@@ -6127,10 +6138,10 @@ class TestStackoverflowAnswers(TestCase) +@@ -6197,10 +6208,10 @@ class TestStackoverflowAnswers(TestCase) fh.write('#define %s %r\n' % (enum.name, enum.value)) class Arduino(CHeader): _order_ = 'ONE TWO' @@ -84,23 +84,4 @@ data = fh.read() self.assertEqual(textwrap.dedent("""\ initial header stuff here -@@ -6595,18 +6606,3 @@ class TestIntEnumConvert(TestCase): - if name[0:2] not in ('CO', '__')], - [], msg='Names other than CONVERT_TEST_* found.') - -- -- --if __name__ == '__main__': -- tempdir = tempfile.mkdtemp() -- try: -- if PY3: -- test_v3.tempdir = tempdir -- test = unittest.main(exit=False) -- sys.stdout.flush() -- for name, reason in test.result.skipped: -- print("%s: %s" % (name, reason)) -- finally: -- shutil.rmtree(tempdir, True) -- sys.exit(len(test.result.errors or test.result.failures) and 1 or 0) --