From: Alec Delaney <89490472+tekktrik@users.noreply.github.com> Date: Sat, 17 Sep 2022 02:59:47 +0000 (-0400) Subject: Update building python package in build.yml X-Git-Tag: 8.4.1^2~4 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/6559d68f8198ecd55728e10b1a180ad076e4797a?ds=sidebyside Update building python package in build.yml --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c955ed0..5202289 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,3 +47,12 @@ jobs: - name: Build docs working-directory: docs run: sphinx-build -E -W -b html . _build/html + - name: Build Python package + if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml') + run: | + pip install --upgrade build twine + for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do + sed -i -e "s/0.0.0+auto.0/1.2.3/" $file; + done; + python -m build + twine check dist/*