pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.66k stars 141 forks source link

LegacyVersion dropped of the package packaging #437

Closed carlosdorneles-mb closed 1 year ago

carlosdorneles-mb commented 1 year ago

Description

In the most current version of the Safety package, the LegacyVersion function of the Packaging package is being used and starting from version 22 of Packaging, this has been removed.

What I Did

When running the command on github CI it is raising the error cannot import name 'LegacyVersion' from 'packaging.version'

image

Jwomers commented 1 year ago

Hi @carlosdorneles-mb we're working on a fix for this asap, and should have it done in the next few hours or sooner. We'll keep you updated. cc @DragosChirila

yeisonvargasf commented 1 year ago

I'm closing this because Safety 2.3.4 is available in PyPI with a fix for this issue; thank you for the report @carlosdorneles-mb and @DragosChirila!