-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (54 loc) · 1.47 KB
/
pyproject.toml
File metadata and controls
66 lines (54 loc) · 1.47 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
[project]
name = "torch_jax_interop"
description = "Simple tools to mix and match PyTorch and Jax - Get the best of both worlds!"
readme = "README.md"
authors = [
{ name = "Fabrice Normandin", email = "fabrice.normandin@gmail.com" },
]
requires-python = ">=3.11"
dependencies = [
"jax>=0.6.0",
"torch",
# note: This is because of a weird bug where torch wants setuptools to build cpp extensions (seems related to torch.compile).
"setuptools; python_version == '3.11'",
]
dynamic = ["version"]
[project.optional-dependencies]
gpu = ["jax[cuda13]; sys_platform == 'linux'"]
[dependency-groups]
dev = [
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"uv-dynamic-versioning>=0.2.0",
"mkdocs-material>=9.5.44",
"flax>=0.10.2",
"tensor-regression>=0.0.8",
"mktestdocs>=0.2.4",
"pytest-benchmark>=5.1.0",
"pytest-env>=1.1.5",
"mkdocstrings[python]>=0.27.0",
"black>=24.10.0",
]
[tool.pytest.ini_options]
testpaths = ["torch_jax_interop"]
norecursedirs = [".venv"]
addopts = ["--doctest-modules"]
[tool.pytest_env]
CUBLAS_WORKSPACE_CONFIG = ":4096:8"
[tool.ruff]
line-length = 99
[tool.docformatter]
wrap-summaries = 99
wrap-descriptions = 99
[tool.uv]
managed = true
[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["torch_jax_interop"]
[tool.hatch.version]
source = "uv-dynamic-versioning"