Skip to main content

No project description provided

Project description

hatch-uvenv

This provides a plugin for Hatch that creates environments using UV's locked virtual environment capabilities for fast, reproducible Python dependency management.

Hatch project Lint PyPI version PyPI Supported Python Versions Downloads

Table of Contents

Installation

  • pyproject.toml

    [tool.hatch.env]
    requires = ["hatch-uvenv"]
    
  • hatch.toml

    [env]
    requires = ["hatch-uvenv"]
    

Configuration

The environment plugin name is uvenv.

  • pyproject.toml

    [tool.hatch.envs.<env_name>]
    type = "uvenv"
    
  • hatch.toml

    [envs.<env_name>]
    type = "uvenv"
    

Dependencies

UV's locked environments ensure that dependencies are installed in a fast and deterministic manner. The environment will resolve dependencies based on a lockfile, ensuring reproducibility.

Example config:

[envs.<ENV_NAME>]
uv-flags = [
  "--all-packages",
]
groups = [
  "dependency-group-1",
  "dependency-group-2",
]
features = [
  "feature-1",
  "feature-2",
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_uvenv-0.5.0.tar.gz (71.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_uvenv-0.5.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file hatch_uvenv-0.5.0.tar.gz.

File metadata

  • Download URL: hatch_uvenv-0.5.0.tar.gz
  • Upload date:
  • Size: 71.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatch_uvenv-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c630674e473fa0e228987bf200e4a0a236edff683e49774ad0eacab77fbd4f6e
MD5 236ac8fe5b397fa5634169f428f74f58
BLAKE2b-256 36deb5067088069e2349fa1d1ddf0d0a3173474b0dbdd0d74504f83ad7dedc01

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_uvenv-0.5.0.tar.gz:

Publisher: release.yml on djcopley/hatch-uvenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatch_uvenv-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: hatch_uvenv-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatch_uvenv-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbec7bfeb4f395271d3cda04723294dcc40077046f67c9df08e49c59484fb030
MD5 84a89e58dc22ee15d79afb6c6230d70c
BLAKE2b-256 6769bf03d3703d10308ec7021349236492df2761578127d52a96cbf46d74d9c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_uvenv-0.5.0-py3-none-any.whl:

Publisher: release.yml on djcopley/hatch-uvenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page