forked from pool/python-slimit
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| dcd0164d43 | |||
| b3c17e9f2d | |||
| 6394150a24 | |||
| c6b78e8767 |
13
py313-makesuite.patch
Normal file
13
py313-makesuite.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: slimit-0.8.1/src/slimit/tests/test_lexer.py
|
||||
===================================================================
|
||||
--- slimit-0.8.1.orig/src/slimit/tests/test_lexer.py
|
||||
+++ slimit-0.8.1/src/slimit/tests/test_lexer.py
|
||||
@@ -286,7 +286,7 @@ for index, (input, expected) in enumerat
|
||||
|
||||
def test_suite():
|
||||
return unittest.TestSuite((
|
||||
- unittest.makeSuite(LexerTestCase),
|
||||
+ unittest.defaultTestLoader.loadTestsFromTestCase(LexerTestCase),
|
||||
doctest.DocFileSuite(
|
||||
'../lexer.py',
|
||||
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS
|
||||
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 19 11:26:56 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- add remove-2to3.patch to fix build with Python 3.14
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 10:30:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add py313-makesuite.patch to fix unittest.makeSuite removal
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 04:53:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-slimit
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,6 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/s/slimit/slimit-%
|
||||
Patch0: python-slimit-add-licence.patch
|
||||
# https://github.com/rspivak/slimit/commit/40956e7fc6e954b3e6d7b629faeb3303f5efb7ea
|
||||
Patch1: python-slimit-fix-python3.patch
|
||||
Patch2: py313-makesuite.patch
|
||||
# PATCH-FIX-UPSTREAM remove-2to3.patch
|
||||
Patch3: remove-2to3.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module ply >= 3.4}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
|
||||
16
remove-2to3.patch
Normal file
16
remove-2to3.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Index: slimit-0.8.1/setup.py
|
||||
===================================================================
|
||||
--- slimit-0.8.1.orig/setup.py
|
||||
+++ slimit-0.8.1/setup.py
|
||||
@@ -23,11 +23,6 @@ if major == 2 and minor <=6:
|
||||
requirements.append('odict')
|
||||
if major == 3:
|
||||
PYTHON3 = True
|
||||
- try:
|
||||
- import lib2to3 # Just a check--the module is not actually used
|
||||
- except ImportError:
|
||||
- print("Python 3.X support requires the 2to3 tool.")
|
||||
- sys.exit(1)
|
||||
|
||||
def read(*rel_names):
|
||||
return open(os.path.join(os.path.dirname(__file__), *rel_names)).read()
|
||||
Reference in New Issue
Block a user