fca2883864
We put a `.gitignore` with `*` at the top of our cache. When maturin was building a source distribution inside the cache, it would walk up the tree to find a gitignore, see that and ignore all python files. We now add an (empty) `.git` directory one directory below, in the root of built-wheels cache. This prevents ignore walking further up (it marks the top level a git repository). Deptry (from #2490) is a mid sized rust package with additional python packages, so instead of using it in the test i've replaced it with a small (44KB total) reproducer that uses cffi for faster building, the entire test taking <2s on my machine. Fixes #2490
22 lines
475 B
TOML
22 lines
475 B
TOML
[build-system]
|
|
requires = ["maturin>=1,<2.0"]
|
|
build-backend = "maturin"
|
|
|
|
[project]
|
|
name = "deptry_reproducer"
|
|
requires-python = ">=3.8"
|
|
classifiers = [
|
|
"Programming Language :: Rust",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
]
|
|
dependencies = ["cffi"]
|
|
dynamic = ["version"]
|
|
[project.optional-dependencies]
|
|
tests = [
|
|
"pytest",
|
|
]
|
|
[tool.maturin]
|
|
bindings = "cffi"
|
|
python-source = "python"
|