Skip to content

feat: add pixi workspace requires-python set command#5584

Open
Hassnaa9 wants to merge 6 commits intoprefix-dev:mainfrom
Hassnaa9:feat/workspace-requires-python-set
Open

feat: add pixi workspace requires-python set command#5584
Hassnaa9 wants to merge 6 commits intoprefix-dev:mainfrom
Hassnaa9:feat/workspace-requires-python-set

Conversation

@Hassnaa9
Copy link
Copy Markdown

@Hassnaa9 Hassnaa9 commented Mar 1, 2026

Closes #2856

Adds a new CLI subcommand to set the requires-python field in pyproject.toml manifests from the command line:

pixi workspace requires-python set ">=3.10"

This avoids the need to manually edit the TOML file when changing the Python version requirement. Running the command on a pixi.toml manifest returns a clear error, as requires-python is a pyproject.toml-only field.

Copy link
Copy Markdown
Contributor

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a unit test to this PR? Otherwise look good to me!

@Hassnaa9
Copy link
Copy Markdown
Author

Could you add a unit test to this PR? Otherwise look good to me!

@baszalmstra Done!

@Hassnaa9 Hassnaa9 force-pushed the feat/workspace-requires-python-set branch from 7837a6a to ad4ace7 Compare March 18, 2026 08:38
@Hassnaa9 Hassnaa9 requested a review from baszalmstra March 18, 2026 08:54
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.

Add a pixi command to set requires-python version

2 participants