Skip to content

Commit

Permalink
Fix publishing of the Python SDK (#3605)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP authored and EricWittmann committed Aug 28, 2023
1 parent ab8a20c commit 949ad8e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions python-sdk/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 949ad8e

Please sign in to comment.