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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatch_codemeta-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bd6a584536ebb1ddeade38f912421d59009a9d27fbe03ffba0768842b2327be6
MD5 eadb433856ee01e06565b22a5d74d2f2
BLAKE2b-256 9204aa22a463a6218602761da2db53f341d990e112f8c8da5f9eed1c5ff194ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hatch_codemeta-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3053b007f04e41eacb1be0c16455fde56dc67a86e512f90066c62b429b2f87d4
MD5 1808b3f05a1dd8fb70753d3b5cc32b78
BLAKE2b-256 e794f841d0cc6504d8e22fab6dc4a9ad7aa45c86ef00e433e0f175e1fb5fda9f

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