Skip to content

Commit 3ed5783

Browse files
committed
chore: deprecate 'unit_test_external_dependencies'
1 parent d274ce3 commit 3ed5783

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

synthtool/gcp/templates/python_library/noxfile.py.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ from __future__ import absolute_import
2020
import os
2121
import pathlib
2222
import shutil
23+
import warnings
2324

2425
import nox
2526

@@ -130,6 +131,11 @@ def install_unittest_dependencies(session, *constraints):
130131
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES, *constraints)
131132

132133
if UNIT_TEST_EXTERNAL_DEPENDENCIES:
134+
warnings.warn(
135+
"'unit_test_external_dependencies' is deprecated. Instead, please "
136+
"use 'unit_test_dependencies' or 'unit_test_local_dependencies'.",
137+
DeprecationWarning,
138+
)
133139
session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)
134140

135141
if UNIT_TEST_LOCAL_DEPENDENCIES:

0 commit comments

Comments
 (0)