Skip to content

Commit 1538938

Browse files
edgarrmondragonofek
authored andcommitted
Stop using deprecated --no-python-version-warning option (#1913)
Stop using `--no-python-version-warning`
1 parent de8d0f1 commit 1538938

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

backend/tests/downstream/integrate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def main():
140140
'download',
141141
'-q',
142142
'--disable-pip-version-check',
143-
'--no-python-version-warning',
144143
'-d',
145144
links_dir,
146145
os.path.join(links_dir, os.listdir(links_dir)[0]),
@@ -230,7 +229,6 @@ def main():
230229
'install',
231230
'-q',
232231
'--disable-pip-version-check',
233-
'--no-python-version-warning',
234232
'--find-links',
235233
links_dir,
236234
'--no-deps',
@@ -243,7 +241,6 @@ def main():
243241
'install',
244242
'-q',
245243
'--disable-pip-version-check',
246-
'--no-python-version-warning',
247244
repo_dir,
248245
])
249246

src/hatch/cli/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def ensure_plugin_dependencies(self, dependencies: list[Requirement], *, wait_me
262262

263263
pip_command = [sys.executable, '-u', '-m', 'pip']
264264

265-
pip_command.extend(['install', '--disable-pip-version-check', '--no-python-version-warning'])
265+
pip_command.extend(['install', '--disable-pip-version-check'])
266266

267267
# Default to -1 verbosity
268268
add_verbosity_flag(pip_command, self.verbosity, adjustment=-1)

src/hatch/env/plugin/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def construct_pip_install_command(self, args: list[str]):
896896
A convenience method for constructing a [`pip install`](https://pip.pypa.io/en/stable/cli/pip_install/)
897897
command with the given verbosity. The default verbosity is set to one less than Hatch's verbosity.
898898
"""
899-
command = ['python', '-u', '-m', 'pip', 'install', '--disable-pip-version-check', '--no-python-version-warning']
899+
command = ['python', '-u', '-m', 'pip', 'install', '--disable-pip-version-check']
900900

901901
# Default to -1 verbosity
902902
add_verbosity_flag(command, self.verbosity, adjustment=-1)

tests/helpers/helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def assert_plugin_installation(subprocess_run, dependencies: list[str], *, verbo
5353
'pip',
5454
'install',
5555
'--disable-pip-version-check',
56-
'--no-python-version-warning',
5756
]
5857
add_verbosity_flag(command, verbosity, adjustment=-1)
5958
command.extend(dependencies)

0 commit comments

Comments
 (0)