# coding: utf-8
#
# This code is part of lattpy.
#
# Copyright (c) 2022, Dylan Jones
#
# This code is licensed under the MIT License. The copyright notice in the
# LICENSE file in the root directory and this permission notice shall
# be included in all copies or substantial portions of the Software.

from setuptools import setup, find_packages
import versioneer


def requirements():
    with open("requirements.txt", "r") as f:
        return f.readlines()


def render_requirements():
    with open("requirements_renderer.txt", "r") as f:
        return f.readlines()


def long_description():
    with open("README.md", "r") as f:
        return f.read()


setup(
    name="lattpy",
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    author="Dylan Jones",
    author_email="dylanljones94@gmail.com",
    description="Simple and efficient Python package for modeling d-dimensional "
    "Bravais lattices in solid state physics.",
    long_description=long_description(),
    long_description_content_type="text/markdown",
    url="https://github.com/dylanljones/lattpy",
    packages=find_packages(),
    license="MIT License",
    install_requires=requirements(),
    tests_require=["pytest", "hypothesis"],
    extras_require={"renderer": render_requirements()},
    python_requires=">=3.7",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering :: Physics",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
)
