+ - name: Check For pyproject.toml
+ id: need-pypi
+ run: |
+ echo "pyproject-toml=$( find . -wholename './pyproject.toml' )" >> $GITHUB_OUTPUT
+ - 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/*