diff --git a/pdm_build.py b/pdm_build.py index 24f509964..58a3f98a5 100644 --- a/pdm_build.py +++ b/pdm_build.py @@ -7,15 +7,12 @@ TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi") def pdm_build_initialize(context: Context) -> None: - metadata = context.config.metadata # Get custom config for the current package, from the env var config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][ "_internal-slim-build" - ]["packages"].get( - TIANGOLO_BUILD_PACKAGE - ) + ]["packages"].get(TIANGOLO_BUILD_PACKAGE) if not config: return