# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
from io import open
from build_scripts.version import get_git_version
import os
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.
# If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>
#
# This module is part of dipplanner, a Dive planning Tool written in python
"""global setup file."""


# local imports

__authors__ = [
    # alphabetical order by last name
    'Thomas Chiroux', ]


with open("README.rst", encoding='utf-8') as f:
    README = f.read()

with open("NEWS.rst", encoding='utf-8') as f:
    NEWS = f.read()



# Path: build_scripts/version.py
# def get_git_version(abbrev=4):
#     """get the current git version."""
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
# 
#     # If we still don't have anything, that's an error.
# 
#     if version is None:
#         raise ValueError("Cannot find the version number!")
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


# Path: setup.py
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
from io import open
from build_scripts.version import get_git_version
import os

# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.
# If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>
#
# This module is part of dipplanner, a Dive planning Tool written in python
"""global setup file."""


# local imports

__authors__ = [
    # alphabetical order by last name
    'Thomas Chiroux', ]


with open("README.rst", encoding='utf-8') as f:
    README = f.read()

with open("NEWS.rst", encoding='utf-8') as f:
    NEWS = f.read()



VERSION = get_git_version()