Skip to content

Commit 6cdfc12

Browse files
authored
Mute setuptools warning (#1149)
We're not going to update the metadata of an LTS driver version. Instead we'll just mute the warning. Using a sufficiently old version of setuptools is what the user has to do in order to either get rid of the warning, or to keep the install working in the future when the deprecation has been turned into a removal. Since we're not using a pyproject.toml on this LTS branch, we are unfortunately not in control of the version of setuptools used to install the driver.
1 parent f8f013c commit 6cdfc12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testkit/_common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def run(args, env=None):
1616
def run_python(args, env=None, warning_as_error=True):
1717
cmd = [TEST_BACKEND_VERSION, "-u"]
1818
if warning_as_error:
19-
cmd += ["-W", "error"]
19+
cmd += [
20+
"-W", "error",
21+
"-W", "default:License classifiers are deprecated::setuptools.dist",
22+
]
2023
cmd += list(args)
2124
run(cmd, env=env)

0 commit comments

Comments
 (0)