Skip to content

Commit

Permalink
added pip options to top of requirements files
Browse files Browse the repository at this point in the history
  • Loading branch information
wolearyc committed Sep 16, 2024
1 parent a63dfdc commit 6c57108
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
pip install uv
uv pip install ${{ matrix.uv-arg }} --system -r deps/requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/torch_geometric_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/torch_requirements.txt --index-url https://download.pytorch.org/whl/cpu
uv pip install ${{ matrix.uv-arg }} --system --no-index -r deps/torch_extra_requirements.txt -f https://data.pyg.org/whl/torch-2.4.0+cpu.html
uv pip install ${{ matrix.uv-arg }} --system -r deps/torch_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system --no-index -r deps/torch_extra_requirements.txt
- name: Analyzing the code with pylint
if: ${{ matrix.os != 'windows-latest' }} # Windows throws strange linting errors
run: |
Expand Down
21 changes: 9 additions & 12 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
version: "2"

build:
os: ubuntu-22.04
os: "ubuntu-22.04"
tools:
python: "3.12"
commands:
- python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
- python -m pip install --upgrade --no-cache-dir pip setuptools
- python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
- python -m pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
- python -m pip install --exists-action=w --no-cache-dir -r deps/requirements.txt
- python -m pip install --exists-action=w --no-cache-dir -r deps/torch_geometric_requirements.txt
- python -m pip install --exists-action=w --no-cache-dir -r deps/torch_requirements.txt --index-url https://download.pytorch.org/whl/cpu
- python -m pip install --exists-action=w --no-cache-dir -r deps/torch_extra_requirements.txt --no-index -f https://data.pyg.org/whl/torch-2.4.0+cpu.html
- cat docs/source/conf.py
- python -m sphinx -T -b html -d _build/doctrees -D language=en docs/source/conf.py $READTHEDOCS_OUTPUT/html

python:
install:
- requirements: docs/requirements.txt
- requirements: deps/requirements.txt
- requirements: deps/torch_requirements.txt
- requirements: deps/torch_geometric_requirements.txt
- requirements: deps/torch_extra_requirements.txt

sphinx:
configuration: docs/source/conf.py
1 change: 1 addition & 0 deletions deps/torch_extra_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-f https://data.pyg.org/whl/torch-2.4.0+cpu.html
torch-scatter
torch-sparse
1 change: 1 addition & 0 deletions deps/torch_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://download.pytorch.org/whl/cpu
torch==2.4.1;sys_platform=="darwin"
torch==2.4.1+cpu;sys_platform=="linux"
torch==2.4.1+cpu;sys_platform=="win32"

0 comments on commit 6c57108

Please sign in to comment.