]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #614 from tekktrik/dev/update-version 8.4.1
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Tue, 20 Sep 2022 15:44:15 +0000 (08:44 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Sep 2022 15:44:15 +0000 (08:44 -0700)
Update version on release

.github/workflows/build.yml
.github/workflows/release.yml
src/__version__.py
src/board.py

index c955ed0703b1ff4fdcb5b66a44cc7d56cdc77345..5fe5064b350be4a29d17ff01796f6c310d7fddb0 100644 (file)
@@ -47,3 +47,11 @@ jobs:
     - name: Build docs
       working-directory: docs
       run: sphinx-build -E -W -b html . _build/html
+    - name: Build Python package
+      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/*
index 9aa3d4ccbd0af967bea637ee17c292a6c47379f3..9275e00ed0153069fe18941de88d0a010db7b09e 100644 (file)
@@ -32,8 +32,8 @@ jobs:
         TWINE_USERNAME: ${{ secrets.pypi_username }}
         TWINE_PASSWORD: ${{ secrets.pypi_password }}
       run: |
-        for file in $(find -not -path "./.*" -not -path "./docs*" -name "*.py"); do
-            sed -i -e "s/0.0.0-auto.0/${{github.event.release.tag_name}}/" $file;
+        for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
+            sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
         done;
-        python setup.py sdist
+        python -m build
         twine upload dist/*
index 49f0aeba884e00757f5ee549762dc4e4518e09ac..bdc3a6d80a2277dfe7d65be2ab38c5126f642e7d 100644 (file)
@@ -2,6 +2,5 @@
 #
 # SPDX-License-Identifier: MIT
 """Return the current version"""
-VERSION = (1, 0, 0)
 
-__version__ = ".".join(map(str, VERSION))
+__version__ = VERSION = "0.0.0+auto.0"
index f50fe03d80b67c5bdc32601b3abbe9e8111248bc..36aca248265cad1693107906df20f6a3759af9d0 100644 (file)
@@ -11,7 +11,7 @@ See `CircuitPython:board` in CircuitPython for more details.
 """
 
 
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
 __repo__ = "https://github.com/adafruit/Adafruit_Blinka.git"
 __blinka__ = True