Skip to content

Commit

Permalink
Specify 'install --system' to use CI provided Python
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Feb 28, 2024
1 parent b41d9c7 commit 9cbbde8
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip install tbump
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip install --system tbump
python -m pip list
- name: Setup Git user to push new tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip install --upgrade '.[all,test]'
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip install --system --upgrade '.[all,test]'
- name: List installed Python packages
run: python -m pip list
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip install --system --upgrade ".[all,test]"
- name: List installed Python packages
run: python -m pip list
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/dependencies-head.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade --pre ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade --pre ".[all,test]"
python -m pip list
- name: List release candidates, alpha, and beta releases
Expand Down Expand Up @@ -63,10 +63,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes scipy
python -m uv pip install --upgrade --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
python -m uv pip install --system --upgrade --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
python -m pip list
- name: Test with pytest
Expand All @@ -90,11 +90,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes iminuit
python -m uv pip install --upgrade cython
python -m uv pip install --upgrade git+https://github.com/scikit-hep/iminuit.git
python -m uv pip install --system --upgrade cython
python -m uv pip install --system --upgrade git+https://github.com/scikit-hep/iminuit.git
python -m pip list
- name: Test with pytest
run: |
Expand All @@ -117,10 +117,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes uproot
python -m uv pip install --upgrade git+https://github.com/scikit-hep/uproot5.git
python -m uv pip install --system --upgrade git+https://github.com/scikit-hep/uproot5.git
python -m pip list
- name: Test with pytest
run: |
Expand All @@ -145,12 +145,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes matplotlib
# Need to use --extra-index-url as dependencies aren't on scientific-python-nightly-wheels package index.
# Need to use --pre as dev releases will need priority over stable releases.
python -m uv pip install \
python -m uv pip install --system \
--upgrade \
--pre \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
Expand Down Expand Up @@ -181,10 +181,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --upgrade ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes pytest
python -m uv pip install --upgrade git+https://github.com/pytest-dev/pytest.git
python -m uv pip install --system --upgrade git+https://github.com/pytest-dev/pytest.git
python -m pip list
- name: Test with pytest
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --quiet install --upgrade .[docs,test]
python -m uv pip install yq
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --quiet install --system --upgrade .[docs,test]
python -m uv pip install --system yq
python -m pip list
- name: Install apt-get dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lower-bound-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Install dependencies and force lowest bound
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir install --constraint tests/constraints.txt ".[all,test]"
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip --no-cache-dir install --system --constraint tests/constraints.txt ".[all,test]"
- name: List installed Python packages
run: python -m pip list
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip install --system --upgrade pip setuptools wheel
# FIXME: c.f. https://github.com/scikit-hep/pyhf/issues/2104
python -m uv pip install --upgrade ".[all,test]" 'jupyter-client<8.0.0'
python -m uv pip install --system --upgrade ".[all,test]" 'jupyter-client<8.0.0'
- name: List installed Python packages
run: python -m pip list
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Install python-build and twine
run: |
python -m pip install uv
python -m uv pip install --upgrade pip
python -m uv pip install build twine
python -m uv pip install --system --upgrade pip
python -m uv pip install --system build twine
python -m pip list
- name: Build a sdist and wheel
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Install from PyPI
run: |
python -m pip install uv
python -m uv pip install --upgrade pip setuptools wheel
python -m uv pip install --pre pyhf[backends,xmlio]
python -m uv pip install pytest
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip install --system --pre pyhf[backends,xmlio]
python -m uv pip install --system pytest
python -m pip list
- name: Canary test public API
Expand All @@ -46,6 +46,6 @@ jobs:
# FIXME: c.f. https://github.com/proycon/codemetapy/issues/24
- name: Verify requirements in codemeta.json
run: |
python -m uv pip install jq "codemetapy>=2.3.0"
python -m uv pip install --system jq "codemetapy>=2.3.0"
codemetapy --inputtype python --no-extras pyhf > codemeta_generated.json
diff <(jq -S .softwareRequirements codemeta.json) <(jq -S .softwareRequirements codemeta_generated.json)

0 comments on commit 9cbbde8

Please sign in to comment.