Skip to content
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

rye dev dependencies are not updated by Dependabot #1042

Open
evanbernstein opened this issue Apr 24, 2024 · 4 comments
Open

rye dev dependencies are not updated by Dependabot #1042

evanbernstein opened this issue Apr 24, 2024 · 4 comments

Comments

@evanbernstein
Copy link

Steps to Reproduce

  1. Add dev dependencies via rye that are stale.
  2. Configure Dependabot to use pip

Does Rye not document dev dependencies in pyproject.toml according to PEP621?

Expected Result

Dependabot will offer to upgrade stale dev dependencies. Its documentation says "In addition to supporting updates to requirements.txt files, Dependabot supports updates to pyproject.toml files if they follow the PEP 621 standard."

Actual Result

Dependabot does not offer to upgrade dev dependencies configured via Rye.

Version Info

0.32

Stacktrace

No response

@charliermarsh
Copy link
Member

I don't think there's a good solution here since PEP 621 doesn't have support for development dependencies -- hence, Rye uses its non-standard tool.rye.dev-dependencies field. PEP 621 supports optional dependencies but those aren't quite the same thing, since they're included in the published package metadata.

@zanieb
Copy link
Member

zanieb commented Apr 24, 2024

I feel like #504 may be a better place for this. Last I saw, Dependabot wasn't adding support for more tools and there's no standard place to put development dependencies. What action can be taken here?

@evanbernstein
Copy link
Author

Thanks for the response @charliermarsh . I was afraid the answer was something like that, given my skim of PEP 621 (which was the first time I tried to read a PEP).

It seems like a solution is needed? I can use pipenv and have its dev dependencies updated, but, in all other respects, rye is suppier to pipenv except it doesn't play nice with Dependabot. Is this on the team's radar to address? Are you in communication with the Dependabot team at all?

@zanieb
Copy link
Member

zanieb commented Apr 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants