forked from Digital-Preservation-Finland/dpres-siptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (59 loc) · 2 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
"""
Install siptools
"""
import os
from setuptools import setup, find_packages
from version import get_version
def scripts_list():
"""Return list of command line tools from package pas.scripts"""
scripts = []
for modulename in os.listdir('siptools/scripts'):
if modulename == '__init__.py':
continue
if not modulename.endswith('.py'):
continue
modulename = modulename.replace('.py', '')
scriptname = modulename.replace('_', '-')
scripts.append(
'%s = siptools.scripts.%s:main' % (scriptname, modulename)
)
print(scripts)
return scripts
def main():
"""Install siptools"""
setup(
name='siptools',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
version=get_version(),
install_requires=[
"lxml",
"scandir",
"file-magic",
"pymediainfo",
"wand>=0.5.1",
"Pillow",
"six",
"olefile",
"opf-fido",
"click",
"ffmpeg-python",
"M2Crypto",
"python-mimeparse",
'xml_helpers@git+https://gitlab.csc.fi/dpres/xml-helpers.git'
'@develop',
'mets@git+https://gitlab.csc.fi/dpres/mets.git@develop',
'premis@git+https://gitlab.csc.fi/dpres/premis.git@develop',
'dpres_signature@git+https://gitlab.csc.fi/dpres/'
'dpres-signature.git@develop',
'nisomix@git+https://gitlab.csc.fi/dpres/nisomix.git@develop',
'addml@git+https://gitlab.csc.fi/dpres/addml.git@develop',
'audiomd@git+https://gitlab.csc.fi/dpres/audiomd.git@develop',
'videomd@git+https://gitlab.csc.fi/dpres/videomd.git@develop',
'file_scraper@git+https://gitlab.csc.fi/dpres/file-scraper.'
'git@develop'
],
entry_points={'console_scripts': scripts_list()}
)
if __name__ == '__main__':
main()