# Standard modules
import logging
import re
-import copy
-import warnings
-import time
-import datetime
# Third party modules
-import requests
-import pytz
# Own modules
-from fb_tools.common import pp, to_str, to_bool, is_sequence
+from fb_tools.common import to_str
from fb_tools.obj import FbBaseObjectError, FbBaseObject
from .xlate import XLATOR
-__version__ = '0.2.1'
+__version__ = '0.2.2'
LOG = logging.getLogger(__name__)
match = self.re_split_name.match(_full_name)
if not match:
- raise ModuleInfoError(
+ raise BaseModuleInfoError(
_("Could not analyze given full module name {!r}.").format(
full_name))
module_info.initialized = self.initialized
return module_info
+
# =============================================================================
if __name__ == "__main__":
from .module_meta_info import ModuleMetadata
-from .puppetfile import Puppetfile, PuppetfileError
-
from .forge.mod_info import ForgeModuleInfo
from .forge.mod_dict import ForgeModuleDict
if self.do_forge:
self.get_forge_information()
- #if self.verbose > 2:
- # LOG.debug("Found modules:\n{}".format(pp(self.modules.as_list())))
-
- #self.write_cache_file()
self.forge_modules.write_file()
print()
# Own modules
from fb_tools.common import pp, to_str, to_bool, is_sequence
-from fb_tools.obj import FbBaseObjectError, FbBaseObject
from .xlate import XLATOR
from .base_module_info import BaseModuleInfoError, BaseModuleInfo
-__version__ = '1.4.1'
+__version__ = '1.4.2'
LOG = logging.getLogger(__name__)
import logging
import re
import copy
-import warnings
-import time
-import datetime
-import copy
import json
# Third party modules
# Own modules
-from fb_tools.common import pp, to_str, to_bool, is_sequence
+from fb_tools.common import pp, to_str, is_sequence
from fb_tools.obj import FbBaseObjectError, FbBaseObject
from .xlate import XLATOR
-__version__ = '0.5.3'
+__version__ = '0.5.4'
LOG = logging.getLogger(__name__)
# -------------------------------------------------------------------------
def __copy__(self):
- new = cls(name=self.name, requirement=self.requirement)
+ new = self.__class__(name=self.name, requirement=self.requirement)
return new
# -------------------------------------------------------------------------
def __copy__(self):
- new = cls(name=self.name, releases=copy.copy(self.releases))
+ new = self.__class__(name=self.name, releases=copy.copy(self.releases))
return new