
packaging 22.0 removed the LegacyVersion object which was the fallback when an invalid version was found. Now when an invalid version is found packaging raises and exception. This appears to be a problem for rolling release distros like Arch and Manjaro as they don't have versions. To fix this we catch the exception and set our object value to None. This will cause us to error later should we actually need the version for some reason. When we don't need it as with Arch/Manjaro we continue along just fine. Change-Id: Ic9ec6a3a492a7f95cf9d2865f88d79c6c5de796c
7 lines
187 B
Plaintext
7 lines
187 B
Plaintext
distro<1.7.0 ; python_version < '3.6'
|
|
distro>=1.7.0 ; python_version >= '3.6'
|
|
pbr>=2.0.0 # Apache-2.0
|
|
Parsley
|
|
packaging ; python_version >= '3.6'
|
|
packaging<21.0 ; python_version < '3.6'
|