Add new app to handle all dependencies

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-03 01:12:20 -04:00
parent 11e13cea1d
commit ea3b513ae3
208 changed files with 7847 additions and 45933 deletions
+31
View File
@@ -0,0 +1,31 @@
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.dependencies.classes import BinaryDependency, PythonDependency
from .backends.python import pdfinfo_path, pdftoppm_path
from .classes import libreoffice_path
BinaryDependency(
label='LibreOffice', module=__name__, name='libreoffice',
path=libreoffice_path
)
BinaryDependency(
label='PDF Info', help_text=_(
'Utility from the poppler-utils package used to inspect PDF files.'
), module=__name__, name='pdfinfo', path=pdfinfo_path
)
BinaryDependency(
label='PDF to PPM', help_text=_(
'Utility from the popper-utils package used to extract pages '
'from PDF files into PPM format images.'
), module=__name__, name='pdftoppm', path=pdftoppm_path
)
PythonDependency(
copyright_attribute='PIL.__doc__', module=__name__, name='Pillow',
version_string='==6.0.0',
)
PythonDependency(
module=__name__, name='PyPDF2', version_string='==1.26.0'
)