@@ -159,7 +159,6 @@ def lint(session):
159159 serious code quality issues.
160160 """
161161 session .install (FLAKE8_VERSION , BLACK_VERSION )
162- session .run ("python" , "-m" , "pip" , "freeze" )
163162 session .run (
164163 "black" ,
165164 "--check" ,
@@ -173,7 +172,6 @@ def lint(session):
173172def blacken (session ):
174173 """Run black. Format code to uniform standard."""
175174 session .install (BLACK_VERSION )
176- session .run ("python" , "-m" , "pip" , "freeze" )
177175 session .run (
178176 "black" ,
179177 * LINT_PATHS ,
@@ -190,7 +188,6 @@ def format(session):
190188 session .install (BLACK_VERSION , ISORT_VERSION )
191189 # Use the --fss option to sort imports using strict alphabetical order.
192190 # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections
193- session .run ("python" , "-m" , "pip" , "freeze" )
194191 session .run (
195192 "isort" ,
196193 "--fss" ,
@@ -207,7 +204,6 @@ def format(session):
207204def lint_setup_py (session ):
208205 """Verify that setup.py is valid (including RST check)."""
209206 session .install ("docutils" , "pygments" )
210- session .run ("python" , "-m" , "pip" , "freeze" )
211207 session .run ("python" , "setup.py" , "check" , "--restructuredtext" , "--strict" )
212208
213209
@@ -271,7 +267,6 @@ def unit(session, protobuf_implementation, install_extras=True):
271267 session .install ("protobuf<4" )
272268
273269 # Run py.test against the unit tests.
274- session .run ("python" , "-m" , "pip" , "freeze" )
275270 session .run (
276271 "py.test" ,
277272 "--quiet" ,
@@ -344,7 +339,6 @@ def system(session):
344339 session .skip ("System tests were not found" )
345340
346341 install_systemtest_dependencies (session , "-c" , constraints_path )
347- session .run ("python" , "-m" , "pip" , "freeze" )
348342
349343 # Run py.test against the system tests.
350344 if system_test_exists :
@@ -391,7 +385,6 @@ def system_noextras(session):
391385 global SYSTEM_TEST_EXTRAS_BY_PYTHON
392386 SYSTEM_TEST_EXTRAS_BY_PYTHON = False
393387 install_systemtest_dependencies (session , "-c" , constraints_path )
394- session .run ("python" , "-m" , "pip" , "freeze" )
395388
396389 # Run py.test against the system tests.
397390 if system_test_exists :
@@ -444,7 +437,6 @@ def compliance(session):
444437 extras = "[tests]"
445438 session .install ("-e" , f".{ extras } " , "-c" , constraints_path )
446439
447- session .run ("python" , "-m" , "pip" , "freeze" )
448440
449441 session .run (
450442 "py.test" ,
@@ -476,12 +468,10 @@ def cover(session):
476468 test runs (not system test runs), and then erases coverage data.
477469 """
478470 session .install ("coverage" , "pytest-cov" )
479- session .run ("python" , "-m" , "pip" , "freeze" )
480471 session .run ("coverage" , "report" , "--show-missing" , "--fail-under=100" )
481472
482473 session .run ("coverage" , "erase" )
483474
484-
485475@nox .session (python = "3.10" )
486476@_calculate_duration
487477def docs (session ):
@@ -506,7 +496,6 @@ def docs(session):
506496 )
507497
508498 shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
509- session .run ("python" , "-m" , "pip" , "freeze" )
510499 session .run (
511500 "sphinx-build" ,
512501 "-W" , # warnings as errors
@@ -545,7 +534,6 @@ def docfx(session):
545534 )
546535
547536 shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
548- session .run ("python" , "-m" , "pip" , "freeze" )
549537 session .run (
550538 "sphinx-build" ,
551539 "-T" , # show full traceback on exception
@@ -638,7 +626,6 @@ def prerelease_deps(session, protobuf_implementation):
638626 "requests" ,
639627 ]
640628 session .install (* other_deps )
641- session .run ("python" , "-m" , "pip" , "freeze" )
642629
643630 # Print out prerelease package versions
644631 session .run (
0 commit comments