code: def read_version():
      
      regex = re.compile('^(?P<number>\d.*?) .*$')
  
      with open('../CHANGELOG.rst') as f:
          for line in f:
              match = regex.match(line)
              if match:
                  return match.group('number')
docs: Read version from the first line starting with digit