Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
Use dev dependency-group#14085
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Use dev dependency-group#14085
Conversation
According tomypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
- name: Run mypy_primer | ||
shell: bash | ||
run: | | ||
cd typeshed_to_test | ||
MYPY_VERSION=$(grep mypy==requirements-tests.txt| cut -d = -f 3) | ||
MYPY_VERSION=$(python3 -m dependency_groups dev |grep mypy== | cut -d = -f3) |
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.
An alternative that is less "correct" but doesn't depend ondependency_groups
and is still pretty solid to random spaces
MYPY_VERSION=$(python3 -m dependency_groups dev | grepmypy== | cut -d = -f3) | |
MYPY_VERSION=$(grep -E 'mypy\s+?==' pyproject.toml | awk -F '[ ="]+' '{print $3}') |
Akuli commentedMay 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't like how this makes using Edit: I guess |
Avasam commentedMay 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The reason this is draft is because at the moment it would only work with uv OR pip. Because uv doesn't support (yet?) relative file paths in dependencies. So there's no way to configure dependency groups to satisfy both tools. |
Uh oh!
There was an error while loading.Please reload this page.
Wouldclose#13974, but as previously mentioned, there's some blockers from uv:
AFAIK there's currently no way to have a dependency group with local files be both pip and uv compatible: