-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pip: Do not raise PathDependenciesNotReachable for missing setup.py #5392
Conversation
4c04a86
to
5e99b8a
Compare
Previously, Dependabot would assume that for every requirements.txt with a self-reference ('`-e .`), we should expect a `setup.py` to be present. The self-reference is considered a path dependency that needs a setup.py. However, nowadays it's valid to have a requirements.txt without a setup.py. This change accounts for that by still attempting to pull in a setup.py if it exists, but to not raise and error when it doesn't.
5e99b8a
to
e0b33c6
Compare
This is unrelated to other changes in this PR, but blinker released a new version today, and this breaks one of our tests. We should replace it with a reference to something we own, or lock the constraints so that we don't run into this, but this get's us green for now at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see this should work. Thanks for all the work you did here @jurre 😄
@jurre Do repositories automatically update to a new version of dependabot as soon as it is released? If so, not all problems seem to have been resolved 😅 I still get failing runs on https://github.com/DanielNoord/pydocstringformatter. proxy | 2022/07/20 15:59:55 [024] 404 https://api.github.com:443/repos/DanielNoord/pydocstringformatter/contents/setup.py?ref=fa41767f4a14fbd80464d084e6dcb62a00df44a3
updater | ERROR <job_422750561> Error during file fetching; aborting
updater | INFO <job_422750561> Finished job processing
updater | INFO Results:
updater | Dependabot encountered '1' error(s) during execution, please check the logs for more details.
updater | time="2022-07-20T15:59:56Z" level=info msg="task complete" container_id=job-422750561-file-fetcher exit_code=0 job_id=422750561 step=fetcher
updater | time="2022-07-20T15:59:56Z" level=warning msg="failed during fetch, skipping updater" job_id=422750561 Edit: Never mind I misread the git history on |
Yeah I'll try to get a release out in the next few days, but I'm currently traveling, so might be a little slower than normally |
Thanks @jurre this is now working as expected 😄 |
setup.py was removed in favor of setup.cfg in theupdateframework#1626 and re-added later in theupdateframework#1832 to work around a Dependabot issue theupdateframework#1828. This issue seems to have been fixed upstream in dependabot/dependabot-core#5392. Fixes theupdateframework#2089 Signed-off-by: Lukas Puehringer <[email protected]>
Previously, Dependabot would assume that for every requirements.txt with
a self-reference (
-e .
), we should expect asetup.py
to be present. Theself-reference is considered a path dependency that needs a setup.py.
However, nowadays it's valid to have a requirements.txt without a
setup.py. This change accounts for that by still attempting to pull in a
setup.py if it exists, but to not raise and error when it doesn't.
Closes #5324
Resolves #4483