Skip to content

Commit 1896a32

Browse files
committed
ci: refactor pytests dev dependencies
1 parent 7032789 commit 1896a32

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

pytests/noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
@nox.session
88
def test(session: nox.Session):
9-
session.install("-rrequirements-dev.txt")
9+
session.install(".[dev]")
1010
try:
1111
session.install("--only-binary=numpy", "numpy>=1.16")
1212
except CommandFailed:
@@ -19,6 +19,5 @@ def test(session: nox.Session):
1919

2020
@nox.session
2121
def bench(session: nox.Session):
22-
session.install("-rrequirements-dev.txt")
23-
session.install(".")
22+
session.install(".[dev]")
2423
session.run("pytest", "--benchmark-enable", "--benchmark-only", *session.posargs)

pytests/pyo3_pytests/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pytests/pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ classifiers = [
1717
"Operating System :: POSIX",
1818
"Operating System :: MacOS :: MacOS X",
1919
]
20+
21+
[project.optional-dependencies]
22+
dev = [
23+
"hypothesis>=3.55",
24+
"pytest-asyncio>=0.21",
25+
"pytest-benchmark>=3.4",
26+
"pytest>=6.0",
27+
"typing_extensions>=4.0.0"
28+
]

pytests/requirements-dev.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)