Skip to content

Commit

Permalink
Cleanup and update packaging (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-ranjan authored Jul 5, 2024
1 parent 0a25d06 commit ceb5e85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/full_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:

- name: Install PyTorch
run: |
pip install torch==2.1.0 --extra-index-url https://download.pytorch.org/whl/cpu
pip install --no-index pyg-lib==0.3.1 -f https://data.pyg.org/whl/torch-2.1.0+cpu.html
pip install torch==2.3.0 --extra-index-url https://download.pytorch.org/whl/cpu
pip install --no-index pyg-lib==0.4.0 -f https://data.pyg.org/whl/torch-2.3.0+cpu.html
- name: Install main package
run: |
pip install .[example,test]
pip install .[full,test]
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Install main package
run: |
pip install .[test,example]
pip install .[test]
- name: Run tests
run: |
Expand Down
17 changes: 7 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,21 @@ dependencies=[
"pyarrow",
"numpy",
"duckdb",
"requests",
"tqdm",
"scikit-learn",
"typing-extensions",
"matplotlib",
"networkx",
]

[project.optional-dependencies]
example=[
full=[
"torch",
"pytorch_frame @ git+https://github.com/pyg-team/pytorch-frame", # TODO: release to pypi
# We rely on https://github.com/pyg-team/pytorch-frame/pull/395 for rel-amazon.
# TODO: use the PyPI version when it's released.
"pytorch_frame[full] @ git+https://github.com/pyg-team/pytorch-frame",
"torch_geometric",
"faiss-cpu",
]
example=[
"sentence-transformers",
# TODO: should be dependencies of torch_frame actually
"lightgbm",
"optuna",
"tqdm",
]
test=[
"pytest",
Expand Down

0 comments on commit ceb5e85

Please sign in to comment.