-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (63 loc) · 2.21 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
62
63
64
65
66
67
68
69
70
import os
import re
from setuptools import setup, find_packages
base_package = 'scope_plot'
# Get the version (borrowed from SQLAlchemy)
base_path = os.path.dirname(__file__)
with open(os.path.join(base_path, 'scope_plot', '__init__.py')) as f:
module_content = f.read()
VERSION = re.compile(r'.*__version__ = \'(.*?)\'',
re.S).match(module_content).group(1)
LICENSE = re.compile(r'.*__license__ = \'(.*?)\'',
re.S).match(module_content).group(1)
with open('README.md') as f:
readme = f.read()
with open('CHANGELOG.md') as f:
changes = f.read()
requirements = [
"bokeh>=0.13",
"click>=6.7",
"future>=0.16",
"matplotlib>=2.2",
"numpy>=1.14",
"pandas>=0.23",
"pyyaml>=3.13",
"selenium>=3.13",
"voluptuous>=0.11",
]
packages = [
base_package + '.' + x
for x in find_packages(os.path.join(base_path, base_package))
]
if base_package not in packages:
packages.append(base_package)
if __name__ == '__main__':
setup(
name='scope_plot',
description='Plot Google Benchmark results',
long_description='\n\n'.join([readme, changes]),
long_description_content_type='text/markdown', # This is important!
license=LICENSE,
url='https://github.com/rai-project/scope_plot',
version=VERSION,
author='Abdul Dakkak',
author_email='[email protected]',
maintainer='Carl Pearson',
maintainer_email='[email protected]',
entry_points={'console_scripts': ['scope_plot=scope_plot.cli:main']},
install_requires=requirements,
keywords=['scope_plot'],
packages=packages,
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
])