-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
64 lines (59 loc) · 2.4 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
from setuptools import setup, find_packages
import os
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
setup(name=NAME,
version='3.4.11',
description='Reports, Profiles, 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-2',
classifiers=(
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
),
install_requires=[
'cryptography==36.*',
'deepdiff==4.*',
'dj-rest-auth==2.2.*',
'django-tenants==3.4.*',
'django-webpack-loader',
'Django==3.*',
'djangorestframework',
'djangorestframework-api-key',
'djangosaml2==1.0.*',
'psycopg2-binary',
'safety',
'typing_extensions @ git+https://github.com/vrdel/typing_extensions@239445a35dc95ca30d54b2e227291ea7dad9cae4',
'Unidecode'
],
scripts=['bin/poem-db', 'bin/poem-genseckey', 'bin/poem-manage',
'bin/poem-token', 'bin/poem-tenant', 'bin/poem-clearsessions',
'bin/poem-backup'],
data_files=[
('etc/poem', ['etc/poem.conf.template', 'etc/poem_logging.conf']),
('etc/cron.d/', ['cron/poem-clearsessions', 'cron/poem-db_backup']),
('etc/logrotate.d/', ['logrotate.d/poem-db_backup']),
('etc/httpd/conf.d', ['poem/apache/poem.conf']),
('usr/share/poem/apache', ['poem/apache/poem.wsgi']),
('', ['requirements.txt']),
('var/log/poem', ['helpers/empty']),
('var/lib/poem', ['helpers/empty']),
('var/db_backups', ['helpers/empty']),
] + get_files('usr/share/', 'poem/static'),
include_package_data=True,
package_dir={'Poem': 'poem/Poem'},
packages=find_packages('poem/'),
)