File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 23
23
"isort" ,
24
24
"mypy" ,
25
25
"pip" ,
26
- "setuptools" ,
27
26
"pytest" ,
28
27
"pytest-cov" ,
29
28
"pytest-env" ,
30
- "pytest-xdist" ,
31
29
"pytest-timeout" ,
30
+ "pytest-xdist" ,
31
+ "setuptools" ,
32
32
}
33
33
34
34
POLICY_MONTHS = {"python" : 30 , "numpy" : 18 }
@@ -162,11 +162,11 @@ def process_pkg(
162
162
status = "<"
163
163
elif (req_major , req_minor ) > (policy_major , policy_minor ):
164
164
status = "> (!)"
165
- delta = relativedelta (datetime .now (), policy_published_actual ).normalized ()
165
+ delta = relativedelta (datetime .now (), req_published ).normalized ()
166
166
n_months = delta .years * 12 + delta .months
167
167
warning (
168
- f"Package is too new: { pkg } ={ policy_major } .{ policy_minor } was "
169
- f"published on { versions [ policy_major , policy_minor ] :%Y-%m-%d} "
168
+ f"Package is too new: { pkg } ={ req_major } .{ req_minor } was "
169
+ f"published on { req_published :%Y-%m-%d} "
170
170
f"which was { n_months } months ago (policy is { policy_months } months)"
171
171
)
172
172
else :
You can’t perform that action at this time.
0 commit comments