Skip to main content

Hatch plugin for ci system versioning

Project description

hatch-ci

PyPI version Python versions Build Coverage

code style - black License - MIT


This provides a plugin to Hatch leveraging a CI/CD system (github at the moment) to deliver packages to PyPi.

NOTE: this is heavily inspired from hatch-vcs

Table of Contents

Global dependency

Ensure hatch-ci is defined within the build-system.requires field in your pyproject.toml file.

[build-system]
requires = ["hatchling", "hatch-ci"]
build-backend = "hatchling.build"

Version source

The version source plugin name is ci.

  • pyproject.toml

    [tool.hatch.version]
    source = "ci"
    
  • hatch.toml

    [version]
    source = "ci"
    

Version source options

  • pyproject.toml

    [tool.hatch.version]
    version-file = "src/hatch_ci/__init__.py"
    
  • hatch.toml

    [build.version]
    version-file = "src/hatch_ci/__init__.py"
    
Option Type Default Description
version-file str None A file where to write version/hash variables

License

hatch-ci is distributed under the terms of the MIT license.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

hatch_ci-0.0.2.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

hatch_ci-0.0.2-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

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