-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·56 lines (50 loc) · 1.39 KB
/
setup.py
File metadata and controls
executable file
·56 lines (50 loc) · 1.39 KB
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
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)
# Read requirements.txt
with open('requirements.txt', encoding='utf-8') as f:
requirements = f.read().splitlines()
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=requirements,
classifiers=[
'Intended Audience :: Alma Common Software users',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.9',
],
)