diff --git a/cmd/fhttp/main.py b/cmd/fhttp/main.py index 8c613f2f..ad2ee5ea 100644 --- a/cmd/fhttp/main.py +++ b/cmd/fhttp/main.py @@ -1,6 +1,6 @@ import argparse import logging -from func_python.http import serve +from func_http.http import serve # Set the default logging level to INFO logging.basicConfig(level=logging.INFO) diff --git a/pyproject.toml b/pyproject.toml index 4cf64ae2..4a7fed5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,10 @@ name = "func-python" version = "0.2.0" description = "Knative Functions Python Middleware" +packages = [ + { include = "func_http", from = "src" }, +] + authors = ["Luke Kingland "] readme = "README.md" license = "Apache-2.0" diff --git a/src/func_python/README.md b/src/func_http/README.md similarity index 100% rename from src/func_python/README.md rename to src/func_http/README.md diff --git a/src/func_python/__init__.py b/src/func_http/__init__.py similarity index 100% rename from src/func_python/__init__.py rename to src/func_http/__init__.py diff --git a/src/func_python/http.py b/src/func_http/http.py similarity index 100% rename from src/func_python/http.py rename to src/func_http/http.py diff --git a/tests/test_http.py b/tests/test_http.py index 94a2b57c..fed08a49 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -4,7 +4,7 @@ import signal import threading import time -from func_python.http import serve +from func_http.http import serve logging.basicConfig(level=logging.INFO)