Skip to content

Commit

Permalink
Merge pull request #599 from mrava87/patch-torchreq
Browse files Browse the repository at this point in the history
build: added separate requirement file for torch
  • Loading branch information
mrava87 authored Sep 19, 2024
2 parents e804c33 + 80e1593 commit ea8fff0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
- name: Install pylops
run: |
python -m setuptools_scm
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codacy-coverage-reporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
- name: Install pylops
run: |
pip install .
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ sphinx:
python:
install:
- requirements: requirements-doc.txt
- requirements: requirements-torch.txt
- method: pip
path: .
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ install:

dev-install:
make pipcheck
$(PIP) install -r requirements-dev.txt && $(PIP) install -e .
$(PIP) install -r requirements-dev.txt &&\
$(PIP) install -r requirements-torch.txt && $(PIP) install -e .

install_conda:
conda env create -f environment.yml && conda activate pylops && pip install .
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- script: |
python -m pip install --upgrade pip setuptools wheel django
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
pip install .
displayName: 'Install prerequisites and library'
Expand Down Expand Up @@ -90,6 +91,7 @@ jobs:
- script: |
python -m pip install --upgrade pip setuptools wheel django
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
pip install .
displayName: 'Install prerequisites and library'
Expand Down
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
numpy>=1.21.0
scipy>=1.11.0
--extra-index-url https://download.pytorch.org/whl/cpu
torch>=1.2.0
jax
numba
pyfftw
Expand Down
2 changes: 2 additions & 0 deletions requirements-torch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--index-url https://download.pytorch.org/whl/cpu
torch>=1.2.0

0 comments on commit ea8fff0

Please sign in to comment.