Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publishing of the Python SDK #3605

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions python-sdk/Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@

.PHONY: clean
clean:
rm -f openapi.json
rm -rf apicurioregistrysdk/client
rm -rf kiota_tmp
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