mill.pythonlib
Experimental uv-based toolchain for building Python apps using Mill's PythonModule. Supports publishing via pythonlib.PublishModule, linting via pythonlib.RuffModule, and code coverage via pythonlib.CoverageModule,
Attributes
Members list
Type members
Classlikes
A Python module whose source files live directly under moduleDir, without an additional src/ directory.
A Python module whose source files live directly under moduleDir, without an additional src/ directory.
Source files keep their workspace-relative paths on PYTHONPATH. For example, foo/bar.py is importable as foo.bar. Sources owned by nested Python modules are excluded automatically.
Attributes
- Source
- BarePythonModule.scala
- Supertypes
-
trait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Bare
Code coverage via Python's coverage package.
Code coverage via Python's coverage package.
** Note that this is a helper trait, and you are unlikely to use this directly. If you're looking for including coverage across tests in your project, please use CoverageTests instead! **
If you do want to use this module directly, please be aware that analyzing code coverage introduces "non-linear" changes to the execution task flow, and you will need to respect the following contract:
-
This trait defines a location where coverage data must be saved.
-
You need to define a
coverageTaskwhich is responsible for creating coverage data in the before mentioned location. How this is done is up to you. As an example, the CoverageTests module modifiespythonOptionsto prepend a-m coveragecommand line argument. -
This trait defines methods that will a) invoke the coverage task b) assume report data exists in the predefined location c) use that data to generate coverage reports.
Attributes
- Source
- CoverageModule.scala
- Supertypes
-
trait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait CoverageTests
Analyze code coverage, starting from tests.
Analyze code coverage, starting from tests.
Attributes
- Source
- CoverageModule.scala
- Supertypes
-
trait TestModuletrait CoverageModuletrait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Source
- PublishModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PublishModule.type
A python module which also defines how to build and publish source distributions and wheels.
A python module which also defines how to build and publish source distributions and wheels.
Attributes
- Companion
- object
- Source
- PublishModule.scala
- Supertypes
-
trait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Source
- PythonModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PythonModule.type
Attributes
- Companion
- object
- Source
- PythonModule.scala
- Supertypes
-
trait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait BarePythonModuletrait Baretrait CoverageModuletrait CoverageTeststrait PublishModuletrait RuffModuleobject RuffModuletrait Pytesttrait UnittestShow all
- Self type
Attributes
- Companion
- trait
- Source
- RuffModule.scala
- Supertypes
-
trait RuffModuletrait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuleclass ExternalModuleclass RootModule0trait BaseModuleApitrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Self type
-
RuffModule.type
Linting and formatting functionality provided by ruff.
Linting and formatting functionality provided by ruff.
Attributes
- Companion
- object
- Source
- RuffModule.scala
- Supertypes
-
trait PythonModuletrait JavaHomeModuletrait CoursierModuletrait DefaultTaskModuletrait UvModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object RuffModule
Attributes
- Companion
- trait
- Source
- TestModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TestModule.type
Attributes
- Companion
- object
- Source
- TestModule.scala
- Supertypes
- Known subtypes
Basic tasks for preparing a Python interpreter in a uv-managed virtual environment with the required dependencies installed.
Basic tasks for preparing a Python interpreter in a uv-managed virtual environment with the required dependencies installed.
Attributes
- Companion
- object
- Source
- UvModule.scala
- Supertypes
- Known subtypes
-
trait PythonModuletrait BarePythonModuletrait Baretrait CoverageModuletrait CoverageTeststrait PublishModuletrait RuffModuleobject RuffModuletrait Pytesttrait UnittestShow all
Attributes
- Companion
- trait
- Source
- UvModule.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
UvModule.type
Exports
Defined exports
Attributes
- Source
- exports.scala
Attributes
- Source
- exports.scala
Attributes
- Source
- exports.scala