You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I recently observed some unexpected behavior with packaging 22.0 where version.parse will throw an exception when multiple comma-separated version numbers are provided to the function.
To repro:
from packaging.version import parse
print(parse('0.10.1,<0.11'))
Executing this with packaging 21.3 will return the expected output:
0.10.1,<0.11
Whereas executing this with packaging 22.0 will throw an InvalidVersion exception:
Hello, I recently observed some unexpected behavior with packaging 22.0 where
version.parse
will throw an exception when multiple comma-separated version numbers are provided to the function.To repro:
Executing this with packaging 21.3 will return the expected output:
Whereas executing this with packaging 22.0 will throw an InvalidVersion exception:
Was this an intended change? For context, please see
transformers
for a live example where this is relevant: https://github.com/huggingface/transformers/blob/main/src/transformers/dependency_versions_table.pyThank you for your attention regarding this issue.
The text was updated successfully, but these errors were encountered: