From a1f1ffd9a4473a076cf961d96a4fb3624c394d12 Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Sun, 10 Dec 2023 19:51:07 -0600 Subject: [PATCH] git on github action is poopy --- .github/workflows/python.yml | 1 - photon-lib/py/setup.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3ce371d507..17d47cc80c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -33,7 +33,6 @@ jobs: - name: Build wheel working-directory: ./photon-lib/py run: | - git fetch git fetch --tags --force python setup.py sdist bdist_wheel diff --git a/photon-lib/py/setup.py b/photon-lib/py/setup.py index 816612d731..620abd26c7 100644 --- a/photon-lib/py/setup.py +++ b/photon-lib/py/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import subprocess -versionStr = subprocess.check_output(['git', 'describe', '--tags', "--match=v*"]).decode('utf-8').strip() +versionStr = subprocess.check_output(['git', 'describe', '--tags', "--match=v*", "--always"]).decode('utf-8').strip() print(f"Building version {versionStr}") setup(