Skip to content

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)

2 participants