mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
Expand matching of requirements.txt file to include any prefixes or suffixes (#168)
* Expand matching of requirements.txt file to include any prefixes or suffixes Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com> * Add some test cases to integration test (ensure syft can pick up multiple requirements files) Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com> * Run lint-fix Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
This commit is contained in:
@@ -81,7 +81,13 @@ var cases = []struct {
|
||||
pkgType: pkg.PythonRequirementsPkg,
|
||||
pkgLanguage: pkg.Python,
|
||||
pkgInfo: map[string]string{
|
||||
"flask": "4.0.0",
|
||||
"flask": "4.0.0",
|
||||
"python-dateutil": "2.8.1",
|
||||
"python-swiftclient": "3.8.1",
|
||||
"pytz": "2019.3",
|
||||
"jsonschema": "2.6.0",
|
||||
"passlib": "1.7.2",
|
||||
"pathlib": "1.0.1",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
jsonschema==2.6.0
|
||||
passlib==1.7.2
|
||||
pathlib==1.0.1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
python-dateutil==2.8.1
|
||||
python-swiftclient==3.8.1
|
||||
pytz==2019.3
|
||||
Reference in New Issue
Block a user