-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (52 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
59
60
61
from setuptools import setup, find_packages
import distutils.cmd
import os
import distutils.log
import setuptools
import setuptools.command.build_py
import subprocess
from os import path
from subprocess import check_output
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
class BuildDashboardCommand(distutils.cmd.Command):
description = 'build the 3db dashboard'
user_options = [
# The format is (long option, short option, description).
]
def initialize_options(self):
"""Set default values for options."""
# Each user option must be listed here with their default value.
def finalize_options(self):
"""Post-process options."""
pass
def run(self):
"""Run command."""
command = ['/bin/bash', path.join(os.getcwd(), 'build_dashboard.sh')]
self.announce(
'Running command: %s' % str(command),
level=distutils.log.INFO)
r = subprocess.check_output(command)
print(r)
setup(name='threedboard',
version='0.0.8',
description='Web Interface to visualize the results of 3DB experiments',
url='https://github.com/3db/dashboard',
author='3DB authors',
long_description=long_description,
long_description_content_type='text/markdown',
author_email='[email protected]',
license='MIT',
install_requires=[
'flask',
'flask_cors',
'numpy',
'tqdm',
'flask-compress'],
packages=find_packages(),
cmdclass={
'build_dashboard': BuildDashboardCommand
},
include_package_data=True,
zip_safe=False)