2013-10-30 21:58:17 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2015-01-14 00:05:26 +00:00
|
|
|
# Copyright (C) 2015 GNS3 Technologies Inc.
|
2013-10-30 21:58:17 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2013-12-05 07:21:06 +00:00
|
|
|
# __version__ is a human-readable version number.
|
2013-10-30 21:58:17 +00:00
|
|
|
|
2013-12-05 07:21:06 +00:00
|
|
|
# __version_info__ is a four-tuple for programmatic comparison. The first
|
|
|
|
# three numbers are the components of the version number. The fourth
|
|
|
|
# is zero for an official release, positive for a development branch,
|
|
|
|
# or negative for a release candidate or beta (after the base version
|
|
|
|
# number has been incremented)
|
2013-10-30 21:58:17 +00:00
|
|
|
|
2017-03-31 08:08:29 +00:00
|
|
|
__version__ = "2.0.0dev12"
|
2017-02-15 11:58:12 +00:00
|
|
|
|
|
|
|
# If it's a git checkout try to add the commit
|
|
|
|
if "dev" in __version__:
|
|
|
|
try:
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
if os.path.exists(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".git")):
|
2017-02-23 08:13:27 +00:00
|
|
|
r = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip("\n")
|
2017-02-15 11:58:12 +00:00
|
|
|
__version__ += "-" + r
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
|
|
|
|
2016-03-24 09:38:57 +00:00
|
|
|
__version_info__ = (2, 0, 0, -99)
|