forked from rapidsai/jupyterlab-nvdashboard
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
44 lines (39 loc) · 1.42 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
import setuptools
import json
import os
from os import path
this_directory = path.abspath(path.dirname(__file__))
# read the contents of README file
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
if 'GIT_DESCRIBE_TAG' in os.environ:
version = os.environ['GIT_DESCRIBE_TAG'] + os.environ.get('VERSION_SUFFIX', '')
else:
# get version from package.json (to avoid duplicating)
with open(path.join(this_directory, 'package.json'), encoding='utf-8') as f:
version = json.load(f)['version']
setuptools.setup(
name="jupyterlab-nvdashboard",
version=version,
url="https://github.com/rapidsai/jupyterlab-nvdashboard",
author="NV Dashbaord contributors",
description="A JupyterLab extension for displaying dashboards of GPU usage.",
long_description=long_description,
long_description_content_type='text/markdown',
license="BSD",
packages=setuptools.find_packages(),
keywords=['Jupyter'],
classifiers=['Framework :: Jupyter'],
install_requires=list(open("requirements.txt").read().strip().split("\n")),
entry_points={
'jupyter_serverproxy_servers': [
'nvdashboard = jupyterlab_nvdashboard:launch_server',
],
'console_scripts': [
'nvdashboard = jupyterlab_nvdashboard.server:go',
],
},
package_data={
'jupyterlab_nvdashboard': ['icons/*'],
},
)