import codecs as _codecs_
-import collections as _collections_
import os as _os_
import re as _re_
@property
def copymode(self):
+ """file copy mode ('symlink', 'hardlink' or None)"""
return self.__table["copymode"]
@copymode.setter
@property
def local_copymode(self):
+ """file copy mode for local directory ('symlink', 'hardlink' or None)"""
return self.__table["local_copymode"]
@local_copymode.setter
@property
def copyrights(self):
+ """update the license copyright text"""
return bool(self.__table["options"] & Base._Option_.Copyrights)
@copyrights.setter
def type_assert(key, value, types):
+ """panic if value has a type different than mentioned in types"""
typeset = []
if isinstance(types, type):
types = [types]
from .config import LGPLv2_LICENSE as _LGPLv2_LICENSE_
from .config import LGPLv3_LICENSE as _LGPLv3_LICENSE_
from .config import GPLv2_LICENSE as _GPLv2_LICENSE_
-from .config import GPLv3_LICENSE as _GPLv3_LICENSE_
from .config import LGPL_LICENSE as _LGPL_LICENSE_
-from .config import GPL_LICENSE as _GPL_LICENSE_
class _CopyrightsCopyModeOption_(_CopyModeOption_):
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
-
def __call__(self, parser, namespace, value, option=None):
if not hasattr(namespace, self.dest):
setattr(namespace, "copyrights", False)