Skip to content

Commit e3692fe

Browse files
committed
Remove deprecated PIP_NO_PYTHON_VERSION_WARNING
1 parent b4fb537 commit e3692fe

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.github/workflows/unix_impl.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
run: |
163163
export TEST_MAMBA_EXE=$(pwd)/build/micromamba/mamba
164164
unset CONDARC # Interferes with tests
165-
python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning \
165+
python -m pytest micromamba/tests/ \
166166
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}
167167
168168
verify_pkg_tests:

.github/workflows/windows_impl.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,5 @@ jobs:
149149
$env:TEST_MAMBA_EXE = Join-Path -Path $pwd -ChildPath 'local\bin\mamba.exe'
150150
$env:MAMBA_TEST_SHELL_TYPE='powershell'
151151
Remove-Item -Path "env:CONDARC"
152-
python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning `
152+
python -m pytest micromamba/tests/ `
153153
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}

libmamba/src/core/prefix_data.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ namespace mamba
227227
{ "PYTHONIOENCODING", "utf-8" },
228228
{ "NO_COLOR", "1" },
229229
{ "PIP_NO_COLOR", "1" },
230-
{ "PIP_NO_PYTHON_VERSION_WARNING", "1" },
231230
};
232231
reproc::options run_options;
233232
run_options.env.extra = reproc::env{ env };

micromamba/tests/test_install.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,7 @@ def test_channel_alias(self, alias, existing_cache):
481481
)
482482
def test_no_python_pinning(self, existing_cache):
483483
helpers.install("python=3.9.19", no_dry_run=True)
484-
res = helpers.install("setuptools=63.4.3", "--no-py-pin")
485-
print("RES: ", res)
486-
# res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json")
484+
res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json")
487485

488486
keys = {"success", "prefix", "actions", "dry_run"}
489487
assert keys.issubset(set(res.keys()))

0 commit comments

Comments
 (0)