Skip to content

Commit

Permalink
Update requirements for new pip (#346)
Browse files Browse the repository at this point in the history
* Update requirements for new pip

* Update workflow

* Try changing install order

* Change PTL version

* Remove full install

* Try a different package requirement

* Roll back test requirement

* Remove PTL version

* Try not upgrading pip

* Roll back pip

* Try quotes

* Don't need setuptools
  • Loading branch information
mmuckley authored Jul 23, 2024
1 parent edb5737 commit 21c4aea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
Expand All @@ -46,25 +46,15 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-py${{ matrix.python-version }}-
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade "pip<24.1"
pip install --upgrade wheel
pip install --editable ".[tests]"
- name: Check Formatting and Lint
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ install_requires =
numpy>=1.18.5
scikit_image>=0.16.2
torchvision>=0.8.1
torch>=1.8.0
runstats>=1.8.0
pytorch_lightning>=1.4
h5py>=2.10.0
torch>=1.8
runstats>=1.8
pytorch-lightning>=1.4
h5py>=2.10
PyYAML>=5.3.1
torchmetrics>=0.5.1
pandas>=1.3.4
Expand All @@ -79,7 +79,7 @@ tests =
pandas==1.4.2
pandas-stubs==1.2.0.61
pytest==7.1.2
pytorch_lightning==1.6.4
pytorch-lightning==1.6.4
PyYAML==6.0
runstats==2.0.0
scikit_image==0.19.3
Expand Down

0 comments on commit 21c4aea

Please sign in to comment.