Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: added separate requirement file for torch #599

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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