summaryrefslogtreecommitdiff
path: root/dev-python/filebytes/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-21 23:00:32 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-21 23:00:32 +0000
commit99f39a7cabc52da78c2ca314f1427cb76f0ffe63 (patch)
treeb730100803af795906e3f2f967d630c3b1a5015c /dev-python/filebytes/files
parent7a9d8caa231727ec9a1f2581be86973de06b58e4 (diff)
downloadbaldeagleos-repo-99f39a7cabc52da78c2ca314f1427cb76f0ffe63.tar.gz
baldeagleos-repo-99f39a7cabc52da78c2ca314f1427cb76f0ffe63.tar.xz
baldeagleos-repo-99f39a7cabc52da78c2ca314f1427cb76f0ffe63.zip
Adding metadata
Diffstat (limited to 'dev-python/filebytes/files')
-rw-r--r--dev-python/filebytes/files/filebytes-0.10.2-py314.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/filebytes/files/filebytes-0.10.2-py314.patch b/dev-python/filebytes/files/filebytes-0.10.2-py314.patch
new file mode 100644
index 000000000000..09f6b8f69f0e
--- /dev/null
+++ b/dev-python/filebytes/files/filebytes-0.10.2-py314.patch
@@ -0,0 +1,41 @@
+https://github.com/sashs/filebytes/commit/469058d50d4b7ff8da54b623a0a1aa972cd78dc6
+
+From 469058d50d4b7ff8da54b623a0a1aa972cd78dc6 Mon Sep 17 00:00:00 2001
+From: Seva Alekseyev <sevaa@nih.gov>
+Date: Thu, 4 Dec 2025 11:24:19 -0500
+Subject: [PATCH] No more hand parsing __init__ for VERSION
+
+---
+ setup.py | 22 ++--------------------
+ 1 file changed, 2 insertions(+), 20 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index d2d7cdb..5890e5a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,22 +1,4 @@
+ from setuptools import setup
+-import ast
+-import os
+-currentDir = os.path.dirname(os.path.abspath(__file__))
+-#currentDir = Path(__file__).parent
++from filebytes.__init__ import VERSION
+
+-def extractMetaInfo(src):
+- info = {}
+- a=ast.parse(src)
+- for e in a.body:
+- if isinstance(e, ast.Assign) and isinstance(e.value, ast.Str):
+- info[e.targets[0].id] = e.value.s
+- return info
+-
+-text = ''
+-with open(currentDir +os.path.sep+"filebytes"+ os.path.sep+"__init__.py") as f:
+- text = f.read()
+-
+-version = extractMetaInfo(text)["VERSION"]
+-
+-
+-setup(version=version)
++setup(version=VERSION)
+