materialscloud-org / voila-materialscloud-template

The Voila template for Materials Cloud.
Other
2 stars 3 forks source link

Switch to `hatch` and `pyproject.toml` #125

Closed eimrek closed 1 month ago

eimrek commented 1 month ago

Taking inspiration from https://github.com/jupyter/nbconvert/blob/main/pyproject.toml,

i switched the project to use the hatch tooling and pyproject.toml.

The result is modern and clean, without custom scripts/calls (that didn't work with wheel-based installs before, as far as i tested).

Hatch automatically copies the templates to the correct directory by using the tool.hatch.build.targets.wheel.shared-data option.