diff --git a/main.py b/main.py index 46fadee..115200a 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,6 @@ def main(): r = RouteManager(c) t = TemplateHelpers(c) - print("here") server = Server() server.register_template_function("get_sibling_content_files", t.get_sibling_content_files) diff --git a/pyproject.toml b/pyproject.toml index 8c27c30..88c540b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,9 @@ description = "Add your description here" readme = "README.md" requires-python = ">=3.13" dependencies = [ + "bs4>=0.0.2", "flask>=3.1.0", + "gunicorn>=23.0.0", "mistune>=3.1.1", "pillow>=10.4.0", "python-frontmatter>=1.1.0", diff --git a/requirements.txt b/requirements.txt index d3e06d6..d9ff820 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,19 @@ # This file was autogenerated by uv via the following command: # uv pip compile pyproject.toml -o requirements.txt +beautifulsoup4==4.13.3 + # via bs4 blinker==1.9.0 # via flask +bs4==0.0.2 + # via foldsite (pyproject.toml) click==8.1.8 # via # flask # typer flask==3.1.0 # via foldsite (pyproject.toml) +gunicorn==23.0.0 + # via foldsite (pyproject.toml) itsdangerous==2.2.0 # via flask jinja2==3.1.5 @@ -22,6 +28,8 @@ mdurl==0.1.2 # via markdown-it-py mistune==3.1.2 # via foldsite (pyproject.toml) +packaging==24.2 + # via gunicorn pillow==10.4.0 # via # foldsite (pyproject.toml) @@ -38,12 +46,16 @@ rich==13.9.4 # typer shellingham==1.5.4 # via typer +soupsieve==2.6 + # via beautifulsoup4 thumbhash-python==1.0.1 # via foldsite (pyproject.toml) typer==0.15.2 # via thumbhash-python typing-extensions==4.12.2 - # via typer + # via + # beautifulsoup4 + # typer waitress==3.0.2 # via foldsite (pyproject.toml) werkzeug==3.1.3 diff --git a/uv.lock b/uv.lock index b82d768..552da2c 100644 --- a/uv.lock +++ b/uv.lock @@ -2,6 +2,19 @@ version = 1 revision = 1 requires-python = ">=3.13" +[[package]] +name = "beautifulsoup4" +version = "4.13.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "soupsieve" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f0/3c/adaf39ce1fb4afdd21b611e3d530b183bb7759c9b673d60db0e347fd4439/beautifulsoup4-4.13.3.tar.gz", hash = "sha256:1bd32405dacc920b42b83ba01644747ed77456a65760e285fbc47633ceddaf8b", size = 619516 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f9/49/6abb616eb3cbab6a7cca303dc02fdf3836de2e0b834bf966a7f5271a34d8/beautifulsoup4-4.13.3-py3-none-any.whl", hash = "sha256:99045d7d3f08f91f0d656bc9b7efbae189426cd913d830294a15eefa0ea4df16", size = 186015 }, +] + [[package]] name = "blinker" version = "1.9.0" @@ -11,6 +24,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/10/cb/f2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c/blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc", size = 8458 }, ] +[[package]] +name = "bs4" +version = "0.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "beautifulsoup4" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c9/aa/4acaf814ff901145da37332e05bb510452ebed97bc9602695059dd46ef39/bs4-0.0.2.tar.gz", hash = "sha256:a48685c58f50fe127722417bae83fe6badf500d54b55f7e39ffe43b798653925", size = 698 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/bb/bf7aab772a159614954d84aa832c129624ba6c32faa559dfb200a534e50b/bs4-0.0.2-py2.py3-none-any.whl", hash = "sha256:abf8742c0805ef7f662dce4b51cca104cffe52b835238afc169142ab9b3fbccc", size = 1189 }, +] + [[package]] name = "click" version = "8.1.8" @@ -53,7 +78,9 @@ name = "foldsite" version = "0.1.0" source = { virtual = "." } dependencies = [ + { name = "bs4" }, { name = "flask" }, + { name = "gunicorn" }, { name = "mistune" }, { name = "pillow" }, { name = "python-frontmatter" }, @@ -64,7 +91,9 @@ dependencies = [ [package.metadata] requires-dist = [ + { name = "bs4", specifier = ">=0.0.2" }, { name = "flask", specifier = ">=3.1.0" }, + { name = "gunicorn", specifier = ">=23.0.0" }, { name = "mistune", specifier = ">=3.1.1" }, { name = "pillow", specifier = ">=10.4.0" }, { name = "python-frontmatter", specifier = ">=1.1.0" }, @@ -73,6 +102,18 @@ requires-dist = [ { name = "waitress", specifier = ">=3.0.2" }, ] +[[package]] +name = "gunicorn" +version = "23.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "packaging" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/34/72/9614c465dc206155d93eff0ca20d42e1e35afc533971379482de953521a4/gunicorn-23.0.0.tar.gz", hash = "sha256:f014447a0101dc57e294f6c18ca6b40227a4c90e9bdb586042628030cba004ec", size = 375031 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/7d/6dac2a6e1eba33ee43f318edbed4ff29151a49b5d37f080aad1e6469bca4/gunicorn-23.0.0-py3-none-any.whl", hash = "sha256:ec400d38950de4dfd418cff8328b2c8faed0edb0d517d3394e457c317908ca4d", size = 85029 }, +] + [[package]] name = "itsdangerous" version = "2.2.0" @@ -152,6 +193,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c6/02/c66bdfdadbb021adb642ca4e8a5ed32ada0b4a3e4b39c5d076d19543452f/mistune-3.1.1-py3-none-any.whl", hash = "sha256:02106ac2aa4f66e769debbfa028509a275069dcffce0dfa578edd7b991ee700a", size = 53696 }, ] +[[package]] +name = "packaging" +version = "24.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, +] + [[package]] name = "pillow" version = "10.4.0" @@ -231,6 +281,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755 }, ] +[[package]] +name = "soupsieve" +version = "2.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/ce/fbaeed4f9fb8b2daa961f90591662df6a86c1abf25c548329a86920aedfb/soupsieve-2.6.tar.gz", hash = "sha256:e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb", size = 101569 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/c2/fe97d779f3ef3b15f05c94a2f1e3d21732574ed441687474db9d342a7315/soupsieve-2.6-py3-none-any.whl", hash = "sha256:e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9", size = 36186 }, +] + [[package]] name = "thumbhash-python" version = "1.0.1"