Open NicholasPini opened 4 days ago
This isn't possible yet. Why isn't a workspace an option?
I see. I'm not using a workspace because I need all projects to be independent from each other and with their own venv folder.
Just an idea: (I'm not working for astral) Maybe you can create a gist and use curl to download your default pyproject.toml (or other template files) from a repo.
Example: (change the gist link with yours)
# Optionally after the 'uv init', you can copy the template with this command (or include 'uv init' inside the script)
bash <(curl -s https://gist.githubusercontent.com/sglbl/27d51879413b86a962455fb37594e2d3/raw/setup_template_for_uv.sh)
I am in the process of creating a bunch of projects that all require the same index settings and
constraint-dependencies
. I was wondering it is possible to create a project withuv init
and pass some kind of option to use a file as a template. I tried--config-file
passing auv.toml
with the following content:but it did nothing. Note that using a workspace is not an option for me.