File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
analyzer/language/python/packaging Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ const version = 1
21
21
22
22
var (
23
23
requiredFiles = []string {
24
- // egg
24
+ // .egg format
25
+ // https://setuptools.readthedocs.io/en/latest/deprecated/python_eggs.html#eggs-and-their-formats
26
+ "EGG-INFO/PKG-INFO" ,
27
+
28
+ // .egg-info format: .egg-info can be a file or directory
29
+ // https://setuptools.readthedocs.io/en/latest/deprecated/python_eggs.html#eggs-and-their-formats
25
30
".egg-info" ,
26
31
".egg-info/PKG-INFO" ,
27
32
Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ func Test_packagingAnalyzer_Required(t *testing.T) {
113
113
filePath string
114
114
want bool
115
115
}{
116
+ {
117
+ name : "egg" ,
118
+ filePath : "python2.7/site-packages/cssutils-1.0-py2.7.egg/EGG-INFO/PKG-INFO" ,
119
+ want : true ,
120
+ },
116
121
{
117
122
name : "egg-info" ,
118
123
filePath : "python3.8/site-packages/wrapt-1.12.1.egg-info" ,
You can’t perform that action at this time.
0 commit comments