@@ -168,6 +168,9 @@ def lint(session):
168168 "--check" ,
169169 * LINT_PATHS ,
170170 )
171+
172+ session .run ("python" , "-m" , "pip" , "freeze" )
173+
171174 session .run ("flake8" , "sqlalchemy_bigquery" , "tests" )
172175
173176
@@ -176,6 +179,9 @@ def lint(session):
176179def blacken (session ):
177180 """Run black. Format code to uniform standard."""
178181 session .install (BLACK_VERSION )
182+
183+ session .run ("python" , "-m" , "pip" , "freeze" )
184+
179185 session .run (
180186 "black" ,
181187 * LINT_PATHS ,
@@ -190,6 +196,9 @@ def format(session):
190196 to format code to uniform standard.
191197 """
192198 session .install (BLACK_VERSION , ISORT_VERSION )
199+
200+ session .run ("python" , "-m" , "pip" , "freeze" )
201+
193202 # Use the --fss option to sort imports using strict alphabetical order.
194203 # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections
195204 session .run (
@@ -208,6 +217,9 @@ def format(session):
208217def lint_setup_py (session ):
209218 """Verify that setup.py is valid (including RST check)."""
210219 session .install ("docutils" , "pygments" , "setuptools" )
220+
221+ session .run ("python" , "-m" , "pip" , "freeze" )
222+
211223 session .run ("python" , "setup.py" , "check" , "--restructuredtext" , "--strict" )
212224
213225
@@ -277,6 +289,8 @@ def unit(session, protobuf_implementation, install_extras=True):
277289 if protobuf_implementation == "cpp" :
278290 session .install ("protobuf<4" )
279291
292+ session .run ("python" , "-m" , "pip" , "freeze" )
293+
280294 # Run py.test against the unit tests.
281295 session .run (
282296 "py.test" ,
@@ -354,6 +368,8 @@ def system(session):
354368
355369 install_systemtest_dependencies (session , "-c" , constraints_path )
356370
371+ session .run ("python" , "-m" , "pip" , "freeze" )
372+
357373 # Run py.test against the system tests.
358374 if system_test_exists :
359375 session .run (
@@ -403,6 +419,8 @@ def system_noextras(session):
403419 SYSTEM_TEST_EXTRAS_BY_PYTHON = False
404420 install_systemtest_dependencies (session , "-c" , constraints_path )
405421
422+ session .run ("python" , "-m" , "pip" , "freeze" )
423+
406424 # Run py.test against the system tests.
407425 if system_test_exists :
408426 session .run (
@@ -649,6 +667,8 @@ def prerelease_deps(session, protobuf_implementation):
649667 ]
650668 session .install (* other_deps )
651669
670+ session .run ("python" , "-m" , "pip" , "freeze" )
671+
652672 # Print out prerelease package versions
653673 session .run (
654674 "python" , "-c" , "import google.protobuf; print(google.protobuf.__version__)"
0 commit comments