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+ Fix show config when the package names are not in canonical form - by :user: `gaborbernat `.
Original file line number Diff line number Diff line change 22from collections import OrderedDict
33
44from packaging .requirements import Requirement
5- from packaging .utils import canonicalize_name
65from six import StringIO
76from six .moves import configparser
87
@@ -65,16 +64,15 @@ def version_info(parser):
6564 while to_visit :
6665 current = to_visit .pop ()
6766 current_dist = importlib_metadata .distribution (current )
68- current_name = canonicalize_name ( current_dist .metadata ["name" ])
67+ current_name = current_dist .metadata ["name" ]
6968 versions [current_name ] = current_dist .version
7069 if current_dist .requires is not None :
7170 for require in current_dist .requires :
7271 pkg = Requirement (require )
73- pkg_name = canonicalize_name (pkg .name )
7472 if (
7573 pkg .marker is None or pkg .marker .evaluate ({"extra" : "" })
76- ) and pkg_name not in versions :
77- to_visit .add (pkg_name )
74+ ) and pkg . name not in versions :
75+ to_visit .add (pkg . name )
7876 set_section (parser , "tox:versions" , versions )
7977
8078
You can’t perform that action at this time.
0 commit comments