@@ -88,6 +88,7 @@ def lint(session):
88
88
serious code quality issues.
89
89
"""
90
90
session .install (FLAKE8_VERSION , BLACK_VERSION )
91
+ session .run ("python" , "-m" , "pip" , "freeze" )
91
92
session .run (
92
93
"black" ,
93
94
"--check" ,
@@ -100,6 +101,7 @@ def lint(session):
100
101
def blacken (session ):
101
102
"""Run black. Format code to uniform standard."""
102
103
session .install (BLACK_VERSION )
104
+ session .run ("python" , "-m" , "pip" , "freeze" )
103
105
session .run (
104
106
"black" ,
105
107
* LINT_PATHS ,
@@ -115,6 +117,7 @@ def format(session):
115
117
session .install (BLACK_VERSION , ISORT_VERSION )
116
118
# Use the --fss option to sort imports using strict alphabetical order.
117
119
# See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections
120
+ session .run ("python" , "-m" , "pip" , "freeze" )
118
121
session .run (
119
122
"isort" ,
120
123
"--fss" ,
@@ -130,6 +133,7 @@ def format(session):
130
133
def lint_setup_py (session ):
131
134
"""Verify that setup.py is valid (including RST check)."""
132
135
session .install ("docutils" , "pygments" )
136
+ session .run ("python" , "-m" , "pip" , "freeze" )
133
137
session .run ("python" , "setup.py" , "check" , "--restructuredtext" , "--strict" )
134
138
135
139
@@ -169,6 +173,8 @@ def default(session, tests_path):
169
173
)
170
174
install_unittest_dependencies (session , "-c" , constraints_path )
171
175
176
+ session .run ("python" , "-m" , "pip" , "freeze" )
177
+
172
178
# Run py.test against the unit tests.
173
179
session .run (
174
180
"py.test" ,
@@ -342,6 +348,8 @@ def system(session):
342
348
343
349
install_systemtest_dependencies (session , "-c" , constraints_path )
344
350
351
+ session .run ("python" , "-m" , "pip" , "freeze" )
352
+
345
353
# Run py.test against the system tests.
346
354
if system_test_exists :
347
355
session .run (
@@ -371,6 +379,8 @@ def cover(session):
371
379
test runs (not system test runs), and then erases coverage data.
372
380
"""
373
381
session .install ("coverage" , "pytest-cov" )
382
+ session .run ("python" , "-m" , "pip" , "freeze" )
383
+
374
384
session .run ("coverage" , "report" , "--show-missing" , "--fail-under=100" )
375
385
376
386
session .run ("coverage" , "erase" )
@@ -397,6 +407,7 @@ def docs(session):
397
407
)
398
408
399
409
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
410
+ session .run ("python" , "-m" , "pip" , "freeze" )
400
411
session .run (
401
412
"sphinx-build" ,
402
413
"-W" , # warnings as errors
@@ -432,6 +443,7 @@ def docfx(session):
432
443
)
433
444
434
445
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
446
+ session .run ("python" , "-m" , "pip" , "freeze" )
435
447
session .run (
436
448
"sphinx-build" ,
437
449
"-T" , # show full traceback on exception
@@ -515,6 +527,7 @@ def prerelease_deps(session):
515
527
"requests" ,
516
528
]
517
529
session .install (* other_deps )
530
+ session .run ("python" , "-m" , "pip" , "freeze" )
518
531
519
532
# Print out prerelease package versions
520
533
session .run (
0 commit comments