Skip to content

Conversation

@JSimmsDev
Copy link

This pull request migrates the Python environment management workflow from pyenv to the much faster and simpler uv tool. It updates the CLI commands, refactors the setup and removal logic, and revises the documentation to reflect this new approach. The changes streamline developer onboarding and workspace management, making Python environment handling more reliable and efficient.

Documentation and Workflow Updates:

  • Updated README.md to document the new UV-based workflow, including installation steps, environment creation, and migration instructions from pyenv. [1] [2]

CLI Command Changes:

  • Replaced the pyenv-install command with a new uv-install command in the CLI, and updated the corresponding handler to install UV via Homebrew or the official script. [1] [2]

Python Environment Management:

  • Refactored the environment setup logic in python_setup to use uv for Python installation, virtual environment creation, requirements installation, and pre-commit setup, replacing all previous pyenv/virtualenv logic.
  • Updated the environment removal logic to delete the .venv directory and clean up .python-version if present, removing all pyenv-specific commands.

Then install timeout-tools globally:

```
sudo pip3 install git+https://github.com/timeoutdigital/timeout-tools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sudo pip3 install git+https://github.com/timeoutdigital/timeout-tools
uv tool install git+https://github.com/timeoutdigital/timeout-tools

?

@kthhrv
Copy link
Contributor

kthhrv commented Oct 1, 2025

testing locally

$ uv tool install git+https://github.com/timeoutdigital/timeout-tools@feature-add-uv

@kthhrv
Copy link
Contributor

kthhrv commented Oct 1, 2025

chicken and the egg, use timeout-tools to install UV or use UV to install timeout-tools :)

@kthhrv
Copy link
Contributor

kthhrv commented Oct 1, 2025

need a solution for activating .venv when you cd in to a ws

@kthhrv kthhrv mentioned this pull request Oct 23, 2025
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.

3 participants