From f9826e28a51ee2f4c50c83c077934bd49bb81e04 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 8 Mar 2021 20:29:08 +0100 Subject: [PATCH] Added publish logic --- .idea/workspace.xml | 209 ++++++++++-------- cpl.json | 43 ++++ docs/{cli.md => cli.txt} | 0 docs/{install.md => install.txt} | 0 docs/project_structure.txt | 5 + docs/{structure.md => structure.txt} | 0 docs/{todo.md => todo.txt} | 0 publish_templates/all_template.txt | 25 --- requirements.txt | 29 --- src/cpl.json | 26 --- src/cpl/__init__.py | 8 +- src/cpl/application/__init__.py | 8 +- src/cpl/configuration/__init__.py | 8 +- src/cpl/console/__init__.py | 8 +- src/cpl/database/__init__.py | 8 +- src/cpl/database/connection/__init__.py | 8 +- src/cpl/database/context/__init__.py | 8 +- src/cpl/dependency_injection/__init__.py | 8 +- src/cpl/environment/__init__.py | 8 +- src/cpl/logging/__init__.py | 8 +- src/cpl/mailing/__init__.py | 8 +- src/cpl/time/__init__.py | 8 +- src/cpl/utils/__init__.py | 8 +- src/cpl/version/version_enum.py | 8 - src/cpl_cli/__init__.py | 8 +- src/cpl_cli/__main__.py | 4 + src/cpl_cli/cli.py | 2 + src/cpl_cli/command/__init__.py | 8 +- src/cpl_cli/command/publish.py | 13 ++ .../configuration}/__init__.py | 8 +- src/cpl_cli/configuration/build_settings.py | 65 ++++++ .../configuration/build_settings_name.py | 12 + .../project_settings.py | 114 +++++----- .../configuration/project_settings_name.py | 18 ++ .../configuration}/version.py | 14 +- .../configuration/version_settings_name.py | 8 + src/cpl_cli/main.py | 3 +- src/cpl_cli/publish/__init__.py | 8 +- src/cpl_cli/publish/project_settings_name.py | 19 -- src/cpl_cli/publish/publisher.py | 188 ++++++++++++---- src/cpl_cli/startup.py | 3 + src/cpl_cli/templates/publish/setup.txt | 21 ++ src/tests/__init__.py | 6 +- src/tests/db/__init__.py | 6 +- 44 files changed, 590 insertions(+), 387 deletions(-) create mode 100644 cpl.json rename docs/{cli.md => cli.txt} (100%) rename docs/{install.md => install.txt} (100%) create mode 100644 docs/project_structure.txt rename docs/{structure.md => structure.txt} (100%) rename docs/{todo.md => todo.txt} (100%) delete mode 100644 publish_templates/all_template.txt delete mode 100644 requirements.txt delete mode 100644 src/cpl.json delete mode 100644 src/cpl/version/version_enum.py create mode 100644 src/cpl_cli/__main__.py rename src/{cpl/version => cpl_cli/configuration}/__init__.py (70%) create mode 100644 src/cpl_cli/configuration/build_settings.py create mode 100644 src/cpl_cli/configuration/build_settings_name.py rename src/cpl_cli/{publish => configuration}/project_settings.py (61%) create mode 100644 src/cpl_cli/configuration/project_settings_name.py rename src/{cpl/version => cpl_cli/configuration}/version.py (65%) create mode 100644 src/cpl_cli/configuration/version_settings_name.py delete mode 100644 src/cpl_cli/publish/project_settings_name.py create mode 100644 src/cpl_cli/templates/publish/setup.txt diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bd98c606..96f26e36 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -22,9 +22,50 @@