Skip to content

feat(poly env): new command for build backends without support for multiple module roots or hooks - #403

Merged
DavidVujic merged 7 commits into
mainfrom
build-backend-workspace-without-hooks
Nov 23, 2025
Merged

DavidVujic merged 7 commits into
mainfrom
build-backend-workspace-without-hooks

Conversation

@DavidVujic

@DavidVujic DavidVujic commented Nov 23, 2025 •

Copy link
Copy Markdown
Owner

Description

Adding a new command - poly env setup - for Package & Dependency management tools without support for multiple module roots or hooks. This command will add the bases and components paths to the current virtual environment.

Motivation and Context

See discussion #402

Users of uv that also use the uv build backend cannot set bases and components as module roots, or dev mode dirs as it is called in Hatch/Hatchling, because the uv build backend has no support for it. Also, his build backend has no support for hooks.

Uv build backend users can now add the needed folders into the current virtual environment by combining the uv sync command with this new command:

uv sync
uv run poly env setup

How Has This Been Tested?

✅ CI
✅ local run of the command

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

@DavidVujic
DavidVujic force-pushed the build-backend-workspace-without-hooks branch from 239400d to 67b9f28 Compare November 23, 2025 19:45
@DavidVujic
DavidVujic force-pushed the build-backend-workspace-without-hooks branch from f0cc22c to a47b089 Compare November 23, 2025 19:50
@sonarqubecloud

Copy link
Copy Markdown

@DavidVujic
DavidVujic merged commit f0e54f7 into main Nov 23, 2025
4 checks passed
@DavidVujic
DavidVujic deleted the build-backend-workspace-without-hooks branch November 23, 2025 20:05
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.

1 participant