Skip to content

Commit b4f015b

Browse files
committed
Pin test requirements.
1 parent 6dd62bb commit b4f015b

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

noxfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ def _session(fn):
2222

2323
@session(python=["3.8", "3.9", "3.10", "3.11", "pypy3"])
2424
def tests(session):
25-
dependencies = ["pytest", ROOT]
25+
session.install("-r", ROOT / "test-requirements.txt")
2626
if session.posargs == ["coverage"]:
27-
dependencies.append("coverage[toml]")
28-
session.install(*dependencies)
27+
session.install("coverage[toml]")
2928
session.run("coverage", "run", "-m", "pytest")
3029
session.run("coverage", "report")
3130
else:
32-
session.install(*dependencies)
3331
session.run("pytest", *session.posargs, REFERENCING)
3432

3533

test-requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
file:.#egg=referencing
2+
pytest

test-requirements.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile --resolver=backtracking test-requirements.in
6+
#
7+
attrs==22.2.0
8+
# via
9+
# pytest
10+
# referencing
11+
iniconfig==2.0.0
12+
# via pytest
13+
packaging==23.0
14+
# via pytest
15+
pluggy==1.0.0
16+
# via pytest
17+
pyrsistent==0.19.3
18+
# via referencing
19+
pytest==7.2.1
20+
# via -r test-requirements.in
21+
file:.#egg=referencing
22+
# via -r test-requirements.in

0 commit comments

Comments
 (0)