From 6a3638438a657d7bb1f263a7e2a69af94c1e894e Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 2 Dec 2024 17:38:57 +0100 Subject: [PATCH] proper packaging --- caricari/private.py | 4 ++-- caricari/public.py | 4 ++-- pyproject.toml | 9 +++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 pyproject.toml diff --git a/caricari/private.py b/caricari/private.py index 84af7de..e59c8e4 100644 --- a/caricari/private.py +++ b/caricari/private.py @@ -18,8 +18,8 @@ from fastapi.responses import RedirectResponse from fastapi.templating import Jinja2Templates from pydantic import BaseModel -from .httpcommon import ProxyInfo, get_config -from . import database +from caricari.httpcommon import ProxyInfo, get_config +from caricari import database CONFIG = get_config() diff --git a/caricari/public.py b/caricari/public.py index 78c232f..e851bdf 100644 --- a/caricari/public.py +++ b/caricari/public.py @@ -16,8 +16,8 @@ from fastapi.responses import RedirectResponse, FileResponse from fastapi.templating import Jinja2Templates from pydantic import BaseModel -from .httpcommon import ProxyInfo, get_config -from . import database +from caricari.httpcommon import ProxyInfo, get_config +from caricari import database CONFIG = get_config() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b349604 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +[project] +name = "caricari" +version = "0.1.0" +description = "A meta-uploader" + +[build-system] +build-backend = "flit_core.buildapi" +requires = ["flit_core >=3.2,<4"] +