from setuptools import find_packages, setup


GITHUB_URL = "https://github.com/tfiers/puprelease"

with open("ReadMe.md", mode="r", encoding="utf-8") as f:
    readme = f.read()

setup(
    name="puprelease",
    description="Publishing a new version of your Python package has never been easier",
    author="Tomas Fiers",
    author_email="tomas.fiers@gmail.com",
    long_description=readme,
    long_description_content_type="text/markdown",
    url=GITHUB_URL,
    project_urls={"Source Code": GITHUB_URL},
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
    ],
    entry_points={"console_scripts": ["pup=puprelease.pup:cli"]},
    packages=find_packages("src"),
    package_dir={"": "src"},  # (`""` is the "root" package).
    install_requires=[
        "click >= 7.1",  # Major versions go fast and are not very breaking. Hence no `~`.
        "requests ~= 2.0",
        "twine",
        "wheel",
        "setuptools_scm",
        "colorama; platform_system == 'Windows'",
    ],
    # Get package version from git tags
    setup_requires=["setuptools_scm"],
    use_scm_version={
        "version_scheme": "post-release",
        "local_scheme": "dirty-tag",
    },
)
