forked from ARGOeu/poem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (44 loc) · 1.84 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
from setuptools import setup, find_packages
import os
import sys
NAME='poem'
def get_files(install_prefix, directory):
files = []
for root, _, filenames in os.walk(directory):
subdir_files = []
for filename in filenames:
subdir_files.append(os.path.join(root, filename))
if filenames and subdir_files:
files.append((os.path.join(install_prefix, root), subdir_files))
return files
poem_media_files = get_files("usr/share", "poem/media") + get_files("usr/share/", "poem/static")
setup(name=NAME,
version='2.3.0',
description='Profile, Probes and Metric Configuration Management (POEM) for ARGO Monitoring framework.',
author='SRCE',
author_email='[email protected], [email protected]',
license='Apache License 2.0',
long_description=open('README.md').read(),
long_description_content_type = 'text/markdown',
url='https://github.com/ARGOeu/poem',
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
),
scripts = ['bin/poem-syncvo', 'bin/poem-syncservtype',
'bin/poem-db', 'bin/poem-importprofiles',
'bin/poem-exportprofiles', 'bin/poem-genseckey',
'bin/poem-token', 'bin/poem-syncservices', 'bin/poem-tenant'],
data_files = [
('etc/poem', ['etc/poem.conf', 'etc/poem_logging.conf']),
('etc/cron.d/', ['cron/poem-syncvosf', 'cron/poem-clearsessions']),
('etc/httpd/conf.d', ['poem/apache/poem.conf']),
('usr/share/poem/apache', ['poem/apache/poem.wsgi']),
('var/log/poem', ['helpers/empty']),
('var/lib/poem', ['helpers/empty']),
] + poem_media_files,
include_package_data=True,
package_dir = {'Poem': 'poem/Poem'},
packages=find_packages('poem/')
)