diff --git a/pyproject.toml b/pyproject.toml index b0b3f38..b5cf6fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,10 +5,18 @@ description = "Add your description here" authors = [ { name = "Amy Gale Ruth Bowersox", email = "amy@erbosoft.com" } ] -dependencies = [] +dependencies = [ + "jinja2~=3.1.4", + "markdown~=3.6", + "markupsafe~=2.1.5", + "pyyaml~=6.0.1", +] readme = "README.md" requires-python = ">= 3.8" +[project.scripts] +'dragonglass' = "dragonglass:main" + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/requirements-dev.lock b/requirements-dev.lock index 505fd45..35fa711 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -10,3 +10,12 @@ # universal: false -e file:. +jinja2==3.1.4 + # via dragonglass +markdown==3.6 + # via dragonglass +markupsafe==2.1.5 + # via dragonglass + # via jinja2 +pyyaml==6.0.1 + # via dragonglass diff --git a/requirements.lock b/requirements.lock index 505fd45..35fa711 100644 --- a/requirements.lock +++ b/requirements.lock @@ -10,3 +10,12 @@ # universal: false -e file:. +jinja2==3.1.4 + # via dragonglass +markdown==3.6 + # via dragonglass +markupsafe==2.1.5 + # via dragonglass + # via jinja2 +pyyaml==6.0.1 + # via dragonglass diff --git a/src/dragonglass/__init__.py b/src/dragonglass/__init__.py new file mode 100644 index 0000000..3351988 --- /dev/null +++ b/src/dragonglass/__init__.py @@ -0,0 +1 @@ +from .dragonglass import main diff --git a/src/dragonglass/__main__.py b/src/dragonglass/__main__.py new file mode 100644 index 0000000..5932752 --- /dev/null +++ b/src/dragonglass/__main__.py @@ -0,0 +1,4 @@ +import sys +from dragonglass import main + +sys.exit(main()) diff --git a/src/dragonglass/dragonglass.py b/src/dragonglass/dragonglass.py index b6735da..2e65dbe 100644 --- a/src/dragonglass/dragonglass.py +++ b/src/dragonglass/dragonglass.py @@ -73,7 +73,3 @@ def main(): print("------ END TEXT ------") return 0 - - -if __name__ == '__main__': - sys.exit(main())