Skip to content

Commit

Permalink
use a standard file to define the version read in setup.py
Browse files Browse the repository at this point in the history
old way was using a json item in the doc folder. It is deprecated as now all metadata about plugins is feteched from pypi simple
  • Loading branch information
seb5g committed Jul 25, 2022
1 parent 11b6958 commit 7f5abe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/pymodaq_plugin_manager/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.18

0 comments on commit 7f5abe3

Please sign in to comment.