Changed versions
This commit is contained in:
@@ -15,7 +15,7 @@ __title__ = 'cpl_cli.command'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.10.2'
|
||||
__version__ = '2021.10.3'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
@@ -28,4 +28,4 @@ from .publish_service import PublishService
|
||||
from .version_service import VersionService
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='2')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='3')
|
||||
|
@@ -180,7 +180,7 @@ class NewService(CommandABC):
|
||||
self._use_service_providing = True
|
||||
|
||||
result = Console.read('Do you want to use async? (y/n) ')
|
||||
if result.lower == 'y':
|
||||
if result.lower() == 'y':
|
||||
self._use_async = True
|
||||
|
||||
Console.set_foreground_color(ForegroundColorEnum.default)
|
||||
|
@@ -52,7 +52,11 @@ class VersionService(CommandABC):
|
||||
]
|
||||
packages = []
|
||||
for modname in cpl_packages:
|
||||
module = pkgutil.find_loader(modname).load_module(modname)
|
||||
module = pkgutil.find_loader(modname)
|
||||
if module is None:
|
||||
break
|
||||
|
||||
module = module.load_module(modname)
|
||||
if '__version__' in dir(module):
|
||||
packages.append([f'{modname}', module.__version__])
|
||||
|
||||
|
Reference in New Issue
Block a user