# -*- coding: utf-8 -*-

# © 2017-2019, ETH Zurich, Institut für Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""
usage: pip install .[dev]
"""

import json
import os
import re

from setuptools import find_packages, setup

SETUP_JSON_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "setup.json")
with open(SETUP_JSON_PATH, "r") as json_file:
    SETUP_KWARGS = json.load(json_file)
EXTRAS_REQUIRE = SETUP_KWARGS["extras_require"]
EXTRAS_REQUIRE["dev"] += EXTRAS_REQUIRE["docs"] + EXTRAS_REQUIRE["tests"]

if __name__ == "__main__":
    setup(
        packages=find_packages(),
        long_description=open(
            os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md")
        ).read(),
        long_description_content_type="text/markdown",
        **SETUP_KWARGS,
    )
