This repository has been archived by the owner on Sep 15, 2018. It is now read-only.
forked from oschuett/appmode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (39 loc) · 1.4 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
# -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
from os import path
import re
def find_version():
here = path.abspath(path.dirname(__file__))
absfn = path.join(here, 'appmode/__init__.py')
content = open(absfn).read()
match = re.search(r"\n__version__ = ['\"]([^'\"]+)['\"]", content)
return match.group(1)
setup(
name='appmode',
license='MIT',
version = find_version(),
author = 'Ole Schuett',
author_email = '[email protected]',
url='http://github.com/oschuett/appmode',
description='A Jupyter extensions that turns notebooks into web applications.',
packages=["appmode"],
include_package_data = True,
install_requires=['notebook>=5'],
data_files=[('share/jupyter/nbextensions/appmode', [
'appmode/static/main.js',
'appmode/static/gears.svg'
])],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
print("\nPlease run the following commands to enable appmode:")
print(" jupyter serverextension enable --py --sys-prefix appmode")
print(" jupyter nbextension enable --py --sys-prefix appmode")
#EOF