Allow Python projects that only have a setup.py#5324
Allow Python projects that only have a setup.py#5324DanielNoord wants to merge 1 commit intodependabot:mainfrom DanielNoord:patch-1
setup.py#5324Conversation
|
Thanks @DanielNoord, I can look into adding a test for this ^^ |
|
While trying to reproduce this in order to write a test, and I can't seem to 😅 do yo have a repo handy where this is happening? |
|
Shameless plug of my own repo: https://github.com/DanielNoord/pydocstringformatter 😄 The base repositories of Edit: @jurre Not sure if you have need any privileges to get access to logs of dependabot runs. But if so, please give a shout. I'll gladly add you to get this resolved 😄 |
|
Thanks! I can just point a local version dependabot at those public repo's to debug further, this should get me unstuck 👍 |
|
@DanielNoord should the title of this PR be: |
I haven't tested that, but that could be the case. To give some background. The ecosystem is moving towards putting everything in The title should probably be |
|
Thanks for that context! It seems like only a pyproject.toml and only a setup.cfg are already working as expected, there's tests for those cases as well: |
|
Ah ok so for your repo it seems Dependabot wants to fetch a setup.py because there is a |
No! I think there is no case where See: This is the tool that originally created the need for Dependabot shouldn't really care about whether somebody wants "editable installs" so as far as I can see there is no need for any type of checking whether a |
Yeah I agree, however this code is currently lumped in with the code that pulls in path dependencies, so it's a little tricky to get it to always behave correctly, and I don't think my proposed fix really cuts it, because it assumes there is always a |
No, that's indeed not correct. I'm trying to find an example of a package that doesn't have this but I can't quickly find one. Probably because many project have kept either of those files around to make sure they keep getting dependabot updates 😄 |
|
@DanielNoord I had to dig a bit deeper and eventually was able to fix it here: #5392 Would you mind taking a look at this, especially interested if I've described the problem correctly and if my assumptions on the pip side are correct. |
|
I'll close this as it is superseded by #5392. |
Closes #4483
Based on the solution provided by @jurre in #4483 (comment).
As I said in #4483 (comment) if I could get some guidance I'd happily provide tests or additional information, but I have no experience with Ruby so I don't really know how to.
However, as the Python ecosystem is moving away from
setup.pyI really think this change should be landed. Hopefully by providing the PR we can get some traction on the issue. If this is not the preferred way to do so, please feel free to close.