diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff95ef0 --- /dev/null +++ b/Makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 67b1294..323be28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]