-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (38 loc) · 1.14 KB
/
setup.py
File metadata and controls
46 lines (38 loc) · 1.14 KB
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
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Copyright (c) 2022 BigML, Inc
#
import subprocess
from setuptools import setup
from setuptools.command.install import install
class NPMInstall(install):
def run(self):
subprocess.check_output("npm install xmlhttprequest", shell=True)
install.run(self)
with open('README.md') as f:
readme = f.read()
setup(
name='whizzml_kernel',
version='0.1.2',
packages=['whizzml_kernel', 'whizzml', 'magics'],
package_data={'whizzml':['whizzml_node.js']},
description='Simple WhizzML kernel for Jupyter',
long_description=readme,
long_description_content_type='text/markdown',
author='BigML Team',
author_email='bindings@bigml.com',
url='https://github.com/whizzml/whizzml_kernel',
install_requires=[
'jupyter_client', 'IPython', 'ipykernel', 'javascript', 'bigml', 'notebook'
],
cmdclass={
'install': NPMInstall
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
],
)