<filename>setup.py
#!/usr/bin/env python
import re
import os

from setuptools import setup


with open("README.rst") as fp:
    long_desc = fp.read()

with open("loopialib/__init__.py") as fp:
    version = re.search('__version__\s+=\s+"([^"]+)', fp.read()).group(1)

if __name__ == "__main__":
    setup(
        name="loopialib",
        version=version,
        description="A pythonic interface to Loopia's XMLRPCAPI",
        long_description=long_desc,
        license="MIT",
        author="<NAME>",
        author_email="<EMAIL>",
        url="https://www.github.com/runfalk/loopialib",
        packages=["loopialib"],
        install_requires=[],
        extras_require={
            "dev": [
                "mock",
                "pytest",
                "pytest-cov",
            ],
        },
        classifiers=(
            "Development Status :: 3 - Alpha",
            "Intended Audience :: Developers",
            "License :: OSI Approved :: MIT License",
            "Programming Language :: Python",
            "Programming Language :: Python :: 2",
            "Programming Language :: Python :: 3",
            "Topic :: Utilities",
        )
    )
