-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
55 lines (47 loc) · 1.53 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
"""
Dalmatiner Graphite
"""
import os
import re
from setuptools import find_packages, setup
def fread(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
VERSIONFILE = "ddbgraphite/_version.py"
verstrline = fread(VERSIONFILE).strip()
vsre = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(vsre, verstrline, re.M)
if mo:
VERSION = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." %
(VERSIONFILE, ))
return VERSION
dependencies = ['nose', 'ddbpy']
setup(name='ddbgraphite',
version=get_version(),
url='https://github.com/dataloop/dalmatiner-graphite',
download_url=
"https://github.com/dataloop/dalmatiner-graphite/tarball/v" +
get_version(),
license="Apache License, Version 2.0",
author='Steven Acreman',
author_email='[email protected]',
description='Dalmatiner Graphite',
long_description=fread('README.rst'),
keywords="dataloop dalmatiner",
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=dependencies,
entry_points={
'console_scripts': [
'ddbgraphite = ddbgraphite.listen:main',
],
},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
])