From ffac1727b92167ca6847b7ae3adc71f091d8048f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 10 Jul 2022 11:51:34 +0200 Subject: ... --- hosts/surtr/http/webdav/py-webdav/.gitignore | 1 + hosts/surtr/http/webdav/py-webdav/VERSION | 1 + hosts/surtr/http/webdav/py-webdav/setup.py | 17 +++++++++++++++++ hosts/surtr/http/webdav/py-webdav/webdav/__init__.py | 1 + hosts/surtr/http/webdav/py-webdav/webdav/webdav.py | 5 +++++ 5 files changed, 25 insertions(+) create mode 100644 hosts/surtr/http/webdav/py-webdav/.gitignore create mode 100644 hosts/surtr/http/webdav/py-webdav/VERSION create mode 100644 hosts/surtr/http/webdav/py-webdav/setup.py create mode 100644 hosts/surtr/http/webdav/py-webdav/webdav/__init__.py create mode 100644 hosts/surtr/http/webdav/py-webdav/webdav/webdav.py (limited to 'hosts/surtr/http/webdav/py-webdav') diff --git a/hosts/surtr/http/webdav/py-webdav/.gitignore b/hosts/surtr/http/webdav/py-webdav/.gitignore new file mode 100644 index 00000000..ed8ebf58 --- /dev/null +++ b/hosts/surtr/http/webdav/py-webdav/.gitignore @@ -0,0 +1 @@ +__pycache__ \ No newline at end of file diff --git a/hosts/surtr/http/webdav/py-webdav/VERSION b/hosts/surtr/http/webdav/py-webdav/VERSION new file mode 100644 index 00000000..6e8bf73a --- /dev/null +++ b/hosts/surtr/http/webdav/py-webdav/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/hosts/surtr/http/webdav/py-webdav/setup.py b/hosts/surtr/http/webdav/py-webdav/setup.py new file mode 100644 index 00000000..dbe345c1 --- /dev/null +++ b/hosts/surtr/http/webdav/py-webdav/setup.py @@ -0,0 +1,17 @@ +import setuptools + +with open('VERSION', 'r', encoding='utf-8') as version_file: + version = version_file.read().strip() + +setuptools.setup( + name="py-webdav", + version=version, + package_dir={"": "."}, + packages=setuptools.find_packages(), + python_requires=">=3.8", + install_requires=[ + "PyNaCl ==1.5.*", + "psycopg ==3.0.*", + "WsgiDAV ==4.0.*", + ], +) diff --git a/hosts/surtr/http/webdav/py-webdav/webdav/__init__.py b/hosts/surtr/http/webdav/py-webdav/webdav/__init__.py new file mode 100644 index 00000000..398378e2 --- /dev/null +++ b/hosts/surtr/http/webdav/py-webdav/webdav/__init__.py @@ -0,0 +1 @@ +from .webdav import app diff --git a/hosts/surtr/http/webdav/py-webdav/webdav/webdav.py b/hosts/surtr/http/webdav/py-webdav/webdav/webdav.py new file mode 100644 index 00000000..783f5d82 --- /dev/null +++ b/hosts/surtr/http/webdav/py-webdav/webdav/webdav.py @@ -0,0 +1,5 @@ +def app(env, start_response): + start_response('200 Success', [('Content-Type', 'text/plain; charset=utf-8')]) + return [ bytes(f'{key}: {value}\n', 'utf8') + for key, value in env.items() + ] -- cgit v1.2.3