From 3a2a3a361313221f0380a3342292ec90ef73b3d7 Mon Sep 17 00:00:00 2001 From: Roman Kuzmenko Date: Sat, 13 Jan 2024 01:16:56 -0800 Subject: [PATCH] Fixed the build script on Windows --- .github/workflows/python-build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index e5785fac..5d5778a4 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -41,17 +41,17 @@ jobs: python -m pip install --upgrade pip build mkdir .venv python -m venv .venv/build - (. .venv/build/bin/activate && python -m pip install --upgrade pip build; deactivate) + (. .venv/build/bin/activate && python -m pip install --upgrade pip build && deactivate) python -m venv .venv/build-cli - (. .venv/build-cli/bin/activate && python -m pip install --upgrade pip build; deactivate) + (. .venv/build-cli/bin/activate && python -m pip install --upgrade pip build && deactivate) python -m venv .venv/install - (. .venv/install/bin/activate && python -m pip install --upgrade pip build; deactivate) + (. .venv/install/bin/activate && python -m pip install --upgrade pip build && deactivate) - name: Test building and packaging run: | - (. .venv/build/bin/activate && cd partcad && python -m build; deactivate) - (. .venv/build-cli/bin/activate && python -m pip install partcad/dist/partcad-[0-9].[0-9]*.[0-9]*-py3-none-any.whl; deactivate) - (. .venv/build-cli/bin/activate && cd partcad-cli && python -m build; deactivate) + (. .venv/build/bin/activate && cd partcad && python -m build && deactivate) + (. .venv/build-cli/bin/activate && python -m pip install partcad/dist/partcad-[0-9].[0-9]*.[0-9]*-py3-none-any.whl && deactivate) + (. .venv/build-cli/bin/activate && cd partcad-cli && python -m build && deactivate) - name: Test installation run: | - (. .venv/install/bin/activate && python -m pip install partcad/dist/partcad-[0-9].[0-9]*.[0-9]*-py3-none-any.whl; deactivate) - (. .venv/install/bin/activate && python -m pip install partcad-cli/dist/partcad_cli-[0-9].[0-9]*.[0-9]*-py3-none-any.whl; deactivate) + (. .venv/install/bin/activate && python -m pip install partcad/dist/partcad-[0-9].[0-9]*.[0-9]*-py3-none-any.whl && deactivate) + (. .venv/install/bin/activate && python -m pip install partcad-cli/dist/partcad_cli-[0-9].[0-9]*.[0-9]*-py3-none-any.whl && deactivate)