@@ -88,6 +88,7 @@ def lint(session):
8888    serious code quality issues. 
8989    """ 
9090    session .install (FLAKE8_VERSION , BLACK_VERSION )
91+     session .run ("python" , "-m" , "pip" , "freeze" )
9192    session .run (
9293        "black" ,
9394        "--check" ,
@@ -100,6 +101,7 @@ def lint(session):
100101def  blacken (session ):
101102    """Run black. Format code to uniform standard.""" 
102103    session .install (BLACK_VERSION )
104+     session .run ("python" , "-m" , "pip" , "freeze" )
103105    session .run (
104106        "black" ,
105107        * LINT_PATHS ,
@@ -115,6 +117,7 @@ def format(session):
115117    session .install (BLACK_VERSION , ISORT_VERSION )
116118    # Use the --fss option to sort imports using strict alphabetical order. 
117119    # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections 
120+     session .run ("python" , "-m" , "pip" , "freeze" )
118121    session .run (
119122        "isort" ,
120123        "--fss" ,
@@ -130,6 +133,7 @@ def format(session):
130133def  lint_setup_py (session ):
131134    """Verify that setup.py is valid (including RST check).""" 
132135    session .install ("docutils" , "pygments" )
136+     session .run ("python" , "-m" , "pip" , "freeze" )
133137    session .run ("python" , "setup.py" , "check" , "--restructuredtext" , "--strict" )
134138
135139
@@ -169,6 +173,8 @@ def default(session, tests_path):
169173    )
170174    install_unittest_dependencies (session , "-c" , constraints_path )
171175
176+     session .run ("python" , "-m" , "pip" , "freeze" )
177+ 
172178    # Run py.test against the unit tests. 
173179    session .run (
174180        "py.test" ,
@@ -342,6 +348,8 @@ def system(session):
342348
343349    install_systemtest_dependencies (session , "-c" , constraints_path )
344350
351+     session .run ("python" , "-m" , "pip" , "freeze" )
352+ 
345353    # Run py.test against the system tests. 
346354    if  system_test_exists :
347355        session .run (
@@ -371,6 +379,8 @@ def cover(session):
371379    test runs (not system test runs), and then erases coverage data. 
372380    """ 
373381    session .install ("coverage" , "pytest-cov" )
382+     session .run ("python" , "-m" , "pip" , "freeze" )
383+ 
374384    session .run ("coverage" , "report" , "--show-missing" , "--fail-under=100" )
375385
376386    session .run ("coverage" , "erase" )
@@ -397,6 +407,7 @@ def docs(session):
397407    )
398408
399409    shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
410+     session .run ("python" , "-m" , "pip" , "freeze" )
400411    session .run (
401412        "sphinx-build" ,
402413        "-W" ,  # warnings as errors 
@@ -432,6 +443,7 @@ def docfx(session):
432443    )
433444
434445    shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
446+     session .run ("python" , "-m" , "pip" , "freeze" )
435447    session .run (
436448        "sphinx-build" ,
437449        "-T" ,  # show full traceback on exception 
@@ -515,6 +527,7 @@ def prerelease_deps(session):
515527        "requests" ,
516528    ]
517529    session .install (* other_deps )
530+     session .run ("python" , "-m" , "pip" , "freeze" )
518531
519532    # Print out prerelease package versions 
520533    session .run (
0 commit comments