head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.06.26.06.35.07; author adam; state Exp; branches; next ; commitid wKv0xgyzfj4Y3hLG; desc @@ 1.1 log @py-filebytes: updated to 0.10.2 0.10.2 Unknown changes @ text @$NetBSD$ Fix build with Python 3.14. --- setup.py.orig 2026-06-26 06:30:14.167210318 +0000 +++ 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) @