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]
    require = ["hatch-uvenv"]
    
  • hatch.toml

    [env]
    require = ["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.4.0.tar.gz (68.2 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.4.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hatch_uvenv-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3c911f4ce92695fb0080af7796a181ca81d21f09ab774834357612277c79ceef
MD5 f51329dc6055663a4da7aba15bc71087
BLAKE2b-256 9c87901a394d3a227be2910326a6acff334a695ea35d309ff05da24ea4d7e9d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_uvenv-0.4.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.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hatch_uvenv-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e22e91ac4e60afff589f7967748374391224e19a7d1c8aeccd78a992b4a3b583
MD5 ebb46278065946e47ee6ea32c6b01acd
BLAKE2b-256 2c67922857f9d423e442aa7351b109d8bf9f3765303994275d506cde2e10dfc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_uvenv-0.4.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