Skip to content

Commit 26be14f

Browse files
authored
[Deps] Make pytest an optional dependency (#610)
Pytest is currently included in wheel dependencies, but it is needed only to run the unit tests. Move it to optional dependencies under the "test" group. Signed-off-by: Will Daly <[email protected]>
1 parent e691ace commit 26be14f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ dependencies = [
2020
"transformers>=4.53.0",
2121
"datasets>=3.3.0",
2222
"einops",
23-
"pytest",
2423
]
2524

2625
[project.optional-dependencies]
2726
conv1d = ["causal-conv1d>=1.4.0"]
2827
benchmark = ["matplotlib"]
28+
test = ["pytest"]
2929

3030
[project.urls]
3131
Homepage = "https://github.com/fla-org/flash-linear-attention"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def get_package_version():
4242
'torch>=2.5',
4343
'transformers>=4.53.0',
4444
'datasets>=3.3.0',
45-
'einops',
46-
'pytest'
45+
'einops'
4746
],
4847
extras_require={
4948
'conv1d': ['causal-conv1d>=1.4.0'],
5049
'benchmark': ['matplotlib'],
50+
'test': ['pytest'],
5151
}
5252
)

0 commit comments

Comments
 (0)