]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - .github/workflows/build.yml
Add line to remove existing .egg-info directories
[Adafruit_Blinka-hackapet.git] / .github / workflows / build.yml
index 52d16c17e6b237c027434a7cf5d8f9b240ce42b3..8ea84f0cfc4f23db9515c88ab7cb4e4982bbf5ca 100644 (file)
@@ -16,10 +16,10 @@ jobs:
     - name: Translate Repo Name For Build Tools filename_prefix
       id: repo-name
       run: echo "repo-name=Adafruit-Blinka" >> $GITHUB_OUTPUT
-    - name: Set up Python 3.11
+    - name: Set up Python 3.8
       uses: actions/setup-python@v4
       with:
-        python-version: 3.11
+        python-version: 3.8
     - name: Versions
       run: |
         python3 --version
@@ -47,13 +47,9 @@ jobs:
     - name: Build docs
       working-directory: docs
       run: sphinx-build -E -W -b html . _build/html
-    - 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: |
+        setuptools clean --all
         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;