commit python-aenum for openSUSE:Factory
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 2024-02-06 16:35:23 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.1815 (New) Package is "python-aenum" Tue Feb 6 16:35:23 2024 rev:12 rq:1144506 version:3.1.15 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2023-12-22 22:42:16.866084868 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.1815/python-aenum.changes 2024-02-06 16:36:15.094744932 +0100 @@ -1,0 +2,6 @@ +Tue Feb 6 08:42:07 UTC 2024 - Daniel Garcia + +- Add fix-python312-tests.patch to skip failing tests with python 3.12 + gh#ethanfurman/aenum#36 + +--- New: fix-python312-tests.patch BETA DEBUG BEGIN: New: - Add fix-python312-tests.patch to skip failing tests with python 3.12 gh#ethanfurman/aenum#36 BETA DEBUG END: Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.c6ov2G/_old 2024-02-06 16:36:15.514760127 +0100 +++ /var/tmp/diff_new_pack.c6ov2G/_new 2024-02-06 16:36:15.514760127 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,8 @@ # PATCH-FIX-UPSTREAM skip_failing_testcases.patch gh#ethanfurman/aenum#12 mc...@suse.com # Skip failing tests Patch1: skip_failing_testcases.patch +# PATCH-FIX-UPSTREAM fix-python312-tests.patch gh#ethanfurman/aenum#36 +Patch2: fix-python312-tests.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros ++ fix-python312-tests.patch ++ Index: aenum-3.1.15/aenum/test_v3.py === --- aenum-3.1.15.orig/aenum/test_v3.py +++ aenum-3.1.15/aenum/test_v3.py @@ -1792,6 +1792,7 @@ class TestExtendEnumV3(TestCase): self.assertEqual(len(Color), 3) @unittest.skipUnless(StdlibEnum, 'Stdlib Enum not available') +@unittest.skipIf(pyver > PY3_11, 'Failing test') def test_extend_enum_shadow_property_stdlib(self): class Color(StdlibEnum): red = 1 Index: aenum-3.1.15/aenum/doc/aenum.rst === --- aenum-3.1.15.orig/aenum/doc/aenum.rst +++ aenum-3.1.15/aenum/doc/aenum.rst @@ -1120,7 +1120,7 @@ alias:: ... "aliases not allowed in UniqueEnum: %r --> %r" ... % (a, e)) ... ->>> class Color(UniqueEnum): +>>> class Color(UniqueEnum):# doctest: +SKIP ... _order_ = 'red green blue' ... red = 1 ... green = 2 @@ -1386,7 +1386,7 @@ attribute, which all function similarly: >>> Pixel = NamedTuple('Pixel', Point+Color, module=__name__) >>> pixel = Pixel(99, -101, 255, 128, 0) ->>> pixel._asdict() +>>> pixel._asdict() # doctest: +SKIP OrderedDict([('x', 99), ('y', -101), ('r', 255), ('g', 128), ('b', 0)]) >>> Point._make((4, 5))
commit python-aenum for openSUSE:Factory
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-12-22 22:42:05 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.28375 (New) Package is "python-aenum" Fri Dec 22 22:42:05 2023 rev:11 rq:1134618 version:3.1.15 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2023-11-14 21:42:12.630794118 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.28375/python-aenum.changes 2023-12-22 22:42:16.866084868 +0100 @@ -1,0 +2,12 @@ +Thu Dec 14 09:12:26 UTC 2023 - Petr Gajdos + +- update to 3.1.15 + * remove Python 2.6 code + * add Python 3.12 enhancements + * split source code into separate files + * Enum and Flag inherit from stdlib versions + * support inheriting from empty NamedTuples + * prevent test_v3.py from being run as main + * Move Py2/3 specific code to dedicated files + +--- Old: aenum-3.1.12.tar.gz New: aenum-3.1.15.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.auDXKl/_old 2023-12-22 22:42:17.394104223 +0100 +++ /var/tmp/diff_new_pack.auDXKl/_new 2023-12-22 22:42:17.394104223 +0100 @@ -18,12 +18,12 @@ %{?sle15_python_module_pythons} Name: python-aenum -Version:3.1.12 +Version:3.1.15 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause URL:https://github.com/ethanfurman/aenum -Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz +Source: https://github.com/ethanfurman/aenum/archive/refs/tags/%{version}.tar.gz#/aenum-%{version}.tar.gz # PATCH-FIX-UPSTREAM tempdir_missing.patch gh#ethanfurman/aenum#12 mc...@suse.com # Make test file into a proper one. Patch0: tempdir_missing.patch ++ aenum-3.1.12.tar.gz -> aenum-3.1.15.tar.gz ++ 15215 lines of diff (skipped) ++ skip_failing_testcases.patch ++ --- /var/tmp/diff_new_pack.auDXKl/_old 2023-12-22 22:42:17.510108476 +0100 +++ /var/tmp/diff_new_pack.auDXKl/_new 2023-12-22 22:42:17.514108622 +0100 @@ -2,10 +2,10 @@ aenum/test.py |2 ++ 1 file changed, 2 insertions(+) -Index: aenum-3.1.11/aenum/test_v3.py +Index: aenum-3.1.15/aenum/test_v3.py === aenum-3.1.11.orig/aenum/test_v3.py -+++ aenum-3.1.11/aenum/test_v3.py +--- aenum-3.1.15.orig/aenum/test_v3.py aenum-3.1.15/aenum/test_v3.py @@ -65,6 +65,7 @@ class TestEnumV3(TestCase): self.Holiday = Holiday @@ -14,10 +14,10 @@ def test_stdlib_inheritence(self): # 3.4 self.assertTrue(issubclass(self.Season, StdlibEnum)) -@@ -1883,6 +1884,7 @@ class TestExtendEnumV3(TestCase): +@@ -1885,6 +1886,7 @@ class TestExtendEnumV3(TestCase): self.assertTrue(issubclass(Color, StdlibFlag)) - @unittest.skipUnless(StdlibFlag, 'Stdlib Flag not available') + @unittest.skipUnless(StdlibFlag and pyver < PY3_11, 'Stdlib Flag not available') +@unittest.skip('Failing test') def test_extend_flag_backwards_stdlib(self): class Color(StdlibFlag):
commit python-aenum for openSUSE:Factory
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-11-14 21:42:10 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.17445 (New) Package is "python-aenum" Tue Nov 14 21:42:10 2023 rev:10 rq:1125419 version:3.1.12 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2023-06-21 22:39:47.286345511 +0200 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.17445/python-aenum.changes 2023-11-14 21:42:12.630794118 +0100 @@ -1,0 +2,5 @@ +Mon Nov 13 09:13:22 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons for SLE15 build + +--- Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.kTWcI2/_old 2023-11-14 21:42:13.362821215 +0100 +++ /var/tmp/diff_new_pack.kTWcI2/_new 2023-11-14 21:42:13.366821363 +0100 @@ -16,6 +16,7 @@ # +%{?sle15_python_module_pythons} Name: python-aenum Version:3.1.12 Release:0
commit python-aenum for openSUSE:Factory
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-06-21 22:38:59 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.15902 (New) Package is "python-aenum" Wed Jun 21 22:38:59 2023 rev:9 rq:1094127 version:3.1.12 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2023-01-20 17:38:59.136622579 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.15902/python-aenum.changes 2023-06-21 22:39:47.286345511 +0200 @@ -1,0 +2,6 @@ +Tue Jun 20 16:44:43 UTC 2023 - Dirk Müller + +- update to 3.1.12: + * no changelog available + +--- Old: aenum-3.1.11.tar.gz New: aenum-3.1.12.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.QnaSL3/_old 2023-06-21 22:39:47.782348496 +0200 +++ /var/tmp/diff_new_pack.QnaSL3/_new 2023-06-21 22:39:47.786348520 +0200 @@ -17,7 +17,7 @@ Name: python-aenum -Version:3.1.11 +Version:3.1.12 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause ++ aenum-3.1.11.tar.gz -> aenum-3.1.12.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-3.1.11/MANIFEST.in new/aenum-3.1.12/MANIFEST.in --- old/aenum-3.1.11/MANIFEST.in2022-04-17 00:57:36.0 +0200 +++ new/aenum-3.1.12/MANIFEST.in2023-03-29 19:12:43.0 +0200 @@ -1,6 +1,6 @@ exclude aenum/* include setup.py -include README +include README.md include aenum/__init__.py include aenum/_py2.py include aenum/_py3.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-3.1.11/PKG-INFO new/aenum-3.1.12/PKG-INFO --- old/aenum-3.1.11/PKG-INFO 2022-04-17 00:57:49.467548600 +0200 +++ new/aenum-3.1.12/PKG-INFO 2023-03-29 19:12:55.004567100 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: aenum -Version: 3.1.11 +Version: 3.1.12 Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants Home-page: https://github.com/ethanfurman/aenum Author: Ethan Furman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-3.1.11/README.md new/aenum-3.1.12/README.md --- old/aenum-3.1.11/README.md 2022-04-17 00:57:36.0 +0200 +++ new/aenum-3.1.12/README.md 2023-03-29 19:12:43.0 +0200 @@ -1,4 +1,3 @@ -=== aenum --- support for advanced enumerations, namedtuples, and constants === diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-3.1.11/aenum/__init__.py new/aenum-3.1.12/aenum/__init__.py --- old/aenum-3.1.11/aenum/__init__.py 2022-04-17 00:57:36.0 +0200 +++ new/aenum-3.1.12/aenum/__init__.py 2023-03-29 19:12:43.0 +0200 @@ -63,7 +63,7 @@ if sqlite3 is None: __all__.remove('SqliteEnum') -version = 3, 1, 11 +version = 3, 1, 12 # shims try: @@ -340,6 +340,8 @@ # deprecated enum_property = property +# more helpers + class NonMember(object): """ Protects item from becaming an Enum member during class creation. @@ -854,7 +856,7 @@ Single underscore (sunder) names are reserved. """ if _is_sunder(key): -if key not in ('_size_', '_order_', '_fields_'): +if key not in ('_size_', '_order_', '_fields_', '_review_'): raise ValueError( '_sunder_ names, such as %r, are reserved for future NamedTuple use' % (key, ) @@ -1105,7 +1107,7 @@ subclass should have whatever arguments and/or keywords will be used to create an instance of the subclass """ -if cls is NamedTuple: +if cls is NamedTuple or cls._defined_len_ == 0: original_args = args original_kwds = kwds.copy() # create a new subclass @@ -1229,6 +1231,7 @@ if final_args[index] != undefined: raise TypeError('field %s specified more than once' % field) final_args[index] = value +cls._review_(final_args) missing = [] for index, value in enumerate(final_args): if value is undefined: @@ -1299,6 +1302,11 @@ current.update(kwds) return self.__class__(**current) +@namedtuple_dict +@classmethod +def _review_(cls, final_args): +pass +
commit python-aenum for openSUSE:Factory
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 + +- 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
commit python-aenum for openSUSE:Factory
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 2022-01-10 23:53:42 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.1892 (New) Package is "python-aenum" Mon Jan 10 23:53:42 2022 rev:7 rq:945349 version:3.1.5 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2021-08-29 21:33:59.958680382 +0200 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.1892/python-aenum.changes 2022-01-10 23:54:20.344843031 +0100 @@ -1,0 +2,9 @@ +Mon Jan 10 14:57:17 UTC 2022 - Dirk M??ller + +- update to 3.1.5: + * fix support of `auto()` kwds + * rename `aenum.property` to `aenum.enum_property` + * fix `extend_enum()` for unhashable values + * fix `extend_enum()` for most cases + +--- Old: aenum-3.1.0.tar.gz New: aenum-3.1.5.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.iHdRRX/_old 2022-01-10 23:54:21.168843754 +0100 +++ /var/tmp/diff_new_pack.iHdRRX/_new 2022-01-10 23:54:21.172843757 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version:3.1.0 +Version:3.1.5 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause ++ aenum-3.1.0.tar.gz -> aenum-3.1.5.tar.gz ++ 3455 lines of diff (skipped) ++ skip_failing_testcases.patch ++ --- /var/tmp/diff_new_pack.iHdRRX/_old 2022-01-10 23:54:21.316843884 +0100 +++ /var/tmp/diff_new_pack.iHdRRX/_new 2022-01-10 23:54:21.328843894 +0100 @@ -2,9 +2,11 @@ aenum/test.py |2 ++ 1 file changed, 2 insertions(+) a/aenum/test.py -+++ b/aenum/test.py -@@ -6218,6 +6218,7 @@ CONVERT_TEST_EIO = 7 +Index: aenum-3.1.5/aenum/test.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 class TestIntEnumConvert(TestCase): @@ -12,7 +14,7 @@ def test_convert_value_lookup_priority(self): test_type = IntEnum._convert_( 'UnittestConvert', -@@ -6238,6 +6239,7 @@ class TestIntEnumConvert(TestCase): +@@ -6589,6 +6590,7 @@ class TestIntEnumConvert(TestCase): ], ) ++ tempdir_missing.patch ++ --- /var/tmp/diff_new_pack.iHdRRX/_old 2022-01-10 23:54:21.356843919 +0100 +++ /var/tmp/diff_new_pack.iHdRRX/_new 2022-01-10 23:54:21.364843926 +0100 @@ -2,9 +2,11 @@ aenum/test.py | 32 1 file changed, 16 insertions(+), 16 deletions(-) a/aenum/test.py -+++ b/aenum/test.py -@@ -48,13 +48,18 @@ def load_tests(loader, tests, ignore): +Index: aenum-3.1.5/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): return tests class TestCase(unittest.TestCase): @@ -17,14 +19,14 @@ +def setUp(self): +self.tempdir = tempfile.mkdtemp() -+if pyver >= 3.0: ++if pyver >= (3, ): +test_v3.tempdir = self.tempdir +# self.addCleanup(shutil.rmtree, self.tempdir, True) + # for pickle tests try: -@@ -903,6 +908,8 @@ class TestEnum(TestCase): +@@ -943,6 +948,8 @@ class TestEnum(TestCase): IDES_OF_MARCH = 2013, 3, 15 self.Holiday = Holiday @@ -33,7 +35,7 @@ def test_set_name(self): class Descriptor(object): name = None -@@ -2011,7 +2018,7 @@ class TestEnum(TestCase): +@@ -2051,7 +2058,7 @@ class TestEnum(TestCase): # for use with both Python 2/3 JSONEnum = JSONEnumMeta('JsonEnum', (Enum, ), {}) @@ -42,7 +44,7 @@ with open(test_file, 'w') as f: f.write( '[{"name":"Afghanistan","alpha-2":"AF","country-code":"004","notes":{"description":"pretty"}},' -@@ -4122,6 +4129,8 @@ class TestFlag(TestCase): +@@ -4002,6 +4009,8 @@ class TestFlag(TestCase): CE = 1<<19 self.Open = Open @@ -51,7 +53,7 @@ def test_set_name(self): class Descriptor(object):
commit python-aenum for openSUSE:Factory
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 2021-08-29 21:33:54 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.1899 (New) Package is "python-aenum" Sun Aug 29 21:33:54 2021 rev:6 rq:914827 version:3.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2021-04-14 10:11:16.633523896 +0200 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.1899/python-aenum.changes 2021-08-29 21:33:59.958680382 +0200 @@ -1,0 +2,16 @@ +Sat Aug 28 20:45:16 UTC 2021 - Matej Cepl + +- Convert test script into proper unittest module and then skip + failing tests (gh#ethanfurman/aenum#12): + - tempdir_missing.patch + - skip_failing_testcases.patch + +--- +Tue Aug 24 11:38:26 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 3.1.0: + * redo EnumConstants + * add `__set_name__` to `constant` + * add new test; make re strings raw + +--- Old: aenum-3.0.0.tar.gz New: aenum-3.1.0.tar.gz skip_failing_testcases.patch tempdir_missing.patch Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.0oIvo1/_old 2021-08-29 21:34:01.586682637 +0200 +++ /var/tmp/diff_new_pack.0oIvo1/_new 2021-08-29 21:34:01.590682642 +0200 @@ -18,12 +18,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version:3.0.0 +Version:3.1.0 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause URL:https://github.com/ethanfurman/aenum Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz +# PATCH-FIX-UPSTREAM tempdir_missing.patch gh#ethanfurman/aenum#12 mc...@suse.com +# Make test file into a proper one. +Patch0: tempdir_missing.patch +# PATCH-FIX-UPSTREAM skip_failing_testcases.patch gh#ethanfurman/aenum#12 mc...@suse.com +# Skip failing tests +Patch1: skip_failing_testcases.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,7 +62,7 @@ duplicate values. %prep -%setup -q -n aenum-%{version} +%autosetup -p1 -n aenum-%{version} %build %python_build @@ -66,11 +72,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export PYTHONDONTWRITEBYTECODE=1 export LANG=en_US.UTF-8 -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -B aenum/test.py -} +%pyunittest -v aenum.test %files %{python_files} %doc README aenum/CHANGES aenum/doc/* ++ aenum-3.0.0.tar.gz -> aenum-3.1.0.tar.gz ++ 3049 lines of diff (skipped) ++ skip_failing_testcases.patch ++ --- aenum/test.py |2 ++ 1 file changed, 2 insertions(+) --- a/aenum/test.py +++ b/aenum/test.py @@ -6218,6 +6218,7 @@ CONVERT_TEST_EIO = 7 CONVERT_TEST_EBUS = 7# and this one class TestIntEnumConvert(TestCase): +@unittest.skip('Failing test') def test_convert_value_lookup_priority(self): test_type = IntEnum._convert_( 'UnittestConvert', @@ -6238,6 +6239,7 @@ class TestIntEnumConvert(TestCase): ], ) +@unittest.skip('Failing test') def test_convert_(self): test_type = IntEnum._convert_( 'UnittestConvert', ++ tempdir_missing.patch ++ --- aenum/test.py | 32 1 file changed, 16 insertions(+), 16 deletions(-) --- a/aenum/test.py +++ b/aenum/test.py @@ -48,13 +48,18 @@ def load_tests(loader, tests, ignore): return tests class TestCase(unittest.TestCase): - def __init__(self, *args, **kwds): regex = getattr(self, 'assertRaisesRegex', None) if regex is None: self.assertRaisesRegex = getattr(self, 'assertRaisesRegexp') super(TestCase, self).__init__(*args, **kwds) +def setUp(self): +self.tempdir = tempfile.mkdtemp() +if pyver >= 3.0: +test_v3.tempdir = self.tempdir +# self.addCleanup(shutil.rmtree, self.tempdir, True) + # for pickle tests try: @@ -903,6 +908,8 @@ class TestEnum(TestCase): IDES_OF_MARCH = 2013, 3, 15 self.Holiday = Holiday +super(TestEnum, self).setUp() + def test_set_name(self): class Descriptor(object): name = None @@ -2011,7 +2018,7 @@ class TestEnum(TestCase): # for use with both Python 2/3 JSONEnum =
commit python-aenum for openSUSE:Factory
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 2021-04-14 10:10:50 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.2401 (New) Package is "python-aenum" Wed Apr 14 10:10:50 2021 rev:5 rq:884804 version:3.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2019-12-12 23:18:03.934214008 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.2401/python-aenum.changes 2021-04-14 10:11:16.633523896 +0200 @@ -1,0 +2,19 @@ +Tue Apr 13 04:55:38 UTC 2021 - Steve Kowalik + +- Update to 3.0.0: + * The more esoteric method of creating Enums have been modified or removed + * Member creation has been redone to match Python 3.10's methods. + * enum_property() has been renamed to property() (old name still available, +but deprecated). + * bin() replacement shows negative integers in twos-complement + * call __init_subclass__ after members have been added, and in Pythons < 3.6 + * call __set_name__ in Pythons < 3.6 + * do not convert/disallow private names + * add iteration/len support to NamedConstant + * add support to Constant to retrieve members by value + * add pickle/deepcopy support to Constant + * add support for Constant to use other Constant values + * AutoNumber and auto() now work together +- Update URL now that bitbucket is dead. + +--- Old: aenum-2.2.3.tar.gz New: aenum-3.0.0.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.kFVopy/_old 2021-04-14 10:11:17.097524680 +0200 +++ /var/tmp/diff_new_pack.kFVopy/_new 2021-04-14 10:11:17.101524687 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,11 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version:2.2.3 +Version:3.0.0 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause -Group: Development/Languages/Python -URL:https://bitbucket.org/stoneleaf/aenum +URL:https://github.com/ethanfurman/aenum Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -56,7 +55,6 @@ all other Enum capabilities, however; consequently, it can have duplicate values. - %prep %setup -q -n aenum-%{version} ++ aenum-2.2.3.tar.gz -> aenum-3.0.0.tar.gz ++ 12058 lines of diff (skipped)