https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 00ea9429f4c516fe7af36c6a17ffeb9a85060fc1 authored by Paul La Plante on 20 May 2021, 02:49:14 UTC, committed by Paul La Plante on 01 July 2021, 19:47:27 UTC
1 parent 07bfbdf
Tip revision: 00ea9429f4c516fe7af36c6a17ffeb9a85060fc1 authored by Paul La Plante on 20 May 2021, 02:49:14 UTC
Fix tests to cover missing line in mir.py
Fix tests to cover missing line in mir.py
Tip revision: 00ea942
branch_scheme.py
# -*- mode: python; coding: utf-8 -*-
# Copyright (c) 2020 Radio Astronomy Software Group
# Licensed under the 2-clause BSD License
"""Define branch_scheme for versioning."""
def branch_scheme(version): # pragma: nocover
"""
Local version scheme that adds the branch name for absolute reproducibility.
If and when this is added to setuptools_scm this function and file can be removed.
"""
if version.exact or version.node is None:
return version.format_choice("", "+d{time:{time_format}}", time_format="%Y%m%d")
else:
if version.branch == "main":
return version.format_choice("+{node}", "+{node}.dirty")
else:
return version.format_choice("+{node}.{branch}", "+{node}.{branch}.dirty")
Computing file changes ...