summaryrefslogtreecommitdiff
path: root/coverage/version.py
blob: 523405d647b9531a3b55a7ae0e7329e88a95b0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt

"""The version and URL for coverage.py"""
# This file is exec'ed in setup.py, don't import anything!

_maj = 4
_min = 0
_mic = 0
_rel = 0xb
_ser = 2

hexversion = (_maj << 24) + (_min << 16) + (_mic << 8) + (_rel << 4) + _ser

__version__ = "%d.%d" % (_maj, _min)
if _mic:
    __version__ += ".%d" % (_mic,)
if _rel != 0xf:
    __version__ += "%x%d" % (_rel, _ser)

__url__ = "https://coverage.readthedocs.org"
if _rel != 0xf:
    # For pre-releases, use a version-specific URL.
    __url__ += "/en/coverage-" + __version__