Add new app to handle all dependencies
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user