Debian Codegraph @

pyproject.toml

raw
1 # Workaround to bootstrap maturin on non-manylinux platforms
2 [build-system]
3 requires = [
4 "setuptools>=77.0.0",
5 "tomli>=1.1.0 ; python_version<'3.11'",
6 "setuptools-rust>=1.11.0",
7 ]
8 backend-path = ["maturin"]
9 build-backend = "bootstrap"
10
11 [project]
12 name = "maturin"
13 description = "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages"
14 authors = [{ name = "konstin", email = "[email protected]" }]
15 readme = { file = "README.md", content-type = "text/markdown" }
16 requires-python = ">=3.7"
17 license = "MIT OR Apache-2.0"
18 license-files = [
19 "license-mit",
20 "license-apache",
21 ]
22 classifiers = [
23 "Topic :: Software Development :: Build Tools",
24 "Programming Language :: Rust",
25 "Programming Language :: Python :: Implementation :: CPython",
26 "Programming Language :: Python :: Implementation :: PyPy",
27 "Programming Language :: Python :: Implementation :: GraalPy",
28 ]
29 dependencies = ["tomli>=1.1.0 ; python_version<'3.11'"]
30 dynamic = ["version"]
31
32 [project.optional-dependencies]
33 zig = ["ziglang>=0.10.0,<0.13.0"]
34 patchelf = ["patchelf"]
35
36 [project.urls]
37 "Source Code" = "https://github.com/PyO3/maturin"
38 Issues = "https://github.com/PyO3/maturin/issues"
39 Documentation = "https://maturin.rs"
40 Changelog = "https://maturin.rs/changelog.html"
41
42 [tool.setuptools]
43 packages = ["maturin"]
44
45 [tool.maturin]
46 bindings = "bin"
47
48 [tool.black]
49 target-version = ['py37']
50 extend-exclude = '''
51 # Ignore cargo-generate templates
52 ^/src/templates
53 '''
54
55 [tool.ruff]
56 line-length = 120
57 target-version = "py37"
58
59 [tool.mypy]
60 disallow_untyped_defs = true
61 disallow_incomplete_defs = true
62 warn_no_return = true
63 ignore_missing_imports = true