File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# Note 1: added since, despite the (minimum) requirements during install, packages can be downgraded or removed later
1414# Note 2: deliberately not in a separate module, since this is the entry point of the package and dependencies already be used after
1515#
16+ from os .path import join , dirname , abspath
1617from configparser import ConfigParser
1718from importlib .metadata import version , PackageNotFoundError
1819from re import sub as re_sub , split as re_split
1920def normalize_version (v ):
2021 return [int (x ) for x in re_sub (r'(\.0+)*$' ,'' , v ).split ("." )]
2122
2223cf = ConfigParser ()
23- cf .read (' setup.cfg' )
24+ cf .read (join ( dirname ( abspath ( __file__ )), '..' , ' setup.cfg') )
2425require_lines = [x for x in cf .get ('options' , 'install_requires' ).strip ().splitlines ()]
2526
2627for req_line in require_lines :
You can’t perform that action at this time.
0 commit comments