-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
38 lines (34 loc) · 938 Bytes
/
pyproject.toml
File metadata and controls
38 lines (34 loc) · 938 Bytes
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
[tool.poetry]
name = "hamming-sim-pytorch"
version = "0.1.2.3"
description = "A PyTorch extension for hamming similarity optimized for CPU usage."
authors = [
"Yashasvi Ranawat <yashasvi.ranawat@iprally.com>",
]
maintainers = [
"Berker Peksag <berker.peksag@iprally.com>",
]
license = "MIT"
readme = "README.md"
packages = [
{ include = "hamming_sim" },
]
include = [
{ path = "hamming_sim/**/*.so", format = "wheel" },
{ path = "hamming_sim/**/*.cpp", format = "sdist" },
]
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
torch = "~=2.4.0"
# Used internally by torch and needs to be explicitly installed.
numpy = ">=1.21,<2.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4"
ruff = "^0.8"
build = "^1.2"
twine = "^6.1"
[tool.poetry.build]
script = "scripts/build_extension.py"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools", "torch>=2.4.0,<2.5.0"]
build-backend = "poetry.core.masonry.api"