From 96b611880c489ce209871bd9f4b14fcb986492ec Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Fri, 26 Jul 2024 23:39:52 -0600 Subject: [PATCH] configured new requirements and script entry for project --- pyproject.toml | 10 +++++++++- requirements-dev.lock | 9 +++++++++ requirements.lock | 9 +++++++++ src/dragonglass/__init__.py | 1 + src/dragonglass/__main__.py | 4 ++++ src/dragonglass/dragonglass.py | 4 ---- 6 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 src/dragonglass/__init__.py create mode 100644 src/dragonglass/__main__.py 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())