26
26
}
27
27
REQUIREMENTS = {
28
28
"docs" : "docs/requirements.txt" ,
29
- "tests" : "tests/requirements.txt" ,
30
- "common-wheels" : "tests/requirements-common_wheels.txt" ,
31
29
}
32
30
33
31
AUTHORS_FILE = "AUTHORS.txt"
@@ -54,10 +52,10 @@ def should_update_common_wheels() -> bool:
54
52
if not os .path .exists (LOCATIONS ["common-wheels" ]):
55
53
return True
56
54
57
- # If the requirements was updated after cache, we'll repopulate it.
55
+ # If the pyproject.toml was updated after cache, we'll repopulate it.
58
56
cache_last_populated_at = os .path .getmtime (LOCATIONS ["common-wheels" ])
59
- requirements_updated_at = os .path .getmtime (REQUIREMENTS [ "common-wheels" ] )
60
- need_to_repopulate = requirements_updated_at > cache_last_populated_at
57
+ pyproject_updated_at = os .path .getmtime ("pyproject.toml" )
58
+ need_to_repopulate = pyproject_updated_at > cache_last_populated_at
61
59
62
60
# Clear the stale cache.
63
61
if need_to_repopulate :
@@ -78,7 +76,7 @@ def test(session: nox.Session) -> None:
78
76
session ,
79
77
"wheel" ,
80
78
"-w" , LOCATIONS ["common-wheels" ],
81
- "-r " , REQUIREMENTS [ " common-wheels"] ,
79
+ "--group " , "test- common-wheels" ,
82
80
)
83
81
# fmt: on
84
82
else :
@@ -115,7 +113,7 @@ def test(session: nox.Session) -> None:
115
113
run_with_protected_pip (session , "install" , generated_sdist )
116
114
117
115
# Install test dependencies
118
- run_with_protected_pip (session , "install" , "-r " , REQUIREMENTS [ "tests" ] )
116
+ run_with_protected_pip (session , "install" , "--group " , "test" )
119
117
120
118
# Parallelize tests as much as possible, by default.
121
119
arguments = session .posargs or ["-n" , "auto" ]
0 commit comments