diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000000..0c71e4a505d9 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent { + docker { + image 'pytorch/pytorch' + } + } + stages { + stage('SETUP') { + steps { + sh 'easy_install nose' + } + } + stage('BUILD') { + steps { + dir('python') { + sh 'python setup.py install' + } + } + } + stage('TEST') { + steps { + sh 'nosetests tests -v --with-xunit' + } + } + } + post { + always { + junit '*.xml' + } + } +} diff --git a/README.md b/README.md index 0868c734977f..019d083a4b71 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Deep Graph Library +[![Build Status](http://216.165.71.225:8080/buildStatus/icon?job=DGL-fork/master)](http://216.165.71.225:8080/job/DGL-fork/master) +[![GitHub license](https://dmlc.github.io/img/apache2.svg)](./LICENSE) ## Architecture Show below, there are three sets of APIs for different models. diff --git a/python/VERSION b/python/VERSION new file mode 100644 index 000000000000..8acdd82b765e --- /dev/null +++ b/python/VERSION @@ -0,0 +1 @@ +0.0.1 diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 000000000000..4efd00d54f4b --- /dev/null +++ b/python/setup.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +import setuptools +import os.path + +with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as f: + version = f.readline().strip() + +setuptools.setup( + name='dgl', + version=version, + description='Deep Graph Library', + maintainer='DGL Team', + maintainer_email='wmjlyjemaine@gmail.com', + packages=setuptools.find_packages(), + install_requires=[ + 'numpy>=1.14.0', + 'scipy>=1.1.0', + 'networkx>=2.1', + ], + data_files=[('', ['VERSION'])], + url='https://github.com/jermainewang/dgl-1')