Skip to content

Commit

Permalink
Remove deprecated PIP_NO_PYTHON_VERSION_WARNING
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Jan 27, 2025
1 parent b4fb537 commit e3692fe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unix_impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
run: |
export TEST_MAMBA_EXE=$(pwd)/build/micromamba/mamba
unset CONDARC # Interferes with tests
python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning \
python -m pytest micromamba/tests/ \
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}
verify_pkg_tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ jobs:
$env:TEST_MAMBA_EXE = Join-Path -Path $pwd -ChildPath 'local\bin\mamba.exe'
$env:MAMBA_TEST_SHELL_TYPE='powershell'
Remove-Item -Path "env:CONDARC"
python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning `
python -m pytest micromamba/tests/ `
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}
1 change: 0 additions & 1 deletion libmamba/src/core/prefix_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ namespace mamba
{ "PYTHONIOENCODING", "utf-8" },
{ "NO_COLOR", "1" },
{ "PIP_NO_COLOR", "1" },
{ "PIP_NO_PYTHON_VERSION_WARNING", "1" },
};
reproc::options run_options;
run_options.env.extra = reproc::env{ env };
Expand Down
4 changes: 1 addition & 3 deletions micromamba/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,7 @@ def test_channel_alias(self, alias, existing_cache):
)
def test_no_python_pinning(self, existing_cache):
helpers.install("python=3.9.19", no_dry_run=True)
res = helpers.install("setuptools=63.4.3", "--no-py-pin")
print("RES: ", res)
# res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json")
res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json")

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

0 comments on commit e3692fe

Please sign in to comment.