Skip to content

Commit 3f2ac87

Browse files
committed
feat: use pyproject.toml for build
1 parent 3799b81 commit 3f2ac87

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

rustfst-python/pyproject.toml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
11
[build-system]
2-
requires = [
3-
"setuptools>=62.1,<63",
4-
"setuptools_rust>=1.3,<1.4",
5-
"wheel>=0.34,<0.35",
6-
]
2+
requires = ["setuptools", "setuptools-rust"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "rustfst-python"
7+
version = "1.1.1"
8+
authors = [
9+
{ name = "Alexandre Caulier", email = "alexandre.caulier.a@gmail.com" },
10+
{ name = "Emrick Sinitambirivoutin", email = "emrick.sinitambirivoutin@sonos.com" },
11+
]
12+
description = "Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs). Re-implementation of OpenFst in Rust."
13+
# readme = "../README.md"
14+
requires-python = ">=3.8"
15+
keywords = ["fst", "openfst", "graph", "transducer", "acceptor",
16+
"shortest-path", "minimize", "determinize", "wfst"]
17+
license = { text="Apache License, Version 2.0" }
18+
classifiers = [
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Rust",
26+
"Topic :: Scientific/Engineering :: Mathematics",
27+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
28+
"Topic :: Text Processing",
29+
"License :: OSI Approved :: Apache Software License",
30+
]
31+
32+
[project.optional-dependencies]
33+
tests = [ "pytest>=6,<7", "pylint" ]
34+
35+
# Not sure about this one...
36+
# options={"bdist_wheel": {"universal": True}},
37+
38+
[tool.setuptools.packages.find]
39+
include = ["rustfst"]
40+
41+
[[tool.setuptools-rust.ext-modules]]
42+
target = "rustfst.dylib.dylib"
43+
path = "../rustfst-ffi/Cargo.toml"
44+
binding = "NoBinding"

0 commit comments

Comments
 (0)