-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (115 loc) · 3.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[tool.poetry]
name = "keras-matmulless"
version = "0.1.1"
description = "Keras layers without using matrix multiplications."
license = "Apache-2.0"
authors = ["PhotonicGluon <[email protected]>"]
readme = "README.md"
keywords = ["tensorflow", "pytorch", "jax", "keras", "machine learning"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: Unix",
"Operating System :: MacOS",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
packages = [{ include = "keras_mml" }]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
# Main dependencies
keras = "^3.3.3"
numpy = [
{ version = "^1.23.5", markers = "python_version < \"3.12\"" },
{ version = "^1.26.0", markers = "python_version >= \"3.12\"" },
]
einops = "^0.8.0"
jaxtyping = "^0.2.31"
ml-dtypes = "^0.3.1"
# Others
poetry-dynamic-versioning = { extras = ["plugin"], version = "^1.4.0" }
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "~8.2.2"
pytest-cov = "~5.0.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
myst-parser = "^3.0.1"
sphinx = "~7.3.7"
furo = "2024.5.6"
sphinx-copybutton = "^0.5.2"
sphinx-design = "^0.6.0"
sphinx-autodoc-typehints = "^2.1.1"
sphinx-autobuild = "2024.4.16"
myst-nb = "^1.1.0"
sphinx-tippy = "^0.4.3"
[tool.poetry.group.build]
optional = true
[tool.poetry.group.build.dependencies]
ruff = "^0.5.1"
towncrier = "^23.11.0"
[tool.poetry.group.cuda]
optional = true
[tool.poetry.group.cuda.dependencies]
nvidia-cublas-cu12 = "~12.3.4.1"
nvidia-cuda-cupti-cu12 = "~12.3.101"
nvidia-cuda-nvcc-cu12 = "~12.3.107"
nvidia-cuda-nvrtc-cu12 = "~12.3.107"
nvidia-cuda-runtime-cu12 = "~12.3.101"
nvidia-cudnn-cu12 = "~8.9.7.29"
nvidia-cufft-cu12 = "~11.0.12.1"
nvidia-curand-cu12 = "~10.3.4.107"
nvidia-cusolver-cu12 = "~11.5.4.101"
nvidia-cusparse-cu12 = "~12.2.0.103"
nvidia-nccl-cu12 = "~2.19.3"
nvidia-nvjitlink-cu12 = "~12.3.101"
[tool.poetry.group.notebook]
optional = true
[tool.poetry.group.notebook.dependencies]
jupyter = "^1.0.0"
notebook = "^7.2.2"
pandas = "^2.0.3"
seaborn = "^0.13.2"
matplotlib = "^3.9.0"
scikit-learn = "^1.5.1"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
format-jinja-imports = [{ module = "datetime", item = "datetime" }]
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- elif "POETRY_IS_NIGHTLY_BUILD" in env and env["POETRY_IS_NIGHTLY_BUILD"] == "true" -%}
{%- if revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=datetime.now().strftime("%Y%m%d%H")) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=datetime.now().strftime("%Y%m%d%H")) }}
{%- endif -%}
{%- elif revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }}
{%- endif -%}
"""
fix-shallow-repository = true
[tool.poetry-dynamic-versioning.substitution]
files = ["*.py", "*/__init__.py", "*/__version__.py", "*/_version.py", "docs/source/conf.py"]
patterns = [
"(^__version__\\s*(?::.*?)?=\\s*['\"])[^'\"]*(['\"])",
{ value = "(^__version_tuple__\\s*(?::.*?)?=\\s*\\()[^)]*(\\))", mode = "tuple" },
"(^release\\s*(?::.*?)?=\\s*['\"])[^'\"]*(['\"])",
]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.isort]
profile = "black"