-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·69 lines (59 loc) · 1.9 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
import os.path as op
from codecs import open
from setuptools import setup, find_packages
def read(fname):
''' Return the file content. '''
here = op.abspath(op.dirname(__file__))
with open(op.join(here, fname), 'r', 'utf-8') as fd:
return fd.read()
readme = read('README.rst')
changelog = read('CHANGES.rst').replace('.. :changelog:', '')
requirements = [
#'tables',
'pyzmq',
'requests',
'pyyaml'
]
version = ''
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
read(op.join('colmet', '__init__.py')),
re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name='colmet-collector',
author="Olivier Richard",
author_email='olivier.richard@imag.fr',
version=version,
url='https://github.com/oar-team/colmet-collector',
# packages=find_packages(),
packages=["colmet"],
package_dir={'colmet': 'colmet'},
package_data={'colmet': ['collector/metrics/*.yml']},
install_requires=requirements,
include_package_data=True,
zip_safe=False,
description="Metrics collector for Rust Colmet version",
long_description=readme + '\n\n' + changelog,
keywords='colmet-collector',
license='GNU GPL',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Clustering',
],
entry_points={
'console_scripts': [
'colmet-collector = colmet.collector.main:main',
'colmet-node-config = colmet.node.configure:main',
],
},
)