-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
60 lines (52 loc) · 1.57 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
# Copyright (C) 2015 by Per Unneberg
from setuptools import setup, find_packages
import glob
import versioneer
INSTALL_REQUIRES = [
'sphinx>=1.3',
'pytest',
'pytest-cov>=1.8.1',
'bokeh>=0.10.0',
]
try:
# Hack for readthedocs
if not 'readthedocs' in os.path.dirname(os.path.realpath(__file__)):
pass
else:
print("readthedocs in path name; assuming we're building docs @readthedocs")
INSTALL_REQUIRES.append('sphinx-bootstrap-theme')
except:
pass
# Integrating pytest with setuptools: see
# https://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test
from distutils.core import setup, Command
# you can also import from setuptools
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
_version = versioneer.get_version()
_cmdclass = versioneer.get_cmdclass()
setup(name="bokehutils",
version=_version,
cmdclass=_cmdclass,
author="Per Unneberg",
author_email="per.unneberg@scilifelab.se",
description="Utility functions for working with bokeh plots",
license="MIT",
scripts=glob.glob('scripts/*.py'),
install_requires=INSTALL_REQUIRES,
packages=find_packages(exclude=['ez_setup', 'test*']),
package_data={
'bokehutils': [
'_templates/*',
'static/*',
],
})