-
Notifications
You must be signed in to change notification settings - Fork 70
/
setup.py
48 lines (38 loc) · 1.34 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
# -*- 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=['nbclassic>=1'],
python_requires='>=3.7',
data_files=[('share/jupyter/nbextensions/appmode', [
'appmode/static/main.js',
'appmode/static/gears.svg'
])],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
print("\nPlease run the following commands to enable appmode:")
print(" jupyter nbclassic-extension enable --py --sys-prefix appmode")
print(" jupyter server extension enable --py --sys-prefix appmode")
#EOF