Skip to content

Commit

Permalink
git describe is not
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Dec 13, 2023
1 parent e262b79 commit efa95e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit efa95e4

Please sign in to comment.