Hatch plugin for ci system versioning
Project description
hatch-ci
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.3b10.tar.gz
(92.8 kB
view hashes)
Built Distribution
Close
Hashes for hatch_ci-0.0.3b10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d893f4212db79b35bdab51a417e741e1d9b3a2737110c73035e6e99ac1e5cbce |
|
MD5 | bace7f044174bd6109336b8efedda52e |
|
BLAKE2b-256 | 57760c6e83fb864a49b23382e56c34e70dea1679603474798ade9cdeaf78f4c2 |