Skip to content

Commit f67064e

Browse files
obestwaltergaborbernat
authored andcommitted
add warning that whitelisting is mandatory from tox 4 on (#1129)
* add warning that whitelisting is mandatory from tox 4 on * add warning that whitelisting is mandatory from tox 4 on
1 parent ab7c84b commit f67064e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Whitelisting of externals will be mandatory in tox 4: issue a deprecation warning as part of the already existing warning - by :user:`obestwalter`

src/tox/venv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def _check_external_allowed_and_warn(self, path):
174174
" cmd: {}\n"
175175
" env: {}\n"
176176
"Maybe you forgot to specify a dependency? "
177-
"See also the whitelist_externals envconfig setting.".format(
177+
"See also the whitelist_externals envconfig setting.\n\n"
178+
"DEPRECATION WARNING: this will be an error in tox 4 and above!".format(
178179
path, self.envconfig.envdir
179180
)
180181
)

0 commit comments

Comments
 (0)