AppThreat / atom

Atom is a novel intermediate representation for applications and a standalone tool that is powered by chen.
https://appthreat.com
Apache License 2.0
35 stars 2 forks source link

[Python] parsedeps command doesn't handle ~= #145

Closed prabhu closed 2 weeks ago

prabhu commented 2 weeks ago

https://github.com/AppThreat/atom/blob/9df44879b48639f933b10fb113878d2b71d58933/src/main/scala/io/appthreat/atom/parsedeps/PythonDependencyParser.scala#L28

Getting the below entry for this project

{
            "name": "dbt-core~=1.7,<1.8",
            "version": "",
            "versionSpecifiers": "",
            "importedSymbols": ""
        }

The fix will be similar to this commit. Add some unit tests and include the operator in the regex.