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

Add PEP-735 dependency groups #45

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Add PEP-735 dependency groups #45

merged 1 commit into from
Nov 3, 2024

Conversation

adisbladis
Copy link
Member

@adisbladis adisbladis commented Nov 3, 2024

This introduces a breaking change.

Previously dev-dependencies were remapped as optional dependencies, still named dev-dependencies:

virtualenv = editablePythonSet.mkVirtualEnv "hello-world-dev-env" {
  hello-world = [ "dev-dependencies" ];
};

Will now be written simply as dev, refering to a dependency group, and not an optional feature:

virtualenv = editablePythonSet.mkVirtualEnv "hello-world-dev-env" {
  hello-world = [ "dev" ];
};

This mirrors new Uv behaviour introduced in astral-sh/uv#8272. See pyproject-nix/pyproject.nix#170 for pyproject.nix changes.

Closes #43

This introduces a breaking change.

Previously `dev-dependencies` were remapped as optional dependencies, still named `dev-dependencies`:
``` nix
virtualenv = editablePythonSet.mkVirtualEnv "hello-world-dev-env" {
  hello-world = [ "dev-dependencies" ];
};
```

Will now be written simply as `dev`, refering to a dependency group, and not an optional feature:
``` nix
virtualenv = editablePythonSet.mkVirtualEnv "hello-world-dev-env" {
  hello-world = [ "dev" ];
};
```

This mirrors new Uv behaviour introduced in astral-sh/uv#8272.
See pyproject-nix/pyproject.nix#170 for pyproject.nix changes.
@adisbladis adisbladis force-pushed the pep735 branch 3 times, most recently from 6be59f6 to 7f9255b Compare November 3, 2024 09:42
@adisbladis adisbladis merged commit d22591b into master Nov 3, 2024
34 checks passed
@adisbladis adisbladis deleted the pep735 branch November 3, 2024 09:46
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

Successfully merging this pull request may close these issues.

support for PEP 735 (dependency-groups)
1 participant