UvModule

mill.pythonlib.UvModule
See theUvModule companion object
trait UvModule extends Module

Basic tasks for preparing a Python interpreter in a uv-managed virtual environment with the required dependencies installed.

Attributes

Companion
object
Source
UvModule.scala
Graph
Supertypes
trait Module
trait ModuleApi
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Known subtypes
trait PythonModule
trait Bare
trait RuffModule
object RuffModule
trait Pytest
trait Unittest
Show all

Members list

Type members

Inherited classlikes

object moduleInternal extends Internal

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Attributes

Inherited from:
Module
Source
Module.scala
Supertypes
class Internal
class Object
trait Matchable
class Any

Value members

Concrete methods

def indexes: Simple[Seq[String]]

Base URLs of Python package indexes to search, in priority order. The final URL is passed to uv as its lowest-priority default index.

Base URLs of Python package indexes to search, in priority order. The final URL is passed to uv as its lowest-priority default index.

Attributes

Source
UvModule.scala
def moduleDeps: Seq[UvModule]

The direct dependencies of this module.

The direct dependencies of this module.

Attributes

Source
UvModule.scala
def pythonDeps: Simple[Seq[String]]

Python dependencies to install. Each dependency uses the format accepted by uv pip install or a requirements.txt file.

Python dependencies to install. Each dependency uses the format accepted by uv pip install or a requirements.txt file.

Attributes

Source
UvModule.scala

Local, non-Mill Python projects to install as dependencies. Each directory should contain standard Python project metadata such as pyproject.toml. Use Task.Sources when overriding this so project contents participate in cache invalidation.

Local, non-Mill Python projects to install as dependencies. Each directory should contain standard Python project metadata such as pyproject.toml. Use Task.Sources when overriding this so project contents participate in cache invalidation.

Attributes

Source
UvModule.scala

Requirements files to install for this module.

Requirements files to install for this module.

Attributes

Source
UvModule.scala
def pythonToolDeps: Simple[Seq[String]]

Python dependencies used only as development tools, such as type checkers, linters, and bundlers.

Python dependencies used only as development tools, such as type checkers, linters, and bundlers.

Attributes

Source
UvModule.scala
def transitivePythonDeps: Simple[Seq[String]]

Python dependencies of this module and all upstream modules.

Python dependencies of this module and all upstream modules.

Attributes

Source
UvModule.scala

Local Python projects of this module and all upstream modules.

Local Python projects of this module and all upstream modules.

Attributes

Source
UvModule.scala

Requirements files of this module and all upstream modules.

Requirements files of this module and all upstream modules.

Attributes

Source
UvModule.scala

Direct wheels of this module and all upstream modules.

Direct wheels of this module and all upstream modules.

Attributes

Source
UvModule.scala

Python wheels to install directly. Local wheels should be declared here so their signatures participate in Mill cache invalidation.

Python wheels to install directly. Local wheels should be declared here so their signatures participate in Mill cache invalidation.

Attributes

Source
UvModule.scala
def uvChecksumUrl: Simple[String]

URL of the SHA-256 checksum for uvDownloadUrl.

URL of the SHA-256 checksum for uvDownloadUrl.

Attributes

Source
UvModule.scala
def uvDownloadUrl: Simple[String]

URL of the platform-specific uv archive Mill downloads.

URL of the platform-specific uv archive Mill downloads.

Attributes

Source
UvModule.scala

The uv executable used by this module. Mill downloads it once into the shared Coursier archive cache, verifies its SHA-256 checksum, and reuses it across builds.

The uv executable used by this module. Mill downloads it once into the shared Coursier archive cache, verifies its SHA-256 checksum, and reuses it across builds.

Attributes

Source
UvModule.scala
def uvIndexArgs: Simple[Seq[String]]

uv arguments that preserve the priority order declared by indexes.

uv arguments that preserve the priority order declared by indexes.

Attributes

Source
UvModule.scala

Arguments passed to uv pip install when preparing the environment.

Arguments passed to uv pip install when preparing the environment.

This is an escape hatch. Prefer overriding the higher-level dependency, local-project, wheel, requirements-file, or index tasks.

Attributes

Source
UvModule.scala
def uvVersion: Simple[String]

The uv version Mill downloads and uses.

The uv version Mill downloads and uses.

Attributes

Source
UvModule.scala

Inherited methods

Attributes

Inherited from:
BaseClass
Source
Module.scala
def moduleDir: Path

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Module -> Any
Inherited from:
Module
Source
Module.scala