Skip to content

Commit 2070eef

Browse files
committed
fix: move pyproject.toml up and make rustfst-python buildable from source
1 parent 3f2ac87 commit 2070eef

File tree

3 files changed

+9
-87
lines changed

3 files changed

+9
-87
lines changed

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include Cargo.toml
2+
recursive-include rustfst *.toml *.rs
3+
recursive-include rustfst-cli *.toml *.rs
4+
recursive-include rustfst-ffi *.toml *.rs

rustfst-python/pyproject.toml renamed to pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
{ name = "Emrick Sinitambirivoutin", email = "emrick.sinitambirivoutin@sonos.com" },
1111
]
1212
description = "Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs). Re-implementation of OpenFst in Rust."
13-
# readme = "../README.md"
13+
readme = "README.md"
1414
requires-python = ">=3.8"
1515
keywords = ["fst", "openfst", "graph", "transducer", "acceptor",
1616
"shortest-path", "minimize", "determinize", "wfst"]
@@ -32,13 +32,13 @@ classifiers = [
3232
[project.optional-dependencies]
3333
tests = [ "pytest>=6,<7", "pylint" ]
3434

35-
# Not sure about this one...
35+
# This was in setup.py but is no longer relevant (it's not for Mac OS X)
3636
# options={"bdist_wheel": {"universal": True}},
3737

38-
[tool.setuptools.packages.find]
39-
include = ["rustfst"]
38+
[tool.setuptools]
39+
package-dir = {"rustfst" = "rustfst-python/rustfst"}
4040

4141
[[tool.setuptools-rust.ext-modules]]
4242
target = "rustfst.dylib.dylib"
43-
path = "../rustfst-ffi/Cargo.toml"
43+
path = "rustfst-ffi/Cargo.toml"
4444
binding = "NoBinding"

rustfst-python/setup.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)