Fix building with Python 3.14; resolves: rhbz#2322719
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
This commit is contained in:
parent
66ec10d2b9
commit
8da4cb4fea
2 changed files with 15 additions and 1 deletions
11
django-compressor-py314-ast.diff
Normal file
11
django-compressor-py314-ast.diff
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -14,7 +14,7 @@ class VersionFinder(ast.NodeVisitor):
|
||||
|
||||
def visit_Assign(self, node):
|
||||
if node.targets[0].id == "__version__":
|
||||
- self.version = node.value.s
|
||||
+ self.version = node.value.value
|
||||
|
||||
|
||||
def read(*parts):
|
||||
|
|
@ -17,7 +17,10 @@ License: MIT
|
|||
URL: https://github.com/django-compressor/django-compressor
|
||||
Source0: %{pypi_source django_compressor}
|
||||
|
||||
Patch0: rdep-version.patch
|
||||
Patch: rdep-version.patch
|
||||
# Fix for https://github.com/django-compressor/django-compressor/issues/1270
|
||||
# https://github.com/django-compressor/django-compressor/pull/1271
|
||||
Patch: django-compressor-py314-ast.diff
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue