Unverified Commit 537d37c2 authored by Minjie Wang's avatar Minjie Wang Committed by GitHub
Browse files

[Misc] add requests as the package dependency (#1268)

parent f8d4264e
...@@ -18,6 +18,7 @@ requirements: ...@@ -18,6 +18,7 @@ requirements:
- numpy - numpy
- scipy - scipy
- networkx - networkx
- requests
build: build:
script_env: script_env:
......
...@@ -9,16 +9,10 @@ import zipfile ...@@ -9,16 +9,10 @@ import zipfile
import tarfile import tarfile
import numpy as np import numpy as np
import warnings import warnings
import requests
from .graph_serialize import save_graphs, load_graphs, load_labels from .graph_serialize import save_graphs, load_graphs, load_labels
try:
import requests
except ImportError:
class requests_failed_to_import(object):
pass
requests = requests_failed_to_import
__all__ = ['loadtxt','download', 'check_sha1', 'extract_archive', __all__ = ['loadtxt','download', 'check_sha1', 'extract_archive',
'get_download_dir', 'Subset', 'split_dataset', 'get_download_dir', 'Subset', 'split_dataset',
'save_graphs', "load_graphs", "load_labels"] 'save_graphs', "load_graphs", "load_labels"]
......
...@@ -121,6 +121,7 @@ setup( ...@@ -121,6 +121,7 @@ setup(
'numpy>=1.14.0', 'numpy>=1.14.0',
'scipy>=1.1.0', 'scipy>=1.1.0',
'networkx>=2.1', 'networkx>=2.1',
'requests>=2.19.0',
], ],
url='https://github.com/dmlc/dgl', url='https://github.com/dmlc/dgl',
distclass=BinaryDistribution, distclass=BinaryDistribution,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment