chore: prod prep

This commit is contained in:
Christopher Gondek 2025-10-13 09:37:59 +02:00
parent 9bc7cd774c
commit b497d5d209
4 changed files with 18 additions and 3 deletions

View file

@ -5,6 +5,7 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiosqlite>=0.20.0",
"fastapi>=0.117.1",
"httpx>=0.28.1",
"msal>=1.34.0",

View file

@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
# Initialize FastAPI app
app = FastAPI(
title="Data Preprocessing App",
title="PowerOn Preprocessing App",
version="0.1.0",
)
@ -22,7 +22,7 @@ app = FastAPI(
# Configure CORS
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"], # React dev server
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],

View file

@ -11,7 +11,7 @@ class Settings(BaseSettings):
# Preprocessing configuration file path.
PP_CONFIG_PATH: str = Field(
"src/preprocess.yaml",
"src/pp-config.yaml",
description="Path to the preprocessing configuration YAML file.",
)

14
uv.lock
View file

@ -2,6 +2,18 @@ version = 1
revision = 3
requires-python = ">=3.13"
[[package]]
name = "aiosqlite"
version = "0.21.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions" },
]
sdist = { url = "https://files.pythonhosted.org/packages/13/7d/8bca2bf9a247c2c5dfeec1d7a5f40db6518f88d314b8bca9da29670d2671/aiosqlite-0.21.0.tar.gz", hash = "sha256:131bb8056daa3bc875608c631c678cda73922a2d4ba8aec373b19f18c17e7aa3", size = 13454, upload-time = "2025-02-03T07:30:16.235Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/f5/10/6c25ed6de94c49f88a91fa5018cb4c0f3625f31d5be9f771ebe5cc7cd506/aiosqlite-0.21.0-py3-none-any.whl", hash = "sha256:2549cf4057f95f53dcba16f2b64e8e2791d7e1adedb13197dd8ed77bb226d7d0", size = 15792, upload-time = "2025-02-03T07:30:13.6Z" },
]
[[package]]
name = "annotated-types"
version = "0.7.0"
@ -613,6 +625,7 @@ name = "vo-customer-preprocessor"
version = "0.1.0"
source = { virtual = "." }
dependencies = [
{ name = "aiosqlite" },
{ name = "fastapi" },
{ name = "httpx" },
{ name = "msal" },
@ -626,6 +639,7 @@ dependencies = [
[package.metadata]
requires-dist = [
{ name = "aiosqlite", specifier = ">=0.20.0" },
{ name = "fastapi", specifier = ">=0.117.1" },
{ name = "httpx", specifier = ">=0.28.1" },
{ name = "msal", specifier = ">=1.34.0" },