<reponame>frank690/depends
# -*- coding: utf-8 -*-

import re

import setuptools

with open("CHANGELOG.md", "r") as fh:
    changelog = fh.read().splitlines()

compiler = re.compile(pattern=r"^\s*version\s+\d+(\.\d+)*\s*$", flags=re.IGNORECASE)
raw_changelog_version = list(filter(compiler.match, changelog))[0]
changelog_version = re.sub(
    pattern=r"^\s*version\s+",
    repl="",
    string=raw_changelog_version,
    flags=re.IGNORECASE,
)

with open("README.md", "r") as fh:
    long_description = fh.read()

with open("dev-requirements.txt", "r") as fh:
    dev_requirements = fh.read().splitlines()

with open("requirements.txt", "r") as fh:
    requirements = fh.read().splitlines()

setuptools.setup(
    name="dependency-graph",
    version=changelog_version,
    author="frank690",
    author_email="<EMAIL>",
    description="The fast module to analyze your repositories internal dependencies",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/frank690/dependency-graph",
    packages=setuptools.find_packages(
        exclude=["tests", "tests.*", "*.tests.*", "*.tests", "docs"]
    ),
    include_package_data=True,
    setup_requires=["cython"],
    install_requires=requirements,
    extras_require={
        "dev": dev_requirements,
    },
    classifiers=[
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Operating System :: Microsoft :: Windows ",
        "Operating System :: Unix",
    ],
    python_requires=">=3.7",
    entry_points={
        "console_scripts": [
            "dependency_graph=dependency_graph:start",
            "pre_commit_dependency_graph=dependency_graph:pre_commit_start",
        ]
    },
)

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

import re

import setuptools

with open("CHANGELOG.md", "r") as fh:
    changelog = fh.read().splitlines()

compiler = re.compile(pattern=r"^\s*version\s+\d+(\.\d+)*\s*$", flags=re.IGNORECASE)
raw_changelog_version = list(filter(compiler.match, changelog))[0]
changelog_version = re.sub(
    pattern=r"^\s*version\s+",
    repl="",
    string=raw_changelog_version,
    flags=re.IGNORECASE,
)

with open("README.md", "r") as fh:
    long_description = fh.read()

with open("dev-requirements.txt", "r") as fh:
    dev_requirements = fh.read().splitlines()

with open("requirements.txt", "r") as fh:
    requirements = fh.read().splitlines()

setuptools.setup(
    name="dependency-graph",
    version=changelog_version,
    author="frank690",
    author_email="<EMAIL>",
    description="The fast module to analyze your repositories internal dependencies",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/frank690/dependency-graph",
    packages=setuptools.find_packages(
        exclude=["tests", "tests.*", "*.tests.*", "*.tests", "docs"]
    ),
    include_package_data=True,
    setup_requires=["cython"],
    install_requires=requirements,
    extras_require={
        "dev": dev_requirements,
    },
    classifiers=[
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Operating System :: Microsoft :: Windows ",
        "Operating System :: Unix",
    ],
    python_requires=">=3.7",
    entry_points={
        "console_scripts": [
            "dependency_graph=dependency_graph:start",
            "pre_commit_dependency_graph=dependency_graph:pre_commit_start",
        ]
    },
)
# -*- coding: utf-8 -*-