hub env: remove pip pinning, always upgrade pip

This commit is contained in:
Erik Sundell
2023-05-18 23:49:39 +02:00
parent 6388d390e1
commit c1aa30a479
2 changed files with 1 additions and 7 deletions

View File

@@ -81,10 +81,7 @@ jobs:
${{ hashFiles('setup.py', 'dev-requirements.txt', '.github/workflows/unit-test.yaml') }} ${{ hashFiles('setup.py', 'dev-requirements.txt', '.github/workflows/unit-test.yaml') }}
- name: Install Python dependencies - name: Install Python dependencies
# Keep pip version pinning in sync with the one in bootstrap.py!
# See changelog at https://pip.pypa.io/en/latest/news/#changelog
run: | run: |
python3 -m pip install -U "pip==23.1.*"
python3 -m pip install -r dev-requirements.txt python3 -m pip install -r dev-requirements.txt
python3 -m pip install -e . python3 -m pip install -e .
pip freeze pip freeze

View File

@@ -475,11 +475,8 @@ def main():
os.makedirs(hub_env_prefix, exist_ok=True) os.makedirs(hub_env_prefix, exist_ok=True)
run_subprocess(["python3", "-m", "venv", hub_env_prefix]) run_subprocess(["python3", "-m", "venv", hub_env_prefix])
# Upgrade pip
# Keep pip version pinning in sync with the one in unit-test.yml!
# See changelog at https://pip.pypa.io/en/latest/news/#changelog
logger.info("Upgrading pip...") logger.info("Upgrading pip...")
run_subprocess([hub_env_pip, "install", "--upgrade", "pip==23.1.*"]) run_subprocess([hub_env_pip, "install", "--upgrade", "pip"])
# Install/upgrade TLJH installer # Install/upgrade TLJH installer
tljh_install_cmd = [hub_env_pip, "install", "--upgrade"] tljh_install_cmd = [hub_env_pip, "install", "--upgrade"]