#!/usr/bin/env python
#
# This file is part of git-big-picture
#
# Copyright (C) 2010    Sebastian Pipping <sebastian@pipping.org>
# Copyright (C) 2010    Julius Plenz <julius@plenz.com>
# Copyright (C) 2010-18 Valentin Haenel <valentin.haenel@gmx.de>
#
# git-big-picture 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.
#
# git-big-picture 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 git-big-picture.  If not, see <http://www.gnu.org/licenses/>.

from setuptools import find_packages, setup

from git_big_picture import __version__ as VERSION

with open('README.rst') as f:
    long_description = f.read()

_tests_require = [
    # Keep in sync with test_requirements.txt
    'coverage',
    'cram',
    'parameterized',
    'pytest',
]

_extras_require = {
    'tests': _tests_require,
}

setup(
    name='git-big-picture',
    version=VERSION,
    author='Sebastian Pipping, Julius Plenz, and Valentin Haenel',
    description='Git — the big picture',
    long_description=long_description,
    url='https://github.com/git-big-picture/git-big-picture',
    license='GPL v3 or later',
    python_requires='>=3.8',
    packages=find_packages(),
    extras_require=_extras_require,
    tests_require=_tests_require,
    entry_points={
        'console_scripts': [
            'git-big-picture = git_big_picture._main:main',
        ],
    },
    classifiers=[
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Programming Language :: Python :: 3.11',
        'Programming Language :: Python :: 3.12',
        'Programming Language :: Python :: 3 :: Only',
    ],
    data_files=[('share/man/man1', ['git-big-picture.1'])],
)
