from setuptools import setup, find_packages


def parse_requirements(requirement_file):
    with open(requirement_file) as f:
        return f.readlines()


with open('./README.rst') as f:
    long_description = f.read()


setup(
    version="10.18.3",
    name="swimlane",
    author="Swimlane",
    author_email="info@swimlane.com",
    url="https://github.com/swimlane/swimlane-python",
    python_requires=">=3.6",
    packages=find_packages(exclude=('tests', 'tests.*')),
    description="Python driver for the Swimlane API",
    long_description=long_description,
    license='AGPLv3',
    install_requires=parse_requirements('./requirements.txt'),
    setup_requires=[
        'pytest-runner'
    ],
    tests_require=parse_requirements('./test-requirements.txt'),
    classifiers=[
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Development Status :: 5 - Production/Stable",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12"
    ]
)
