Skip to content

Commit da00165

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Replace use of distutils.version"
2 parents da01c0e + 2d88770 commit da00165

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

global-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PyMySQL # MIT License
132132
pyOpenSSL # Apache-2.0
133133
pyparsing # MIT
134134
pyroute2!=0.5.4,!=0.5.5,!=0.7.1,!=0.9.1,!=0.9.2,!=0.9.3,!=0.9.4;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
135-
pysaml2!=4.0.3,!=4.0.4,!=4.0.5,!=4.0.5rc1,!=4.1.0,!=4.2.0,!=4.3.0,!=4.4.0,!=4.6.0 # Apache-2.0
135+
pysaml2!=4.0.3,!=4.0.4,!=4.0.5rc1,!=4.0.5,!=4.1.0,!=4.2.0,!=4.3.0,!=4.4.0,!=4.6.0 # Apache-2.0
136136
pysnmp-lextudio # BSD
137137
pystache # MIT
138138
# Only required for sasl/binary protocol

openstack_requirements/requirement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# This module has no IO at all, and none should be added.
1616

1717
import collections
18-
import distutils.version
1918
import packaging.specifiers
19+
import packaging.version
2020
import pkg_resources
2121
import re
2222

@@ -26,7 +26,7 @@ def key_specifier(a):
2626
'===': 1, '==': 1, '~=': 1, '!=': 1,
2727
'<': 2, '<=': 2}
2828
a = a._spec
29-
return (weight[a[0]], distutils.version.LooseVersion(a[1]))
29+
return (weight[a[0]], packaging.version.parse(a[1]))
3030

3131

3232
class Requirement(collections.namedtuple('Requirement',

0 commit comments

Comments
 (0)