-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·69 lines (60 loc) · 1.52 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
import os
from shutil import copyfile
from setuptools import setup, find_packages
from suricate.paths import (
suricate_dir,
config_dir,
log_dir,
template_dir,
database_dir,
)
directories = (
suricate_dir,
config_dir,
log_dir,
template_dir,
database_dir,
)
for d in directories:
try:
os.mkdir(d)
print(f'Directory {d} created')
except OSError:
pass # Directory already exists
for file_name in os.listdir('templates'):
source_file = os.path.join('templates', file_name)
dest_file = os.path.join(template_dir, file_name)
copyfile(source_file, dest_file)
setup(
name='suricate',
version='0.1',
description='DISCOS monitor and API',
packages=find_packages(include=['suricate', 'suricate.*']),
py_modules=[],
author='Marco Buttu',
author_email="marco.buttu@inaf.it",
license='GPL',
url='https://github.com/discos/suricate/',
keywords='Alma Common Software property publisher',
scripts=['scripts/suricate-server', 'scripts/suricate-config'],
platforms='all',
install_requires=[
'redis',
'apscheduler',
'MarkupSafe',
'Jinja2',
'Flask',
'itsdangerous',
'Flask-SQLAlchemy',
'Flask-Migrate',
'pyyaml',
'rq',
'python-dotenv',
'requests',
],
classifiers=[
'Intended Audience :: Alma Common Software users',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.9',
],
)