Skip to content

Commit d1a329f

Browse files
Add support for poetry build with wheel (#2425)
1 parent c149316 commit d1a329f

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ client-integration-test: client-setup-env ## Run client integration tests
162162
@echo "Tearing down Docker Compose services..."
163163
@$(DOCKER) compose -f $(PYTHON_CLIENT_DIR)/docker-compose.yml down || true # Ensure teardown even if tests fail
164164

165+
.PHONY: client-build
166+
client-build: client-setup-env ## Build client distribution
167+
@echo "--- Building client distribution ---"
168+
@$(ACTIVATE_AND_CD) && poetry build -f wheel
169+
@echo "--- Client distribution build complete ---"
170+
165171
.PHONY: client-cleanup
166172
client-cleanup: ## Cleanup virtual environment and Python cache files
167173
@echo "--- Cleaning up virtual environment and Python cache files ---"

client/python/generate_clients.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
Path("README.md"),
8383
Path("generate_clients.py"),
8484
Path(".venv"),
85+
Path("dist/"),
8586
]
8687
EXCLUDE_EXTENSIONS = [
8788
"json",

client/python/pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,9 @@ polaris = "cli.polaris_cli:main"
4646

4747
[tool.poetry]
4848
requires-poetry = "==2.1.4"
49-
packages = [
50-
{ include = "polaris" },
51-
{ include = "cli" }
52-
]
5349
include = [
54-
"polaris/**"
50+
{ path = "polaris/**", format = "wheel" },
51+
{ path = "cli/**", format = "wheel" },
5552
]
5653

5754
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)