File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -559,9 +559,9 @@ def console_help(
559559 libname :str ): # name of library for console script listing
560560 "Show help for all console scripts from `libname`"
561561 from fastcore .style import S
562- from importlib . metadata import entry_points as ep_il
563- for e in ep_il ( group = 'console_scripts' ):
564- if e .value == libname or e .value .startswith (libname + '.' ):
562+ from pkg_resources import iter_entry_points as ep
563+ for e in ep ( 'console_scripts' ):
564+ if e .module_name == libname or e .module_name .startswith (libname + '.' ):
565565 nm = S .bold .light_blue (e .name )
566566 print (f'{ nm :45} { e .load ().__doc__ } ' )
567567
Original file line number Diff line number Diff line change 23572357 " libname:str): # name of library for console script listing\n " ,
23582358 " \" Show help for all console scripts from `libname`\"\n " ,
23592359 " from fastcore.style import S\n " ,
2360- " from importlib.metadata import entry_points as ep_il \n " ,
2361- " for e in ep_il(group= 'console_scripts'): \n " ,
2362- " if e.value == libname or e.value .startswith(libname+'.'): \n " ,
2360+ " from pkg_resources import iter_entry_points as ep \n " ,
2361+ " for e in ep( 'console_scripts'): \n " ,
2362+ " if e.module_name == libname or e.module_name .startswith(libname+'.'): \n " ,
23632363 " nm = S.bold.light_blue(e.name)\n " ,
23642364 " print(f'{nm:45}{e.load().__doc__}')\n "
23652365 ]
Original file line number Diff line number Diff line change 1- from packaging . version import Version
1+ from pkg_resources import parse_version
22from configparser import ConfigParser
33import setuptools ,re ,sys
4- assert Version (setuptools .__version__ )>= Version ('36.2' )
4+ assert parse_version (setuptools .__version__ )>= parse_version ('36.2' )
55
66# note: all settings are in settings.ini; edit there, not here
77config = ConfigParser (delimiters = ['=' ])
You can’t perform that action at this time.
0 commit comments