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.3b24.tar.gz
(99.3 kB
view hashes)
Built Distribution
Close
Hashes for hatch_ci-0.0.3b24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 258eee4eda28a735bf7fac7e248a0662e0d416a689df0d39b308454b689ec257 |
|
MD5 | d383bafce89a995b8a198b8ab6d649e6 |
|
BLAKE2b-256 | 6ccada6f557e1645f0d07703b7f8b1c89a9992841fabac39f74f8c9fedbf5574 |