File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ Officially deprecated PEP 440 non-compliant versions.
Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ def parse_version(v):
113
113
try :
114
114
return packaging .version .Version (v )
115
115
except packaging .version .InvalidVersion :
116
+ warnings .warn (
117
+ f"{ v } is an invalid version and will not be supported in "
118
+ "a future release" ,
119
+ PkgResourcesDeprecationWarning ,
120
+ )
116
121
return packaging .version .LegacyVersion (v )
117
122
118
123
Original file line number Diff line number Diff line change @@ -31,3 +31,6 @@ filterwarnings=
31
31
# https://github.com/pypa/setuptools/issues/917
32
32
ignore:setup.py install is deprecated.
33
33
ignore:easy_install command is deprecated.
34
+
35
+ # https://github.com/pypa/setuptools/issues/2497
36
+ ignore:.* is an invalid version and will not be supported::pkg_resources
You can’t perform that action at this time.
0 commit comments