# coding=utf-8
import os
import sys

from setuptools import find_packages, setup

CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 7)

BUILD = 0
VERSION = "0.11"
RELEASE = VERSION


def read(fname):
    with open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8') as f:
        return f.read()


with open('req.txt') as f:
    reqs = f.read().splitlines()

setup(
    name='oms-cms',
    version=VERSION,
    python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
    url='https://github.com/DJWOMS/oms_cms',
    author='DJWOMS - Omelchenko Michael',
    author_email='socanime@gmail.com',
    description=('A high-level Python Web CMS'),
    long_description=read('README.md'),
    license='BSD',
    packages=['oms_cms'],
    include_package_data=True,
    install_requires=reqs,
    entry_points={'console_scripts': [
        'oms-start = oms_cms.scripts.create_project:cli_create',
    ]},
    # extras_require={
    #     "bcrypt": ["bcrypt"],
    #     "argon2": ["argon2-cffi >= 16.1.0"],
    # },
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    project_urls={
        'Documentation': 'https://oms-cms.readthedocs.io/ru/latest/',
        'Source': 'https://github.com/DJWOMS/oms_cms',
    },
)
