File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from importlib .metadata import version
12from pathlib import Path
23
3- import toml
44from appdirs import user_cache_dir
55
66__all__ = [
1313 'DEFAULT_FORMAT_ONTOLOGY' ,
1414]
1515
16- # Read package information from pyproject.toml
17- _PYPROJECT_PATH = Path (__file__ ).parents [2 ] / 'pyproject.toml'
18- with open (_PYPROJECT_PATH ) as f :
19- _PYPROJECT = toml .load (f )
20-
21- # Extract package metadata
22- PACKAGE_NAME = _PYPROJECT ['project' ]['name' ]
23- PACKAGE_VERSION = _PYPROJECT ['project' ]['version' ]
16+ # Package metadata from installed package
17+ PACKAGE_NAME = 'ontograph'
18+ PACKAGE_VERSION = version (PACKAGE_NAME )
2419
2520# Use package name (ontograph) from `pyproject.toml`` for cache directory
2621DEFAULT_CACHE_DIR = Path (
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ classifiers = [
2828 " Topic :: Scientific/Engineering :: Bio-Informatics"
2929]
3030dependencies = [
31- " toml" ,
3231 " pronto" ,
3332 " pooch[progress]" ,
3433 " pyyaml" ,
You can’t perform that action at this time.
0 commit comments