liveBook · Manning

Uv

As explained in Python Workout, Second Edition

uv is a Python project and package management tool that can manage Python versions, environments, builds, and package publishing.

uv is a Python project and package management tool that streamlines configuring, creating, and distributing packages. It manages Python versions, virtual environments, dependencies, builds, and publishing. section 9.9

uv supports the main tasks involved in sharing a Python distribution package:

  • Download and install Python versions. section 9.9
  • Configure virtual environments so package requirements do not interfere with one another. section 9.9
  • Build distribution packages and publish them to PyPI. section 9.9

Building and publishing a package

After registering for a PyPI account, run `uv build` to create a distribution package and `uv publish` to submit it to PyPI. Configure metadata such as the version, license, and dependencies in `pyproject.toml`. section 9.9

How Python Workout, Second Edition covers it

How deep it goes
Describes uv’s capabilities and names build and publish commands, but defers detailed configuration and workflow steps.
Examples
Uses uv build, uv publish, PyPI registration, and pyproject.toml metadata as concrete workflow examples.
What it assumes
Assumes package terminology while distinguishing distribution packages from the Python packages contained inside them.
What you can do after
Operate uv to build distribution packages and publish them to PyPI.
How it connects
Connects distribution packages with Python packages, virtual environments, dependencies, pyproject.toml, and PyPI.

Also explained in

Compare how 3 books explain uv →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Python Workout, Second Edition. The section links point to the parts of the book it draws on.