This commit is contained in:
David Arranz 2026-01-22 12:30:30 +01:00
parent 1cf16ae0a0
commit 76103ac0f2
2 changed files with 44 additions and 2 deletions

35
Makefile Normal file
View File

@ -0,0 +1,35 @@
# Cargar variables de entorno
include .env
export
.PHONY: help venv install run test docker-build docker-run
help:
@echo "Available commands:"
@echo " make venv Create virtual environment"
@echo " make install Install dependencies"
@echo " make run Run API locally"
@echo " make test Run tests"
@echo " make docker-build Build Docker image"
@echo " make docker-run Run Docker container"
venv:
python3 -m venv .venv
install:
pip install --upgrade pip
pip install -e .
run:
uvicorn signing_service.main:app --reload
test:
pytest -v
docker-build:
docker build -t signing-service:local .
docker-run:
docker run --rm -p 8080:8080 \
--env-file .env \
signing-service:local

View File

@ -4,18 +4,25 @@ build-backend = "setuptools.build_meta"
[project]
name = "signing-service"
version = "0.1.0"
version = "0.1.1"
description = "FastAPI service for signing PDF documents using external secret managers"
requires-python = ">=3.11"
dependencies = [
"python-multipart",
"python-dotenv>=1.0",
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"pydantic-settings>=2.2",
"google-cloud-secret-manager>=2.18",
"pyhanko>=0.25",
"cryptography>=42",
# Infisical SDK for secret management
"infisicalsdk",
# Google Cloud Secret Manager SDK for secret management
# "google-cloud-secret-manager>=2.18",
]
[project.optional-dependencies]