forked from dleemiller/WordLlama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
78 lines (67 loc) · 1.9 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm[toml]", "Cython", "numpy"]
build-backend = "setuptools.build_meta"
[project]
name = "wordllama"
dynamic = ["version"]
description = "WordLlama Embedding Utility"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
requires-python = ">=3.8"
authors = [{ name = "Lee Miller", email = "[email protected]" }]
dependencies = [
"numpy",
"safetensors",
"tokenizers",
"toml",
"pydantic>=2",
"requests"
]
[project.optional-dependencies]
train = [
"accelerate",
"torch>=2",
"transformers>=4",
"sentence-transformers",
"datasets",
"nltk",
]
[project.urls]
Homepage = "https://github.com/dleemiller"
Repository = "https://github.com/dleemiller/WordLlama"
[tool.setuptools]
packages = ["wordllama"]
[tool.setuptools.package-data]
wordllama = ["algorithms/*.so", "algorithms/*.pyd", "**/*.pyx", "**/*.pyd", "**/*.toml", "tokenizers/*.json", "weights/*.safetensors"]
[tool.setuptools.dynamic]
classifiers = { file = "classifiers.txt" }
[tool.setuptools_scm]
write_to = "wordllama/_version.py"
version_scheme = "post-release"
local_scheme = "no-local-version"
[tool.cibuildwheel]
archs = ["x86_64", "arm64"]
test-command = """
python -c "import wordllama; print(wordllama.__version__); \
from wordllama import WordLlama, Config, WordLlamaConfig; \
wl = WordLlama.load(); \
similarity_score = wl.similarity(\\"i went to the car\\", \\"i went to the pawn shop\\"); \
print(similarity_score);"
"""
[tool.cibuildwheel.macos]
before-all = """
brew install openblas && cat > ~/.numpy-site.cfg <<EOF
[openblas]
libraries = openblas
library_dirs = $(brew --prefix openblas)/lib
include_dirs = $(brew --prefix openblas)/include
runtime_library_dirs = $(brew --prefix openblas)/lib
EOF
"""
[tool.cibuildwheel.windows]
before-all = """
python -m ensurepip
python -m pip install --upgrade pip
"""
[tool.ruff]
ignore = ["E501"]