hatch-datadog-build-metadata
| CI/CD | |
| Package | |
| Meta |
This provides a plugin for Hatch that injects metadata from your preferred version control system like Git.
Table of Contents
Global dependency
Ensure hatch-datadog-build-metadata is defined within the build-system.requires field in your pyproject.toml file.
[build-system]
requires = ["hatchling", "hatch-datadog-build-metadata"]
build-backend = "hatchling.build"
Metadata hook
Note: only Git is supported
The metadata hook plugin name is datadog-build-metadata.
-
pyproject.toml
[tool.hatch.metadata.hooks.datadog-build-metadata]
Metadata hook options
URLs
The urls option is equivalent to project.urls except that each URL supports context formatting with the following fields:
commit_hash- the latest commit hashremote_url- the raw remote URL as stored in VCS configremote_http_url- theremote_urlconverted to an HTTP(S) URL
Be sure to add urls to project.dynamic:
-
pyproject.toml
[project] dynamic = [ "urls", ]
By default, the following URLs are set:
source_code_link->{remote_http_url}#{commit_hash}
Example
The following example assumes that the code is hosted by GitHub.
-
pyproject.toml
[tool.hatch.metadata.hooks.datadog-build-metadata] Homepage = "https://www.example.com" source_archive = "{remote_http_url}/archive/{commit_hash}.tar.gz"
-
hatch.toml
[metadata.hooks.datadog-build-metadata] Homepage = "https://www.example.com" source_archive = "{remote_http_url}/archive/{commit_hash}.tar.gz"
License
hatch-datadog-build-metadata is distributed under the terms of the MIT license.
Metadata
Release files for hatch-datadog-build-metadata 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hatch_datadog_build_metadata-0.1.0.tar.gz | 8.4 kB | Without provenance | Details for hatch_datadog_build_metadata-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hatch_datadog_build_metadata-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hatch_datadog_build_metadata-0.1.0-py3-none-any.whl |
Total release size: 15.0 kB
Release files / hatch_datadog_build_metadata-0.1.0.tar.gz
| Download URL | hatch_datadog_build_metadata-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d9e18f4351ef0fcef20ccda16befdcd6df3826b2bc95cf9411516ce3483a6b1
|
|
BLAKE2b-256 checksum How to use checksums |
48efb9d3046fed954d022d82f9ca98f3c35f027d18e8060e3761715dbbaec381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / hatch_datadog_build_metadata-0.1.0-py3-none-any.whl
| Download URL | hatch_datadog_build_metadata-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a1a0806e38d6de90bbde8ab1b0aa20a0323c1815c2cb7ea1e10ce4dbc0004f2
|
|
BLAKE2b-256 checksum How to use checksums |
ac9d0e6bd2d080f9daf0bac232f10cb0eea4d23217a0cad33e3406bb82e15e28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for hatch-datadog-build-metadata 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.