diff --git a/setup.py b/setup.py index 52b0218..80b8060 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ from setuptools import setup, find_packages import json +from pathlib import Path -with open('./src/pymodaq_plugin_manager/data/PluginList.json') as f: - version = json.load(f)['version'] +with open(str(Path(__file__).parent.joinpath(f'src/pymodaq_plugin_manager/VERSION')), 'r') as fvers: + version = fvers.read().strip() with open('README_base.md') as fd: long_description = fd.read() diff --git a/src/pymodaq_plugin_manager/VERSION b/src/pymodaq_plugin_manager/VERSION new file mode 100644 index 0000000..a618622 --- /dev/null +++ b/src/pymodaq_plugin_manager/VERSION @@ -0,0 +1 @@ +0.0.18 \ No newline at end of file