Example #1
0
def build_other(parser: Parser) -> None:
    other_group = parser.add_argument_group('Other')

    other_group.add_argument('--cache-path',
                             help='path to dephell cache',
                             type=expanded_path)
    other_group.add_argument('--cache-ttl',
                             type=int,
                             help='Time to live for releases list cache')

    other_group.add_argument('--project',
                             help='path to the current project',
                             type=expanded_path)
    other_group.add_argument('--bin',
                             help='path to the dir for installing scripts',
                             type=expanded_path)
    other_group.add_argument(
        '--ca',
        help='path to CA_BUNDLE file for SSL verification.',
        type=expanded_path)

    other_group.add_argument(
        '--envs',
        nargs='*',
        help='environments (main, dev) or extras to install')
    other_group.add_argument('--tests',
                             nargs='*',
                             help='paths to test files',
                             type=expanded_path)
    other_group.add_argument('--versioning',
                             choices=sorted(get_schemes()),
                             help='versioning scheme for project')
         'path': dict(type='string', required=True),
         'ttl': dict(type='integer', required=True),
     },
 ),
 'project':
 dict(type='string', required=True),
 'bin':
 dict(type='string', required=True),
 'ca':
 dict(type='string', required=False),
 'envs':
 dict(type='list', schema=dict(type='string'), required=False, empty=False),
 'tests':
 dict(type='list', schema=dict(type='string'), required=True),
 'versioning':
 dict(type='string', required=True, allowed=get_schemes()),
 'command':
 dict(
     anyof=[
         dict(type='string'),
         dict(type='list', schema=dict(type='string')),
     ],
     required=False,
 ),
 'vendor':
 dict(
     type='dict',
     required=True,
     schema={
         'exclude':
         dict(type='list',