15
0
forked from pool/python-aenum

Accepting request 1133124 from home:pgajdos:python

pmmu version update

OBS-URL: https://build.opensuse.org/request/show/1133124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=23
This commit is contained in:
2023-12-15 11:57:06 +00:00
committed by Git OBS Bridge
parent 26eb09825c
commit 06f55777a6
5 changed files with 28 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,21 @@
-------------------------------------------------------------------
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
3.1.12
======
support inheriting from empty NamedTuples
3.1.10
======
prevent test_v3.py from being run as main
3.1.9
=====
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):