Skip to main content

Import metadata to pyproject.toml for hatchling's project

Project description

Hatch CodeMeta

CodeMeta schema is a standard metadata syntax to describe "Scientific software and code". This syntax depends of a codemeta.json file in the root folder of your project, which act as a single source of trust.

Hatch is a python project manager which is also linked to a build system named Hatchling. This build system also manage the pyproject.toml file, that contains metadata information about the given project, authors, description and such.

These information are also specified in codemeta.json file. This project allows to specify all such metadata only in codemeta.json and fill pyproject.toml information dynamically from this file.

Getting Started

Include it as a plugin to your pyproject.toml

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

Make the fields you want to import as dynamic

[project]
...
dynamic = ["version", "description", "authors"]

And then, make sure Hatchling uses it

[tool.hatch.metadata.hooks.codemeta]

Documentation

The documentation is available as markdown files.

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_codemeta-0.3.0.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_codemeta-0.3.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file hatch_codemeta-0.3.0.tar.gz.

File metadata

  • Download URL: hatch_codemeta-0.3.0.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for hatch_codemeta-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b6b525dd82ec19a431ae28f72e84418739336562ed9acf2bcd4ee8b6161d50ff
MD5 f5980e183e413cc9118b6e3430490529
BLAKE2b-256 92d199dd0b0966b8ea03a3e0f80ef910bcc51d8e8230fb89eb8fee0939bcc50f

See more details on using hashes here.

File details

Details for the file hatch_codemeta-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_codemeta-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94a0dae464f761b0e5b7e3141825c97a72aa968e827cb0446d0e9ce8fcbbf7a6
MD5 ba7c241c059bc93d9233de7313a978b8
BLAKE2b-256 7dc1a4d6d5f7dc59d801d6727726b8e9a845159940e312fc6cee6b8c499afbf7

See more details on using hashes here.

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