File: _version.py

package info (click to toggle)
python-pynvim 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 3,040; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Specifies pynvim version."""
# pylint: disable=consider-using-f-string

from types import SimpleNamespace

# see also setup.py
VERSION = SimpleNamespace(major=0, minor=5, patch=2, prerelease="")

# e.g. "0.5.0", "0.5.0.dev0" (PEP-440)
__version__ = '{major}.{minor}.{patch}'.format(**vars(VERSION))

if VERSION.prerelease:
    __version__ += '.' + VERSION.prerelease