@@ -13,47 +13,63 @@ printf """
1313
1414" " "
1515
16+ echo " ✨✨✨ Display Python version"
1617echo " python -VV"
1718python -VV
1819
20+ echo " ✨✨✨ Display Python executable path"
1921echo ' python -c "import sys; print(sys.executable)"'
2022python -c " import sys; print(sys.executable)"
2123
24+ echo " ✨✨✨ Display pip version"
2225echo ' pip -V'
2326pip -V
2427
28+ echo " ✨✨✨ Install poetry"
2529echo ' pip install poetry'
2630pip install poetry
2731
32+ echo " ✨✨✨ List home directory contents"
2833# Look for go/bin (skip, we know it exists)
2934echo ' $HOME/'
3035ls -la " $HOME /"
3136
32- echo ' $HOME/.local/'
33- ls -la " $HOME /.local/"
34-
37+ echo " ✨✨✨ List Go directory contents"
3538echo ' $HOME/go/'
3639ls -la " $HOME /go/"
3740
41+ echo " ✨✨✨ Display Go version"
42+ go version
43+
44+ echo " ✨✨✨ Add Go bin directory to PATH"
3845# Add Go bin directory to PATH
3946echo " export PATH=$PATH :~/.local/go/bin" >> $GITHUB_ENV
4047
48+ echo " ✨✨✨ Install dependencies with poetry"
4149# Since we don't have our wheel build / install configured yet we use '--no-root'
4250poetry install --no-root
4351
52+ echo " ✨✨✨ Activate poetry environment"
4453source $( poetry env info --path) /bin/activate
4554
55+ echo " ✨✨✨ Add Go bin directory to PATH again"
4656# Add Go bin directory to PATH
4757echo " export PATH=$PATH :~/.local/go/bin" >> $GITHUB_ENV
4858
59+ echo " ✨✨✨ Install goimports"
4960go install golang.org/x/tools/cmd/goimports@latest
5061
62+ echo " ✨✨✨ Install gopy"
5163go install github.com/go-python/gopy@latest
5264
65+ echo " ✨✨✨ Upgrade setuptools and wheel"
5366poetry run pip install --upgrade setuptools wheel
5467
68+ echo " ✨✨✨ Build gopy"
5569gopy build --output=otdf_python -vm=python3 .
5670
71+ echo " ✨✨✨ Build wheel"
5772poetry run python3 setup.py bdist_wheel
5873
59- pip install dist/otdf_python-0.2.3-py3-none-any.whl
74+ echo " ✨✨✨ Install wheel"
75+ pip install dist/otdf_python-0.2.4-py3-none-any.whl
0 commit comments