From: James Carr Date: Tue, 21 Sep 2021 18:26:33 +0000 (+0100) Subject: Added versioning to board X-Git-Tag: 6.13.1^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/22a6f4bea2f952067bf6f9537c0f5376f95c9acd?ds=inline;hp=-c Added versioning to board --- 22a6f4bea2f952067bf6f9537c0f5376f95c9acd diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 220e398..ce2635b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,5 +29,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; + done; python setup.py sdist twine upload dist/* diff --git a/setup.py b/setup.py index 576afbd..a18904c 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,11 @@ if os.path.exists("/proc/device-tree/compatible"): setup( name="Adafruit-Blinka", - use_scm_version=True, + use_scm_version={ + # This is needed for the PyPI version munging in the Github Actions release.yml + "git_describe_command": "git describe --tags --long", + "local_scheme": "no-local-version", + }, setup_requires=["setuptools_scm"], description="CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython.", long_description=long_description, @@ -53,10 +57,11 @@ setup( "board", "busio", "digitalio", + "keypad", "micropython", + "neopixel_write", "pulseio", "pwmio", - "neopixel_write", "rainbowio", ], package_data={ diff --git a/src/board.py b/src/board.py index af73c13..0de6c10 100755 --- a/src/board.py +++ b/src/board.py @@ -27,6 +27,13 @@ See `CircuitPython:board` in CircuitPython for more details. * Author(s): cefn """ + + +__version__ = "0.0.0-auto.0" +__repo__ = "https://github.com/adafruit/Adafruit_Blinka.git" +__blinka__ = True + + import sys import adafruit_platformdetect.constants.boards as ap_board