aws / aws-lambda-builders

Python library to compile, build & package AWS Lambda functions for several runtimes & framework
Apache License 2.0
334 stars 139 forks source link

fix: Updated regex to match newer pip output #490

Closed lucashuy closed 1 year ago

lucashuy commented 1 year ago

Issue #, if available:

489

Description of changes: Newer versions of pip updated the output of pip download, causing our local package logic to fail.

pip 23.0

...
Processing ./package_a
...

pip 23.1

...
Processing ./package_a (from 123==1.1.1->-r requirements.txt (line 1))
...

This change updates the regex to stop at a space, or a newline, which ever appears first.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.