Skip to content

Commit 1306090

Browse files
committed
TEST: test setup.py installation
1 parent b5053d7 commit 1306090

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/py/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ pre-release-test: build # Run pre-release tests with built wheel
2424
uv run --isolated --no-project --with "$$WHEEL" python ../../tests/api/py/test_cloud_dev.py && \
2525
uv run --isolated --no-project --with "$$WHEEL" python ../../tests/api/py/test_extract_region_str.py
2626

27+
test-setup-py-install:
28+
@echo "Testing setup.py install (with pyproject.toml removed) in Docker (Python 3.12)..."
29+
docker run --rm -v "$(CURDIR):/src:ro" python:3.12-slim \
30+
sh -c 'cp -r /src /tmp/pkg && cd /tmp/pkg && rm pyproject.toml && pip install --no-cache-dir . && python -c "from imandrax_api.lib import twine; print(\"setup.py install: OK\")"'
31+
2732
PYTHON_REPO_URL = https://europe-west1-python.pkg.dev/imandra-dev/imandrax-api/
2833

2934
install-artifact-deps:
@@ -53,4 +58,4 @@ install-go-protobuf-plugin:
5358
@echo "installing twirp plugin for protoc into `echo $(GOBIN)`"
5459
cd protoc-gen-twirpy && GOBIN="`echo $(GOBIN)`" go install ./
5560

56-
.PHONY: remove-wheels build genversion api_types_version.py
61+
.PHONY: remove-wheels build genversion api_types_version.py test-setup-py-install

0 commit comments

Comments
 (0)