Use uv `centralized-project-envs` preview instead of `UV_PROJECT_ENVIRONMENT`

Open Beginner friendly
#348 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
devops

Research direction

Start with .devcontainer/devcontainer.json, especially the settings linked at lines 16-29, and check the uv centralized-project-envs preview once the required uv release is available in ubuntu-devcontainer. Remove the obsolete settings and verify that uv stores project virtual environments in its cache directory.

Written by the indexing model from the issue text.

Description

When https://github.com/astral-sh/uv/pull/18214 is released, then we will be able to get uv to store its venvs in its cache directory. This means we should be able to remove the following settings:
https://github.com/DiamondLightSource/python-copier-template/blob/7fa903a148c16baa5e14371ded403f61cc45f8fd/.devcontainer/devcontainer.json#L16-L29

This ticket is to try this out when a new uv is released and available in ubuntu-devcontainer

Dominant language
Jinja
Stars
28
Forks
10
Avg merge
3d 4h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/python-copier-template

All issues in DiamondLightSource/python-copier-template

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.