Skip to content

Commit 1c01e66

Browse files
authored
chore(ci): separate build targets for publishing Python packages (#500)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
1 parent 5565785 commit 1c01e66

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ build-all-platforms: clean tidy format lint ## Build the project for all platfor
5454
GOOS=$(os) GOARCH=$(arch) go build $(COMMON_BUILD_ARGS) -o $(BINARY_NAME)-$(os)-$(arch)$(if $(findstring windows,$(os)),.exe,) ./cmd/kubernetes-mcp-server; \
5555
))
5656

57-
.PHONY: python-publish
58-
python-publish: ## Publish the python packages
59-
cd ./python && \
60-
sed -i "s/version = \".*\"/version = \"$(GIT_TAG_VERSION)\"/" pyproject.toml && \
61-
uv build && \
62-
uv publish
63-
6457
.PHONY: test
6558
test: ## Run the tests
6659
go test -count=1 -v ./...

build/python.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
##@ Python/PyPI build targets
2+
3+
CLEAN_TARGETS += ./python/dist ./python/*.egg-info
4+
5+
.PHONY: python-publish
6+
python-publish: ## Publish the python packages
7+
cd ./python && \
8+
sed -i "s/version = \".*\"/version = \"$(GIT_TAG_VERSION)\"/" pyproject.toml && \
9+
uv build && \
10+
uv publish

0 commit comments

Comments
 (0)