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
+1
View File
@@ -18,6 +18,7 @@ from mayan.apps.navigation.classes import SourceColumn
from mayan.celery import app
from .classes import StagingFile
from .dependencies import * # NOQA
from .handlers import (
handler_copy_transformations_to_version, handler_create_default_document_source,
handler_initialize_periodic_tasks
+22
View File
@@ -0,0 +1,22 @@
from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.dependencies.classes import (
BinaryDependency, JavaScriptDependency, PythonDependency
)
from .settings import setting_scanimage_path
BinaryDependency(
label='SANE scanimage', help_text=_(
'Utility provided by the SANE package. Used to control the scanner '
'and obtained the scanned document image.'
), module=__name__, name='scanimage', path=setting_scanimage_path.value
)
JavaScriptDependency(
module=__name__, name='dropzone', version_string='=5.4.0'
)
PythonDependency(
module=__name__, name='flanker', version_string='==0.9.0'
)
-13
View File
@@ -1,13 +0,0 @@
{
"name": "sources",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"dropzone": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/dropzone/-/dropzone-5.4.0.tgz",
"integrity": "sha1-MpDAf1mxietaEemaWMmyra5az+w="
}
}
}
@@ -1,16 +0,0 @@
{
"name": "sources",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"dropzone": "=5.4.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "Apache-2.0",
"private": true
}