-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
74 lines (62 loc) · 2.3 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""
Install the package containing the SPARQL kernel for Jupyter.
To actually use the kernel it needs to be installed into Jupyter afterwards.
"""
from __future__ import print_function
import os
import os.path
import sys
from setuptools import setup
from sparqlkernel.constants import __version__, LANGUAGE, DISPLAY_NAME
PKGNAME = 'sparqlkernel'
GITHUB_URL = 'https://github.com/paulovn/sparql-kernel'
setup_args = dict (
name=PKGNAME,
version=__version__,
description= 'A Jupyter kernel for SPARQL queries',
long_description=
'''This module installs a Jupyter kernel for SPARQL. It allows sending queries
to an SPARQL endpoint and fetching & presenting the results in a notebook.
It is implemented as a Jupyter wrapper kernel, by using the Python
SPARQLWrapper & rdflib packages''',
license='3-clause BSD license',
url=GITHUB_URL,
download_url = GITHUB_URL + '/tarball/v' + __version__,
author='Paulo Villegas',
author_email='[email protected]',
packages=[ PKGNAME ],
install_requires = [ 'setuptools',
'ipykernel >= 4.0',
'notebook',
'traitlets',
'rdflib',
'pygments',
'SPARQLWrapper', ],
# extras_require = {
# 'Diagram': [ 'graphviz' ] },
entry_points = {
'console_scripts':
[ 'jupyter-sparqlkernel = sparqlkernel.__main__:main'],
'pygments.lexers' :
['sparql_with_magic = sparqlkernel.pygments_sparql:SparqlLexerMagics']
},
include_package_data = False, # otherwise package_data is not used
package_data = {
PKGNAME : [ 'resources/logo-*.png', 'resources/*.css' ],
},
keywords = ['SPARQL','RDF','Jupyter','kernel'],
classifiers = [
'Framework :: IPython',
'Framework :: Jupyter',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: BSD License',
'Development Status :: 4 - Beta',
'Topic :: Database :: Front-Ends',
'Topic :: System :: Shells',
],
)
if __name__ == '__main__':
setup( **setup_args )