-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update-lenlp-maturin-build Co-authored-by: AdilZouitine <adilzouitine…
- Loading branch information
Raphael Sourty
committed
Jun 1, 2024
1 parent
25806a0
commit 77438d6
Showing
20 changed files
with
90 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[build-system] | ||
requires = ["maturin >= 1.5.1"] | ||
build-backend = "maturin" | ||
|
||
[project] | ||
name = "lenlp" | ||
version = "1.0.5" | ||
description = "Natural Language Processing library for Python from Rust." | ||
|
||
authors = [ | ||
{name = "Raphael Sourty", email = "[email protected]"}, | ||
] | ||
|
||
|
||
keywords = [] | ||
|
||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Rust", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
requires-python = ">=3.8" | ||
|
||
dependencies = [ | ||
"scikit-learn >= 1.5.0", | ||
"scipy >= 1.13.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/raphaelsty/lenlp" | ||
Documentation = "https://github.com/raphaelsty/lenlp" | ||
Repository = "https://github.com/raphaelsty/lenlp" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"maturin >= 1.5.1", | ||
"pytest-cov >= 5.0.0", | ||
"pytest >= 7.4.4", | ||
"ruff >= 0.1.15", | ||
] | ||
[tool.maturin] | ||
bindings = "pyo3" | ||
features = ["pyo3/extension-module"] | ||
python-source = "python" | ||
module-name = "lenlp._rslenlp" | ||
|
||
[tool.include] | ||
include = [ | ||
"Cargo.toml", | ||
"pyproject.toml", | ||
"README.md", | ||
"rust/*", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = [ | ||
"ignore::DeprecationWarning", | ||
"ignore::RuntimeWarning", | ||
"ignore::UserWarning", | ||
] | ||
addopts = [ | ||
"--doctest-modules", | ||
"--verbose", | ||
"-ra", | ||
"--cov-config=.coveragerc", | ||
"-m not web and not slow", | ||
] | ||
doctest_optionflags = ["NORMALIZE_WHITESPACE", "NUMBER"] | ||
norecursedirs = [ | ||
"build", | ||
"docs", | ||
"node_modules", | ||
] | ||
markers = [ | ||
"web: tests that require using the Internet", | ||
"slow: tests that take a long time to run", | ||
] |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VERSION = (1, 0, 5) | ||
VERSION = (1, 0, 6) | ||
|
||
__version__ = ".".join(map(str, VERSION)) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from rslenlp import RSKeywordProcessor | ||
from lenlp._rslenlp import RSKeywordProcessor | ||
|
||
__all__ = ["FlashText"] | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
lenlp/normalizer/normalize.py → python/lenlp/normalizer/normalize.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
lenlp/sparse/count_vectorizer.py → python/lenlp/sparse/count_vectorizer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters