Skip to content

Commit

Permalink
Add doc config, update setup for auto-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozenmad committed Dec 1, 2020
1 parent 85db320 commit 2fc68b1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.6
install:
- method: pip
- path: .
21 changes: 0 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
try:
import torch
except ModuleNotFoundError:
raise ModuleNotFoundError(
"PyTorch not installed. "
"Please appropriately install PyTorch, "
"see https://pytorch.org/ for installation."
)
try:
import torch_scatter
import torch_sparse
import torch_cluster
import torch_spline_conv
import torch_geometric
except ModuleNotFoundError:
raise ModuleNotFoundError(
"PyTorch-Geometric not fully installed. "
"Please appropriately install PyTorch-Geometric, "
"see https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html for installation."
)

from setuptools import setup, find_packages

with open("README.md", 'r') as fh:
Expand Down

0 comments on commit 2fc68b1

Please sign in to comment.