fix: unify all services to poetry pyproject.toml format

template-service and export-service used [project]+setuptools format
which is incompatible with poetry install in Dockerfile.
Unified to [tool.poetry] + poetry-core build-backend.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hailin 2026-04-05 00:58:40 -07:00
parent 2a5a47b18e
commit 43e5f468eb
2 changed files with 33 additions and 34 deletions

View File

@ -1,24 +1,23 @@
[project] [tool.poetry]
name = "export-service" name = "export-service"
version = "0.1.0" version = "0.1.0"
description = "Export microservice - generates PNG, PDF, Excel, PPT, HTML exports" description = "DataViz Pro Export Service"
requires-python = ">=3.11"
dependencies = [ [tool.poetry.dependencies]
"fastapi>=0.110.0", python = "^3.12"
"uvicorn[standard]>=0.27.0", fastapi = "^0.115"
"sqlalchemy[asyncio]>=2.0.25", uvicorn = {extras = ["standard"], version = "^0.34"}
"asyncpg>=0.29.0", sqlalchemy = {extras = ["asyncio"], version = "^2.0"}
"alembic>=1.13.0", asyncpg = "^0.30"
"pydantic>=2.5.0", alembic = "^1.14"
"pydantic-settings>=2.1.0", pydantic = "^2.10"
"httpx>=0.26.0", pydantic-settings = "^2.7"
"openpyxl>=3.1.2", httpx = "^0.27"
"python-pptx>=0.6.23", openpyxl = "^3.1"
"jinja2>=3.1.3", python-pptx = "^1.0"
# "weasyprint>=61.0", # complex native deps enable if needed jinja2 = "^3.1"
"reportlab>=4.1.0", reportlab = "^4.1"
]
[build-system] [build-system]
requires = ["setuptools>=68.0"] requires = ["poetry-core"]
build-backend = "setuptools.backends._legacy:_Backend" build-backend = "poetry.core.masonry.api"

View File

@ -1,18 +1,18 @@
[project] [tool.poetry]
name = "template-service" name = "template-service"
version = "0.1.0" version = "0.1.0"
description = "Template management microservice" description = "DataViz Pro Template Service"
requires-python = ">=3.12"
dependencies = [ [tool.poetry.dependencies]
"fastapi>=0.115.0", python = "^3.12"
"uvicorn[standard]>=0.34.0", fastapi = "^0.115"
"sqlalchemy[asyncio]>=2.0.0", uvicorn = {extras = ["standard"], version = "^0.34"}
"asyncpg>=0.30.0", sqlalchemy = {extras = ["asyncio"], version = "^2.0"}
"alembic>=1.14.0", asyncpg = "^0.30"
"pydantic>=2.10.0", alembic = "^1.14"
"pydantic-settings>=2.7.0", pydantic = "^2.10"
] pydantic-settings = "^2.7"
[build-system] [build-system]
requires = ["setuptools>=75.0"] requires = ["poetry-core"]
build-backend = "setuptools.build_meta" build-backend = "poetry.core.masonry.api"