diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index aa9e8324d6..5cdc1ead7d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -18,6 +18,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + sparse-checkout-cone-mode: false + fetch-tags: true + fetch-depth: 99999 - name: Set up Python uses: actions/setup-python@v5 @@ -32,7 +36,6 @@ jobs: - name: Build wheel working-directory: ./photon-lib/py run: | - git fetch --tags --force python setup.py sdist bdist_wheel - name: Run Unit Tests diff --git a/photon-lib/py/setup.py b/photon-lib/py/setup.py index d53450c03e..28f712c36b 100644 --- a/photon-lib/py/setup.py +++ b/photon-lib/py/setup.py @@ -11,10 +11,12 @@ # which should be PEP440 compliant if m: versionString = m.group(0) - print(f"Building version {versionString}") else: print("Warning, no valid version found") - versionString = "0.0.0" + versionString = gitDescribeResult + +print(f"Building version {versionString}") + descriptionStr = f""" Pure-python implementation of PhotonLib for interfacing with PhotonVision on coprocessors.