This repository was archived by the owner on Feb 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (52 loc) · 1.81 KB
/
setup.py
File metadata and controls
62 lines (52 loc) · 1.81 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import os.path as op
from setuptools import setup, find_packages
# get the version (don't import saber here, so dependencies are not needed)
version = None
with open(op.join('saber', '__init__.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('\'')
break
if version is None:
raise RuntimeError('Could not determine version')
descr = """SABER: Swift A/B Experiment Report."""
DISTNAME = 'saber'
DESCRIPTION = descr
AUTHOR = 'Ben Miroglio'
AUTHOR_EMAIL = 'bmiroglio@mozilla.com'
MAINTAINER = 'Teon L Brooks'
MAINTAINER_EMAIL = 'teon@mozilla.com'
LICENSE = 'MPL 2.0'
DOWNLOAD_URL = 'http://github.com/bmiroglio/saber'
VERSION = version
if __name__ == "__main__":
setup(name=DISTNAME,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=MAINTAINER,
include_package_data=True,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
version=VERSION,
download_url=DOWNLOAD_URL,
zip_safe=False, # the package can run out of an .egg file
platforms='any',
packages=find_packages(where='saber'),
package_dir={'': 'saber'},
install_requires=[
'mozanalysis',
'jsonschema',
'pandas',
'jupyter-book',
'jupytext',
'plotly'
],
entry_points={'console_scripts': [
'saber = utils.command_line:run',
]})