move main to app module
This commit is contained in:
parent
417201805c
commit
22e7b08288
4 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,9 @@ from app.converter import Converter
|
|||
|
||||
|
||||
def main():
|
||||
"""
|
||||
Main function of the program.
|
||||
"""
|
||||
# Configurator
|
||||
ensure_config_exists()
|
||||
configurator = Configurator()
|
|
@ -9,4 +9,4 @@ RUN pip install -r requirements.txt
|
|||
COPY .. /app
|
||||
|
||||
ENTRYPOINT [ "python" ]
|
||||
CMD [ "main.py" ]
|
||||
CMD [ "-m", "app.main" ]
|
|
@ -8,7 +8,7 @@
|
|||
project = "Jekyll To Hugo"
|
||||
copyright = "2023-Present, Denis Nutiu and contributors"
|
||||
author = "Denis Nutiu and contributors"
|
||||
release = "0.0.7"
|
||||
release = "0.0.9"
|
||||
html_logo = "_static/nuculabs_logo.png"
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "jekyll-to-hugo"
|
||||
version = "0.0.8"
|
||||
version = "0.0.9"
|
||||
authors = [
|
||||
{ name="Denis Nutiu", email="nuculabs@outlook.com" },
|
||||
]
|
||||
|
@ -28,7 +28,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[project.scripts]
|
||||
jekyll-to-hugo = "main:main"
|
||||
jekyll-to-hugo = "app.main:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["black", "isort", "autoflake", "pytest"]
|
||||
|
|
Loading…
Reference in a new issue