Skip to content

Commit

Permalink
Merge pull request #182 from jamesmyatt/patch-1
Browse files Browse the repository at this point in the history
Remove setup.py test (deprecated)
  • Loading branch information
benedekrozemberczki committed Aug 2, 2022
2 parents 15bb16a + 9c87634 commit f76e06f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,17 @@ jobs:
python-version: 3.7
- run: conda --version
- run: which python
- name: Run installation.
- name: Install main dependencies
run: |
conda install -y scipy
pip install codecov
pip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
pip install torch-geometric
pip install codecov
pip install sphinx sphinx_rtd_theme
pip install .[test]
pip install pytest
python setup.py install
python -m pip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
python -m pip install torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
python -m pip install torch-sparse -f https://data.pyg.org/whl/torch-1.10.0+cpu.html
python -m pip install torch-geometric
python -m pip install sphinx sphinx_rtd_theme
- name: Install main package
run: |
pip install -e .[test]
python -m pip install -e .[test]
- name: Run test-suite
run: |
python -m pytest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ where `${CUDA}` should be replaced by either `cpu`, `cu102`, or `cu113` dependin
**Running tests**

```
$ python setup.py test
$ python -m pytest test
```
--------------------------------------------------------------------------------

Expand Down
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
"six",
"networkx",
]

setup_requires = ["pytest-runner"]

tests_require = ["pytest", "pytest-cov", "mock", "unittest", "networkx"]


tests_require = ["pytest", "pytest-cov", "mock", "networkx"]

keywords = [
"machine-learning",
Expand Down Expand Up @@ -55,8 +50,9 @@
download_url="https://github.com/benedekrozemberczki/pytorch_geometric_temporal/archive/v0.53.0.tar.gz",
keywords=keywords,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
extras_require={
"test": tests_require,
},
python_requires=">=3.6",
classifiers=[
"Development Status :: 3 - Alpha",
Expand Down

0 comments on commit f76e06f

Please sign in to comment.