Skip to content

Commit

Permalink
Just give in and use 'uv pip' for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Apr 27, 2024
1 parent 8d46d23 commit 1c2e4ef
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 42 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 --system --upgrade pip setuptools wheel
python -m uv pip install --system tbump
uv pip install --system --upgrade pip setuptools wheel
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 --system --upgrade pip setuptools wheel
python -m uv pip install --system --upgrade '.[all,test]'
uv pip install --system --upgrade pip setuptools wheel
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 @@ -47,8 +47,8 @@ jobs:
if: matrix.python-version != '3.8'
run: |
python -m pip install uv
python -m uv pip install --system --upgrade pip setuptools wheel
python -m uv pip install --system --upgrade ".[all,test]"
uv pip install --system --upgrade pip setuptools wheel
uv pip install --system --upgrade ".[all,test]"
# c.f. https://github.com/astral-sh/uv/issues/2062
- name: Install dependencies (Python 3.8)
Expand Down
46 changes: 23 additions & 23 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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade --pre ".[all,test]"
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes scipy
python -m uv pip install --system --upgrade --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
uv pip uninstall --yes scipy
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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes iminuit
python -m uv pip install --system --upgrade cython
python -m uv pip install --system --upgrade git+https://github.com/scikit-hep/iminuit.git
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
uv pip uninstall --yes iminuit
uv pip install --system --upgrade cython
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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes uproot
python -m uv pip install --system --upgrade git+https://github.com/scikit-hep/uproot5.git
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
uv pip uninstall --yes uproot
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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes matplotlib
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
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 --system \
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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
python -m uv pip uninstall --yes pytest
python -m uv pip install --system --upgrade git+https://github.com/pytest-dev/pytest.git
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
uv pip uninstall --yes pytest
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 --system --upgrade pip setuptools wheel
python -m uv pip --quiet install --system --upgrade ".[docs,test]"
python -m uv pip install --system yq
uv pip install --system --upgrade pip setuptools wheel
uv pip --quiet install --system --upgrade ".[docs,test]"
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 --system --upgrade pip setuptools wheel
python -m uv pip --no-cache install --system --constraint tests/constraints.txt ".[all,test]"
uv pip install --system --upgrade pip setuptools wheel
uv pip --no-cache 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 --system --upgrade pip setuptools wheel
uv pip install --system --upgrade pip setuptools wheel
# FIXME: c.f. https://github.com/scikit-hep/pyhf/issues/2104
python -m uv pip install --system --upgrade ".[all,test]" 'jupyter-client<8.0.0'
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 --system --upgrade pip
python -m uv pip install --system build twine
uv pip install --system --upgrade pip
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 @@ -37,9 +37,9 @@ jobs:
- name: Install from PyPI
run: |
python -m pip install uv
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
uv pip install --system --upgrade pip setuptools wheel
uv pip install --system --pre 'pyhf[backends,xmlio]'
uv pip install --system pytest
python -m pip list
- name: Canary test public API
Expand All @@ -49,6 +49,6 @@ jobs:
# FIXME: c.f. https://github.com/proycon/codemetapy/issues/24
- name: Verify requirements in codemeta.json
run: |
python -m uv pip install --system jq "codemetapy>=2.3.0"
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 1c2e4ef

Please sign in to comment.