15
0
forked from pool/python-aenum

Accepting request 1134618 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1134618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=11
This commit is contained in:
2023-12-22 21:42:05 +00:00
committed by Git OBS Bridge
5 changed files with 22 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e531c91860a81f885f7e6e97d219ae9772cb899580084788935dad7d9742ef0
size 131313

3
aenum-3.1.15.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc9275eef098ce51254f361fb027abf2fdca6c53115ddf63be64b76f9c09bfe1
size 111286

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Dec 14 09:12:26 UTC 2023 - Petr Gajdos <pgajdos@suse.com>
- 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
-------------------------------------------------------------------
Mon Nov 13 09:13:22 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -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 mcepl@suse.com
# Make test file into a proper one.
Patch0: tempdir_missing.patch

View File

@@ -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 @@ Index: aenum-3.1.11/aenum/test_v3.py
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):