move main to app module

This commit is contained in:
Denis-Cosmin Nutiu 2023-06-05 13:52:29 +03:00
parent 417201805c
commit 22e7b08288
4 changed files with 7 additions and 4 deletions

View file

@ -5,6 +5,9 @@ from app.converter import Converter
def main(): def main():
"""
Main function of the program.
"""
# Configurator # Configurator
ensure_config_exists() ensure_config_exists()
configurator = Configurator() configurator = Configurator()

View file

@ -9,4 +9,4 @@ RUN pip install -r requirements.txt
COPY .. /app COPY .. /app
ENTRYPOINT [ "python" ] ENTRYPOINT [ "python" ]
CMD [ "main.py" ] CMD [ "-m", "app.main" ]

View file

@ -8,7 +8,7 @@
project = "Jekyll To Hugo" project = "Jekyll To Hugo"
copyright = "2023-Present, Denis Nutiu and contributors" copyright = "2023-Present, Denis Nutiu and contributors"
author = "Denis Nutiu and contributors" author = "Denis Nutiu and contributors"
release = "0.0.7" release = "0.0.9"
html_logo = "_static/nuculabs_logo.png" html_logo = "_static/nuculabs_logo.png"
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "jekyll-to-hugo" name = "jekyll-to-hugo"
version = "0.0.8" version = "0.0.9"
authors = [ authors = [
{ name="Denis Nutiu", email="nuculabs@outlook.com" }, { name="Denis Nutiu", email="nuculabs@outlook.com" },
] ]
@ -28,7 +28,7 @@ dependencies = [
] ]
[project.scripts] [project.scripts]
jekyll-to-hugo = "main:main" jekyll-to-hugo = "app.main:main"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["black", "isort", "autoflake", "pytest"] dev = ["black", "isort", "autoflake", "pytest"]