# -*- coding: utf-8 -*-
# Copyright © 2015 Carl Chenet <carl.chenet@backupchecker.com>
# 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
# 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/>

from distutils.core import setup
import os.path
import platform
import sys

# Warn the user about the supported Python versions
if float(platform.python_version()[0:3]) < 3.4:
    print('You need at least Python 3.4 to use BackupChecker')
    sys.exit(1)

CLASSIFIERS = [
    'Intended Audience :: System Administrators',
    'Development Status :: 5 - Production/Stable',
    'Environment :: Console',
    'License :: OSI Approved :: GNU General Public License (GPL)',
    'Operating System :: POSIX :: Linux',
    'Programming Language :: Python :: 3.4'
]

setup(name = 'backupchecker',
    version = '1.7',
    license = 'GNU GPL v3',
    description = 'automated backup checker',
    long_description = 'Backup Checker is a fully automated backup checker.',
    classifiers = CLASSIFIERS,
    author = 'Carl Chenet',
    author_email = 'chaica@backupchecker.com',
    url = 'https://github.com/backupchecker/backupchecker',
    download_url = 'https://github.com/backupchecker/backupchecker',
    packages = ['backupchecker', 'backupchecker.checkbackups', 'backupchecker.generatelist'],
    data_files=[(os.path.join('share','man','man1'), ['man/backupchecker.1'])],
    scripts = ['scripts/backupchecker']
)
