Skip to content

pytest test discovery doesn't work well with a src layout without a build backend #347

@nathanjmcdougall

Description

@nathanjmcdougall

Motivation
If we create the pyproject.toml without a build backend then uv won't install the package in editable mode and so it won't be importable by pytest. Ideally the user wouldn't need to start with uv init --lib to get a smooth experience - it would be better that we default to including a build backend.

Summary of desired enhancement
Include a build backend by default when creating ensuring pyproject.toml.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions