Skip to content

PyPi packages and advisories are matched partially according to PEP503

Nick Ilieskou requested to merge python_pep_503 into master

What does this MR do?

  • Extends pythonGlob so that package names will match better with GLAD advisory paths. We do that by applying PEP503 between the dependencies scanned and the advisory paths. According to PEP503 _-. should be interpreted as - and all letters should be lower case. We make sure that we add . in the list of special characters.

  • Adds Unit test case for this specific case.

What are the relevant issue numbers?

gitlab-org/gitlab#440392 (comment 1829828183)

Does this MR meet the acceptance criteria?

Edited by Nick Ilieskou

Merge request reports