Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
21c25210
Commit
21c25210
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
refactor: reduce setup.py warnings
parent
46f2c582
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/manager/pip_setup/extract.js
+2
-4
2 additions, 4 deletions
lib/manager/pip_setup/extract.js
with
2 additions
and
4 deletions
lib/manager/pip_setup/extract.js
+
2
−
4
View file @
21c25210
...
@@ -58,12 +58,10 @@ async function extractSetupFile(content, packageFile, config) {
...
@@ -58,12 +58,10 @@ async function extractSetupFile(content, packageFile, config) {
err
.
message
.
includes
(
'
No such file or directory
'
)
&&
err
.
message
.
includes
(
'
No such file or directory
'
)
&&
!
config
.
gitFs
!
config
.
gitFs
)
{
)
{
logger
.
debug
({
err
},
'
setup.py extraction error
'
);
logger
.
warn
(
throw
new
Error
(
'
File not found error when extracting setup.py. Ask your Renovate administrator to enable gitFs and try again
'
'
File not found error when extracting setup.py. Ask your Renovate administrator to enable gitFs and try again
'
);
);
}
}
logger
.
warn
({
err
},
'
Error extracting setup.py
'
);
throw
err
;
throw
err
;
}
}
// istanbul ignore if
// istanbul ignore if
...
@@ -82,7 +80,7 @@ async function extractPackageFile(content, packageFile, config) {
...
@@ -82,7 +80,7 @@ async function extractPackageFile(content, packageFile, config) {
try
{
try
{
setup
=
await
extractSetupFile
(
content
,
packageFile
,
config
);
setup
=
await
extractSetupFile
(
content
,
packageFile
,
config
);
}
catch
(
err
)
{
}
catch
(
err
)
{
logger
.
warn
({
err
},
'
Failed to read setup file
'
);
logger
.
warn
({
err
},
'
Failed to read setup
.py
file
'
);
return
null
;
return
null
;
}
}
const
requires
=
[];
const
requires
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment