-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (79 loc) · 2.9 KB
/
pyproject.toml
File metadata and controls
86 lines (79 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
name = "symrank"
version = "0.2.0"
description = "High-performance cosine similarity ranking for Retrieval-Augmented Generation (RAG) pipelines, vector search, and information retrieval, with a Python interface powered by a Rust backend."
readme = "README.md"
authors = [
{ name = "Ross Armstrong", email = "ross.armstrong@analyticsinmotion.com" }
]
requires-python = ">=3.10"
license = {file = 'LICENSE'}
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
]
keywords = [
"symrank",
"vector similarity",
"cosine similarity",
"ranking",
"reranking",
"retrieval",
"rag",
"retrieval-augmented-generation",
"semantic search",
"embedding search",
"vector search",
"machine learning",
"information retrieval"
]
dependencies = []
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[tool.maturin]
python-source = "src"
manifest-path = "symrank-core/Cargo.toml"
module-name = "symrank" # <-- matches Rust crate name
bindings = "pyo3" # <-- explicitly state to maturin that it's a PyO3 project
include = ["LICENSE", "NOTICE", "README.md", "src/**"]
[project.optional-dependencies]
dev = [
"maturin >=1.10.2",
"pytest >=9.0.2",
"ruff >=0.14.9",
"mypy >=1.19.0",
]
benchmarks = [
"scipy>=1.16.0; python_version >= '3.14'",
"scipy>=1.10.0; python_version >= '3.10' and python_version < '3.14'",
"scikit-learn>=1.6.0; python_version == '3.10'",
"scikit-learn>=1.8.0; python_version >= '3.11'",
"numpy>=1.26; python_version == '3.10'",
"numpy>=2.2.5; python_version >= '3.11'",
"datasets >=4.4.1",
]
[project.urls]
"Repository" = "https://github.com/analyticsinmotion/symrank"
"Bug Tracker" = "https://github.com/analyticsinmotion/symrank/issues"
[tool.ruff]
line-length = 88 # <-- Max line length, consistent with Black
target-version = "py314" # <-- Target Python 3.13
extend-include = ["benchmarks"] # <-- Also lint the benchmarks directory
extend-exclude = ["symrank-core"] # <-- Exclude the Rust source code directory
[tool.mypy]
python_version = "3.14" # <-- Target Python 3.13
ignore_missing_imports = true # <-- Suppress errors for 3rd-party packages without stubs
strict = true # <-- Enable strict mode for safer code
exclude = "^(tests|benchmarks)/" # <-- Exclude tests and benchmarks from type checking