trytontasks/__init__.py

39 lines
1 KiB
Python
Raw Normal View History

2016-06-01 11:54:58 +02:00
#This file is part of trytontasks. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from invoke import Collection
# import here your tryton tasks projects
import trytontasks_modules
import trytontasks_sao
2016-06-21 15:38:15 +02:00
from .bootstrap import *
2016-06-01 11:54:58 +02:00
# proteus tasks
try:
import trytontasks_gal
gal = True
except:
gal = False
try:
import trytontasks_userdoc
userdoc = True
except:
userdoc = False
try:
import trytontasks_tests
tests = True
except:
tests = False
ns = Collection()
ns.add_collection(Collection.from_module(trytontasks_modules, name='modules'))
ns.add_collection(Collection.from_module(trytontasks_sao, name='sao'))
if gal:
ns.add_collection(Collection.from_module(trytontasks_gal, name='gal'))
if userdoc:
ns.add_collection(Collection.from_module(trytontasks_userdoc, name='doc'))
if tests:
ns.add_collection(Collection.from_module(trytontasks_tests, name='tests'))
2016-06-21 15:38:15 +02:00
ns.add_collection(Collection.from_module(bootstrap, name='nan40'))