Skip to content

Commit

Permalink
update [pypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jun 6, 2024
1 parent 4b4d01b commit 252c3ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ def find_version():
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
version = version_match.group(1)
print("Run number %s" % os.getenv('GITHUB_RUN_NUMBER'))
commit = os.getenv('GITHUB_RUN_NUMBER')
if commit and not os.getenv('TRAVIS_TAG'):
if commit and not os.getenv('GITHUB_REF', '').startswith('refs/tags/'):
version += '.' + commit
return version
raise RuntimeError("Unable to find version string.")
Expand Down

0 comments on commit 252c3ff

Please sign in to comment.