diff --git a/Makefile b/Makefile index b5ee78f4..440966d2 100644 --- a/Makefile +++ b/Makefile @@ -54,13 +54,6 @@ build-all-platforms: clean tidy format lint ## Build the project for all platfor GOOS=$(os) GOARCH=$(arch) go build $(COMMON_BUILD_ARGS) -o $(BINARY_NAME)-$(os)-$(arch)$(if $(findstring windows,$(os)),.exe,) ./cmd/kubernetes-mcp-server; \ )) -.PHONY: python-publish -python-publish: ## Publish the python packages - cd ./python && \ - sed -i "s/version = \".*\"/version = \"$(GIT_TAG_VERSION)\"/" pyproject.toml && \ - uv build && \ - uv publish - .PHONY: test test: ## Run the tests go test -count=1 -v ./... diff --git a/build/python.mk b/build/python.mk new file mode 100644 index 00000000..51cf68a6 --- /dev/null +++ b/build/python.mk @@ -0,0 +1,10 @@ +##@ Python/PyPI build targets + +CLEAN_TARGETS += ./python/dist ./python/*.egg-info + +.PHONY: python-publish +python-publish: ## Publish the python packages + cd ./python && \ + sed -i "s/version = \".*\"/version = \"$(GIT_TAG_VERSION)\"/" pyproject.toml && \ + uv build && \ + uv publish \ No newline at end of file