From 949ad8e5706f5aced4caba7fb6ad3cf090724b73 Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Mon, 28 Aug 2023 13:54:36 +0200 Subject: [PATCH] Fix publishing of the Python SDK (#3605) --- python-sdk/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/python-sdk/Makefile b/python-sdk/Makefile index 182ac5545e..556a639440 100644 --- a/python-sdk/Makefile +++ b/python-sdk/Makefile @@ -1,23 +1,33 @@ +.PHONY: clean clean: - rm -f openapi.json - rm -rf apicurioregistrysdk/client + rm -rf openapi.json apicurioregistrysdk/client kiota_tmp .venv dist +.PHONY: install install: poetry install +.PHONY: test test: poetry run pytest -s +.PHONY: lint-check lint-check: poetry run black ./ --check +.PHONY: lint-apply lint-apply: poetry run black ./ -publish: +.PHONY: build +build: install + poetry build + +.PHONY: publish +publish: install poetry publish --build -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} +.PHONY: update update: poetry add microsoft-kiota-abstractions@latest poetry add microsoft-kiota-http@latest