diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0189656f..18f6503d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -22,8 +22,9 @@
-
-
+
+
+
@@ -462,13 +463,6 @@
1605881914521
-
- 1608137669182
-
-
-
- 1608137669182
-
1608138851088
@@ -805,7 +799,14 @@
1615231748656
-
+
+ 1615231794961
+
+
+
+ 1615231794961
+
+
@@ -821,7 +822,6 @@
-
@@ -846,7 +846,8 @@
-
+
+
diff --git a/src/cpl/__init__.py b/src/cpl/__init__.py
index b75fa16f..ca0e2c9a 100644
--- a/src/cpl/__init__.py
+++ b/src/cpl/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl'
+__title__ = 'sh_cpl.cpl'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/application/__init__.py b/src/cpl/application/__init__.py
index 4aece354..7cddb168 100644
--- a/src/cpl/application/__init__.py
+++ b/src/cpl/application/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.application'
+__title__ = 'cpl.application'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/configuration/__init__.py b/src/cpl/configuration/__init__.py
index 9921ca42..0390cd3c 100644
--- a/src/cpl/configuration/__init__.py
+++ b/src/cpl/configuration/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.configuration'
+__title__ = 'cpl.configuration'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/console/__init__.py b/src/cpl/console/__init__.py
index b4006f60..14939696 100644
--- a/src/cpl/console/__init__.py
+++ b/src/cpl/console/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.console'
+__title__ = 'cpl.console'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/database/__init__.py b/src/cpl/database/__init__.py
index 0410f868..00d60753 100644
--- a/src/cpl/database/__init__.py
+++ b/src/cpl/database/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.database'
+__title__ = 'cpl.database'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/database/connection/__init__.py b/src/cpl/database/connection/__init__.py
index 9d03458d..4d8d82b7 100644
--- a/src/cpl/database/connection/__init__.py
+++ b/src/cpl/database/connection/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.database.connection'
+__title__ = 'cpl.database.connection'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/database/context/__init__.py b/src/cpl/database/context/__init__.py
index 1dff6371..84c9bade 100644
--- a/src/cpl/database/context/__init__.py
+++ b/src/cpl/database/context/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.database.context'
+__title__ = 'cpl.database.context'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/dependency_injection/__init__.py b/src/cpl/dependency_injection/__init__.py
index 2df836e3..3212dc59 100644
--- a/src/cpl/dependency_injection/__init__.py
+++ b/src/cpl/dependency_injection/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.dependency_injection'
+__title__ = 'cpl.dependency_injection'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/environment/__init__.py b/src/cpl/environment/__init__.py
index f48e02c9..e8c90703 100644
--- a/src/cpl/environment/__init__.py
+++ b/src/cpl/environment/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.environment'
+__title__ = 'cpl.environment'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/logging/__init__.py b/src/cpl/logging/__init__.py
index 1e550984..e81f7e49 100644
--- a/src/cpl/logging/__init__.py
+++ b/src/cpl/logging/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.logging'
+__title__ = 'cpl.logging'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/mailing/__init__.py b/src/cpl/mailing/__init__.py
index ec847a41..3fdcdcfe 100644
--- a/src/cpl/mailing/__init__.py
+++ b/src/cpl/mailing/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.mailing'
+__title__ = 'cpl.mailing'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/time/__init__.py b/src/cpl/time/__init__.py
index 5d247d2b..95f50657 100644
--- a/src/cpl/time/__init__.py
+++ b/src/cpl/time/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.time'
+__title__ = 'cpl.time'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl/utils/__init__.py b/src/cpl/utils/__init__.py
index 8eb71179..d8b64aed 100644
--- a/src/cpl/utils/__init__.py
+++ b/src/cpl/utils/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl.utils'
+__title__ = 'cpl.utils'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl_cli/__init__.py b/src/cpl_cli/__init__.py
index 747e8e19..b2fbf81c 100644
--- a/src/cpl_cli/__init__.py
+++ b/src/cpl_cli/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl_cli'
+__title__ = 'sh_cpl.cpl_cli'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl_cli/command/__init__.py b/src/cpl_cli/command/__init__.py
index af311476..4acd126f 100644
--- a/src/cpl_cli/command/__init__.py
+++ b/src/cpl_cli/command/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl_cli.command'
+__title__ = 'cpl_cli.command'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl_cli/configuration/__init__.py b/src/cpl_cli/configuration/__init__.py
index dd20eb8c..fd25e6c1 100644
--- a/src/cpl_cli/configuration/__init__.py
+++ b/src/cpl_cli/configuration/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl_cli.configuration'
+__title__ = 'cpl_cli.configuration'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl_cli/publish/__init__.py b/src/cpl_cli/publish/__init__.py
index e2442fc2..353e4013 100644
--- a/src/cpl_cli/publish/__init__.py
+++ b/src/cpl_cli/publish/__init__.py
@@ -11,7 +11,7 @@ sh-edraft Common Python library
"""
-__title__ = 'src.cpl_cli.publish'
+__title__ = 'cpl_cli.publish'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 sh-edraft.de'
diff --git a/src/cpl_cli/publish/publisher.py b/src/cpl_cli/publish/publisher.py
index f324e8db..f2f523c5 100644
--- a/src/cpl_cli/publish/publisher.py
+++ b/src/cpl_cli/publish/publisher.py
@@ -38,6 +38,9 @@ class Publisher(PublisherABC):
@staticmethod
def _get_module_name_from_dirs(file: str) -> str:
+ if 'src/' in file:
+ file = file.replace('src/', '')
+
dirs = os.path.dirname(file).split('/')
for d in dirs:
if d.__contains__('.'):
@@ -225,7 +228,8 @@ class Publisher(PublisherABC):
setup_string = stringTemplate(template_string).substitute(
Name=self._project_settings.name,
Version=self._project_settings.version.to_str(),
- Packages=setuptools.find_packages(where=self._build_settings.source_path, exclude=self._build_settings.excluded),
+ Packages=setuptools.find_packages(where=self._build_settings.source_path,
+ exclude=self._build_settings.excluded),
URL=self._project_settings.url,
LicenseName=self._project_settings.license_name,
Author=self._project_settings.author,