#!/usr/bin/env python

"""
Setup script for the Python package.
"""

import setuptools

PKG = 'analysis-runner'


def read_file(filename: str) -> str:
    """Returns the full contents of the given file."""
    with open(filename, encoding='utf-8') as f:
        return f.read()


setuptools.setup(
    name=PKG,
    # This tag is automatically updated by bump2version
    version='2.33.0',
    description='Analysis runner to help make analysis results reproducible',
    long_description=read_file('README.md'),
    long_description_content_type='text/markdown',
    url=f'https://github.com/populationgenomics/{PKG}',
    license='MIT',
    packages=['analysis_runner'],
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'cloudpathlib[all]',
        'cpg-utils>=4.6.1',
        'click',
        'airtable-python-wrapper',
        'hail',
        'flake8',
        'flake8-bugbear',
        'flask',
        'google-api-python-client==2.10.0',
        'google-auth==1.27.0',
        'google-cloud-logging==3.1.1',
        'google-cloud-pubsub==2.3.0',
        'google-cloud-secret-manager==2.2.0',
        'google-cloud-storage==1.25.0',
        'Jinja2==3.0.3',
        'kubernetes',
        'protobuf==3.20.1',
        'pulumi-gcp',
        'requests',
        'tabulate==0.8.9',  # https://github.com/Azure/azure-cli/issues/20887
        'toml',
    ],
    entry_points={
        'console_scripts': ['analysis-runner=analysis_runner.cli:main_from_args']
    },
    keywords='bioinformatics',
    classifiers=[
        'Environment :: Console',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
    ],
)
