-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
32 lines (30 loc) · 1.23 KB
/
pyproject.toml
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
[build-system]
requires = ["maturin>=0.12"]
build-backend = "maturin"
[tool.maturin]
# maturin needs a manifest with a [package], can't just use the workspace's Cargo.toml
manifest-path = "fontc/Cargo.toml"
# treat the project as a Rust binary application: https://www.maturin.rs/bindings#bin
bindings = "bin"
# somehow these standard files aren't included automatically in the sdist,
# it's better to keep them in there
include = [
{ path = "README.md", format = "sdist" },
{ path = "LICENSE", format = "sdist" },
]
# without this exclude, maturin installs all fontc/*.rs source files in the
# site-packages which is useless (maybe it expects to find *.py in there?)
exclude = [
{ path = "fontc/**/*", format = "wheel" },
]
# maturin merges the metadata from Cargo.toml with the pyproject.toml's below,
# which takes precedence and overrides Cargo.toml
[project]
# 'name' key is required for [project]
name = "fontc"
# comment out 'version' to use the same 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"
# Ensure we use the workspace's top-level README.md for the sdist/wheel metadata
# not the fontc crate's specific README.md
readme = "README.md"