Fix building with Python 3.14; resolves: rhbz#2322719

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
This commit is contained in:
Michel Lind 2024-12-20 16:52:55 -06:00
commit 8da4cb4fea
No known key found for this signature in database
GPG key ID: 8B229D2F7CCC04F2
2 changed files with 15 additions and 1 deletions

View 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):

View file

@ -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