forked from freifunk-darmstadt/grafana-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (32 loc) · 996 Bytes
/
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
import codecs
import os.path
import sys
from setuptools import setup, find_packages
from grafana_backup import __PROJECT__, __VERSION__
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
here = os.path.abspath(os.path.dirname(__file__))
# use README as long description
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as handle:
long_description = handle.read()
# required dependencies
required = [
'click',
'requests',
]
setup(
name=__PROJECT__,
version=__VERSION__,
description='Create dashboards backups using the Grafana API.',
long_description=long_description,
author='Andreas Rammhold',
author_email='[email protected]',
url='https://www.github.com/freifunk-darmstadt/grafana-backup',
license='GPLv2',
install_requires=required,
packages=find_packages(),
entry_points={
'console_scripts': ['grafana-backup=grafana_backup:backup']
},
)