-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 1.41 KB
/
setup.py
File metadata and controls
48 lines (42 loc) · 1.41 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
47
48
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"__version__ = ['\"]([^'\"]+)['\"]", content)
return match.group(1)
setup(
name="appmode",
license="MIT",
version=find_version(),
author="Ole Schuett",
author_email="ole.schuett@cp2k.org",
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"],
),
(
"etc/jupyter/jupyter_server_config.d",
["jupyter-config/jupyter_server_config.d/appmode.json"],
),
],
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