From 2e35cb2a0b4aca6500ab9294b7652116d0c65747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Tue, 23 Jul 2024 10:52:30 +0200 Subject: [PATCH] fix --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index dae2d50..1bb02bb 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,8 @@ import os import re from setuptools import setup, find_packages -def read_version(): - with open(os.path.join(os.path.dirname(__file__), 'labhw', '__init__.py')) as f: +def read_version(name): + with open(os.path.join(os.path.dirname(__file__), name, '__init__.py')) as f: for line in f: match = re.match(r"^__version__ = ['\"]([^'\"]*)['\"]", line) if match: @@ -24,7 +24,7 @@ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: setup( name = 'labhw', - version = '0.1.1', + version = read_version('labhw'), author = "Francois Boulogne", license = "BSD", author_email = "devel@sciunto.org",