-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
39 lines (36 loc) · 1.36 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
from distutils.core import setup
from glob import glob
import os
def find_dirs(dir_name):
for dir, dirs, files in os.walk('.'):
if dir_name in dirs:
yield os.path.relpath(os.path.join(dir, dir_name))
# Find all of the man/info pages
data_files = []
man_sections = {}
for dir in find_dirs('man'):
for file in os.listdir(dir):
section = file.split('.')[-2]
man_sections[section] = man_sections.get(section, []) + [os.path.join(dir, file)]
for section in man_sections:
data_files.append(('share/man/man'+section, man_sections[section]))
setup(
name = 'graphite-analytics',
packages = ['graphite'],
package_data={
'graphite' : ['graphite.py', 'capture.js', 'templates/css/styles.css', 'templates/js/Chart.PieceLabel.js', 'templates/html/render.html', 'templates/fonts/Antro_Vectra.otf', 'templates/images/Calendar-icon.png'],
},
version = '0.1.2.17',
description = 'Create a print-out template for your google analytics data',
author = 'Arian Moslem',
author_email = '[email protected]',
url = 'https://github.com/ARM-open/Graphite',
include_package_data=True,
zip_safe=True,
classifiers = [],
keywords = ['Google analytics', 'analytics', 'templates'],
install_requires=['Click', 'google-api-python-client', 'jinja2'],
entry_points={'console_scripts': [
'graphite-analytics = graphite.graphite:main'
]}
)