File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33__all__ = ["Version" ]
44
5- from distutils .version import StrictVersion
5+ from packaging .version import Version as PackagingVersion
66
77from . import Object , ObjectField , ObjectType
88
99
1010def parse_version (version ):
11- return StrictVersion (version ).version
11+ return PackagingVersion (version ).release
1212
1313
1414class VersionType (ObjectType ):
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ python_standard_libs = [
9696 'difflib' ,
9797 'dircache' ,
9898 'dis' ,
99- 'distutils' ,
10099 'dl' ,
101100 'doctest' ,
102101 'DocXMLRPCServer' ,
@@ -203,6 +202,7 @@ python_standard_libs = [
203202 'optparse' ,
204203 'os' ,
205204 'ossaudiodev' ,
205+ 'packaging' ,
206206 'parser' ,
207207 'pathlib' ,
208208 'pdb' ,
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def read(filename):
5454 "colorclass >= 1.2.0" ,
5555 "macaroonbakery >= 1.1.3" ,
5656 "oauthlib >= 1.0.3" ,
57+ "packaging >= 21.3" ,
5758 "pymongo >= 3.5.1" , # for bson
5859 "pytz >= 2014.10" ,
5960 "PyYAML >= 3.11" ,
You can’t perform that action at this time.
0 commit comments