Skip to content

Commit 6bcde8b

Browse files
committed
Fix editable install by switching root build backend to setuptools
1 parent b82d04e commit 6bcde8b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

pyproject.toml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["maturin>=1.5,<2.0"]
3-
build-backend = "maturin"
2+
requires = ["setuptools>=69", "wheel"]
3+
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "glossapi"
@@ -34,7 +34,6 @@ classifiers = [
3434
"Programming Language :: Python",
3535
"Programming Language :: Python :: 3",
3636
"Programming Language :: Rust",
37-
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
3837
]
3938

4039
[project.optional-dependencies]
@@ -66,17 +65,16 @@ docs = [
6665
"mkdocs-material>=9.5",
6766
]
6867

69-
[tool.maturin]
70-
bindings = "pyo3"
71-
# The crate is located under rust/glossapi_rs_noise
72-
module-name = "glossapi_rs_noise"
73-
python-source = "src"
68+
[tool.setuptools]
69+
package-dir = {"" = "src"}
70+
include-package-data = true
7471

75-
manifest-path = "rust/glossapi_rs_noise/Cargo.toml"
76-
include = ["src/**"]
77-
python-packages = [
78-
"glossapi"
79-
]
72+
[tool.setuptools.packages.find]
73+
where = ["src"]
74+
include = ["glossapi", "glossapi.*"]
75+
76+
[tool.setuptools.package-data]
77+
glossapi = ["models/**/*"]
8078

8179
[tool.pytest.ini_options]
8280
markers = [

0 commit comments

Comments
 (0)