cubicweb/devtools/devctl.py
changeset 12567 26744ad37953
parent 12508 a8c1ea390400
child 12578 d06a2feae373
equal deleted inserted replaced
12566:6b3523f81f42 12567:26744ad37953
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """additional cubicweb-ctl commands and command handlers for cubicweb and
    18 """additional cubicweb-ctl commands and command handlers for cubicweb and
    19 cubicweb's cubes development
    19 cubicweb's cubes development
    20 """
    20 """
    21 from __future__ import print_function
       
    22 
       
    23 # *ctl module should limit the number of import to be imported as quickly as
    21 # *ctl module should limit the number of import to be imported as quickly as
    24 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
    22 # possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
    25 # completion). So import locally in command helpers.
    23 # completion). So import locally in command helpers.
    26 
    24 
    27 import shutil
    25 import shutil
    30 from datetime import datetime, date
    28 from datetime import datetime, date
    31 from os import getcwd, mkdir, chdir, path as osp
    29 from os import getcwd, mkdir, chdir, path as osp
    32 import pkg_resources
    30 import pkg_resources
    33 
    31 
    34 from pytz import UTC
    32 from pytz import UTC
    35 
       
    36 from six.moves import input
       
    37 
    33 
    38 from logilab.common import STD_BLACKLIST
    34 from logilab.common import STD_BLACKLIST
    39 from logilab.common.modutils import clean_sys_modules
    35 from logilab.common.modutils import clean_sys_modules
    40 from logilab.common.fileutils import ensure_fs_mode
    36 from logilab.common.fileutils import ensure_fs_mode
    41 from logilab.common.shellutils import find
    37 from logilab.common.shellutils import find
   715             'Enter a short description for your cube: ')
   711             'Enter a short description for your cube: ')
   716         if verbose:
   712         if verbose:
   717             longdesc = input(
   713             longdesc = input(
   718                 'Enter a long description (leave empty to reuse the short one): ')
   714                 'Enter a long description (leave empty to reuse the short one): ')
   719         dependencies = {
   715         dependencies = {
   720             'six': '>= 1.4.0',
       
   721             'cubicweb': '>= %s' % cubicwebversion,
   716             'cubicweb': '>= %s' % cubicwebversion,
   722         }
   717         }
   723         if verbose:
   718         if verbose:
   724             dependencies.update(self._ask_for_dependencies())
   719             dependencies.update(self._ask_for_dependencies())
   725         context = {
   720         context = {