You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.3 kB

5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. try:
  2. import torch
  3. except ModuleNotFoundError:
  4. raise ModuleNotFoundError(
  5. "PyTorch not installed. "
  6. "Please appropriately install PyTorch, "
  7. "see https://pytorch.org/ for installation."
  8. )
  9. try:
  10. import torch_scatter
  11. import torch_sparse
  12. import torch_cluster
  13. import torch_spline_conv
  14. import torch_geometric
  15. except ModuleNotFoundError:
  16. raise ModuleNotFoundError(
  17. "PyTorch-Geometric not fully installed. "
  18. "Please appropriately install PyTorch-Geometric, "
  19. "see https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html for installation."
  20. )
  21. from setuptools import setup, find_packages
  22. with open("README.md", 'r') as fh:
  23. long_description = fh.read()
  24. ''' https://packaging.python.org/guides/distributing-packages-using-setuptools/ '''
  25. ''' https://setuptools.readthedocs.io/en/latest/ '''
  26. setup(
  27. name='auto-graph-learning',
  28. version='0.1.1',
  29. author='THUMNLab/aglteam',
  30. maintainer='THUMNLab/aglteam',
  31. author_email='xin_wang@tsinghua.edu.cn',
  32. description='AutoML tools for graph-structure dataset',
  33. long_description=long_description,
  34. long_description_content_type='text/markdown',
  35. include_package_data=True,
  36. packages=find_packages(),
  37. # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
  38. python_requires='~=3.6',
  39. # https://pypi.org/classifiers/
  40. classifiers=[
  41. "Development Status :: 2 - Pre-Alpha",
  42. "Programming Language :: Python :: 3.6",
  43. "Programming Language :: Python :: 3.7",
  44. "Programming Language :: Python :: 3.8",
  45. "Programming Language :: Python :: 3.9"
  46. ],
  47. # https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html
  48. # note that setup_requires and tests_require are deprecated
  49. install_requires=[
  50. 'bayesian-optimization',
  51. 'chocolate',
  52. 'dill',
  53. 'hyperopt',
  54. 'lightgbm',
  55. 'networkx',
  56. 'numpy',
  57. 'netlsd',
  58. 'ogb',
  59. 'psutil',
  60. 'pyyaml',
  61. 'requests',
  62. 'scikit-learn',
  63. 'scipy',
  64. 'tabulate',
  65. 'torch',
  66. 'torch-geometric',
  67. 'torch-scatter',
  68. 'torch-sparse',
  69. 'torch-cluster',
  70. 'torch-spline-conv',
  71. 'tqdm'
  72. ]
  73. )