Skip to content

Commit

Permalink
[ci-py-win] Install poetry via pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Jan 3, 2024
1 parent 955c9fa commit 97f90f6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion services/ci-py-310-win/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sed -i "s/^\\( \\)maker = PipScriptMaker(.*/&\r\n\\1maker.executable = '\\/us

# install utils to match linux ci images
retry python -m pip install tox
retry python -m pip install poetry
retry python -m pip install pre-commit
retry-curl https://uploader.codecov.io/latest/windows/codecov.exe -o msys64/usr/bin/codecov.exe

retry python -m pip install pipx
PIPX_BIN_DIR="$PWD/msys64/opt/python/Scripts" pipx install poetry

rm -rf \
msys64/mingw64/share/doc/ \
msys64/mingw64/share/info/ \
Expand Down
4 changes: 3 additions & 1 deletion services/ci-py-311-win/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sed -i "s/^\\( \\)maker = PipScriptMaker(.*/&\r\n\\1maker.executable = '\\/us

# install utils to match linux ci images
retry python -m pip install tox
retry python -m pip install poetry
retry python -m pip install pre-commit
retry-curl https://uploader.codecov.io/latest/windows/codecov.exe -o msys64/usr/bin/codecov.exe

retry python -m pip install pipx
PIPX_BIN_DIR="$PWD/msys64/opt/python/Scripts" pipx install poetry

rm -rf \
msys64/mingw64/share/doc/ \
msys64/mingw64/share/info/ \
Expand Down
4 changes: 3 additions & 1 deletion services/ci-py-312-win/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sed -i "s/^\\( \\)maker = PipScriptMaker(.*/&\r\n\\1maker.executable = '\\/us

# install utils to match linux ci images
retry python -m pip install tox
retry python -m pip install poetry
retry python -m pip install pre-commit
retry-curl https://uploader.codecov.io/latest/windows/codecov.exe -o msys64/usr/bin/codecov.exe

retry python -m pip install pipx
PIPX_BIN_DIR="$PWD/msys64/opt/python/Scripts" pipx install poetry

rm -rf \
msys64/mingw64/share/doc/ \
msys64/mingw64/share/info/ \
Expand Down
4 changes: 3 additions & 1 deletion services/ci-py-38-win/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sed -i "s/^\\( \\)maker = PipScriptMaker(.*/&\r\n\\1maker.executable = '\\/us

# install utils to match linux ci images
retry python -m pip install tox
retry python -m pip install poetry
retry python -m pip install pre-commit
retry-curl https://uploader.codecov.io/latest/windows/codecov.exe -o msys64/usr/bin/codecov.exe

retry python -m pip install pipx
PIPX_BIN_DIR="$PWD/msys64/opt/python/Scripts" pipx install poetry

rm -rf \
msys64/mingw64/share/doc/ \
msys64/mingw64/share/info/ \
Expand Down
4 changes: 3 additions & 1 deletion services/ci-py-39-win/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sed -i "s/^\\( \\)maker = PipScriptMaker(.*/&\r\n\\1maker.executable = '\\/us

# install utils to match linux ci images
retry python -m pip install tox
retry python -m pip install poetry
retry python -m pip install pre-commit
retry-curl https://uploader.codecov.io/latest/windows/codecov.exe -o msys64/usr/bin/codecov.exe

retry python -m pip install pipx
PIPX_BIN_DIR="$PWD/msys64/opt/python/Scripts" pipx install poetry

rm -rf \
msys64/mingw64/share/doc/ \
msys64/mingw64/share/info/ \
Expand Down

0 comments on commit 97f90f6

Please sign in to comment.