diff --git a/pyproject.toml b/pyproject.toml index 185891f2..fa6955ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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()' } \ No newline at end of file diff --git a/setup.py b/setup.py index a7b0a92b..8d57f822 100644 --- a/setup.py +++ b/setup.py @@ -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