1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Based on fontc's otl-normalizer pyproject.toml:
# https://github.com/googlefonts/fontc/blob/main/otl-normalizer/pyproject.toml
[]
= ["maturin>=0.12"]
= "maturin"
[]
# maturin needs a manifest with a [package], can't just use the workspace's Cargo.toml
= "Cargo.toml"
# treat the project as a Rust binary application: https://www.maturin.rs/bindings#bin
= "bin"
# the binary is only built with the cli feature
= ["cli"]
# somehow these standard files aren't included automatically in the sdist,
# it's better to keep them in there
= [
{ = "README.md", = "sdist" },
{ = "LICENSE-MIT", = "sdist" },
{ = "LICENSE-APACHE", = "sdist" },
]
# exclude rust source files from the wheel (they're not needed at runtime)
= [
{ = "src/**/*", = "wheel" },
]
# maturin merges the metadata from Cargo.toml with the pyproject.toml's below,
# which takes precedence and overrides Cargo.toml
[]
# 'name' key is required for [project]
= "fontmerge"
= "Merge two font source files, copying glyphs and OpenType layout features from one font to another"
# We want to use the same 'version' as Cargo.toml; only override if needed
# (e.g. for a post-release to fix some packaging issues with a previous release)
# version = "0.0.1.post1"
# Since 'version' is required filed in [project], we must also set it as
# 'dynamic' otherwise tools such as `uv venv` issue a warning message
# (the other fields are taken from Cargo.toml too, maturin drops them otherwise)
= ["version", "license", "authors", "keywords", "urls"]
# Use the fontmerge's README.md for the sdist/wheel metadata
= "README.md"