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 d4f975a commit d3e2e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ Source = "https://github.com/cmbant/camb"
Tracker = "https://github.com/cmbant/camb/issues"
Licensing = "https://github.com/cmbant/camb/blob/master/LICENCE.txt"

[tool.project.metadata]
name = "camb"
version = { python = 'import setup; setup.find_version()' }
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ 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('GITHUB_REF', '').startswith('refs/tags/'):
version += '.' + commit
Expand Down

0 comments on commit d3e2e2b

Please sign in to comment.