Open NADOOITChristophBa opened 3 weeks ago
BeeWare/Briefcase maintainer here. Definitely keen to work with Astral/uv maintainers on anything related to Briefcase integration; the exact form of that integration is the open question.
I wouldn't necessarily recommend adding support for Briefcase's configuration conventions to uv. I'd argue it's likely better for Briefcase to support uv's conventions, and use uv internally. beeware/briefcase#1367 is an existing ticket asking for Poetry support in Briefcase; I imagine the uv-based approach would be similar.
The constraint on this is usually whether the installation tool can support four key features:
To date, I haven't done any exploration of uv to know the current state of these features. If they already exist, then it might be possible to add uv support to Briefcase.
Title: Compatibility with Briefcase Projects: Support for New Configuration File
Issue Description:
I am working on a project using Briefcase and encountered compatibility issues when trying to integrate
uv
. The main problem arises from the different configurations expected byuv
and Briefcase, specifically in thepyproject.toml
file.Problem Description
Project Structure: Briefcase projects have a specific structure where the
pyproject.toml
file is located in the root directory. Here's a simplified version of the structure:Configuration Differences:
[tool.briefcase]
section in thepyproject.toml
file.[project]
section and a[tool.uv]
section for dependencies.Steps to Reproduce
uv
command, e.g.,uv add ruff
.pyproject.toml
file does not have the expected[project]
table.Error Messages
When running
uv add ruff
in the project root:When running
uv add ruff
in theproject_name
subdirectory:Proposed Solution
To resolve this compatibility issue, I propose the following:
uv
to recognize a new configuration file in the base folder that can be used to specify the[project]
and[tool.uv]
sections. This file could be nameduv.toml
or similar.pyproject.toml
without conflicts.Additional Information
uv add ruff
Thank you for considering this feature request. This enhancement would greatly improve the integration of
uv
with projects managed by Briefcase, allowing for more seamless development workflows.