# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['pytest_datadir_mgr']

package_data = \
{'': ['*']}

install_requires = \
['progressbar2>=3.50.1,<4.0.0',
 'pytest>=5.4.1,<6.0.0',
 'requests_download>=0.1.2,<0.2.0']

entry_points = \
{'pytest11': ['datadir_mgr = pytest_datadir_mgr']}

setup_kwargs = {
    'name': 'pytest-datadir-mgr',
    'version': '0.2.0',
    'description': 'Manager for test data providing downloads, caching of generated files, and a context for temp directories.',
    'long_description': "datadir-mgr plugin for pytest\n=============================\n\nThe ``datadir-mgr`` plugin for pytest_ provides the ``datadir_mgr`` fixture which\nallow test functions to easily download data files and cache generated data files\nin data directories in a manner that allows for overlaying of results. ``datadir-mgr``\nis pathlib-based, so complete paths to data files are handled,\nnot just filenames.\n\n\n\nThe ``datadir_mgr`` behaves like a limited dictionary, with ``datadir_mgr[item]`` returning a path with the\nmost specific scope (out of ``global, module, [class], [function]`` that matches the string or path specified\nby ``item``.  In addition to serving data files already stored in the data directory, the fixture provides\nfour methods useful for adding to the test data stored in the repository:\n\n- The ``download`` method allows downloading data files into data directories, with\n  option MD5 checksum checks, un-gzipping, and a progressbar.\n- The ``savepath`` fixture lets an arbitrary path relative to the current working\n  directory to be saved at a particular scope in the data directories.\n- The ``add_scope`` method lets one add directories from scopes different from\n  the present request to be added to the search path.  This lets the results\n  of previous cached steps to be used in scopes other than global.\n- The ``in_tmp_dir`` method creates a context in a temporary directory with\n  a list of request file paths copied in.  Optionally, all output file paths\n  can be saved at a particular scope at cleanup with an optional exclusion\n  filter pattern (e.g., for excluding log files).\n\n\nPrerequisites\n-------------\nPython 3.6 or greater is required.\nThis package is tested under Linux and MacOS using Python 3.7.\n\nInstallation for Users\n----------------------\nInstall via pip ::\n\n     pip install pytest-datadir-mgr\n\nFor Developers\n--------------\nIf you plan to develop ``datadir_mgr``, you'll need to install\nthe `poetry <https://python-poetry.org>`_ dependency manager.\nIf you haven't previously installed ``poetry``, execute the command: ::\n\n    curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python\n\nNext, get the master branch from GitHub ::\n\n\tgit clone https://github.com/legumeinfo/pytest-datadir-mgr.git\n\nChange to the ``datadir-mgr/`` directory and install with poetry: ::\n\n\tpoetry install -v\n\nTest ``datadir-mgr`` with ``poetry``: ::\n\n    poetry run pytest -s\n\nProject Status\n--------------\n+-------------------+------------+\n| Latest Release    | |pypi|     |\n+-------------------+------------+\n| GitHub            | |repo|     |\n+-------------------+------------+\n| License           | |license|  |\n+-------------------+------------+\n| Travis Build      | |travis|   |\n+-------------------+------------+\n| Coverage          | |coverage| |\n+-------------------+------------+\n| Code Grade        | |codacy|   |\n+-------------------+------------+\n| Dependencies      | |depend|   |\n+-------------------+------------+\n| Issues            | |issues|   |\n+-------------------+------------+\n\n.. _pytest: http://pytest.org/\n\n.. |pypi| image:: https://img.shields.io/pypi/v/pytest-datadir-mgr.svg\n    :target: https://pypi.python.org/pypi/pytest-datadir-mgr\n    :alt: Python package\n\n.. |repo| image:: https://img.shields.io/github/commits-since/legumeinfo/pytest-datadir-mgr/0.1.0.svg\n    :target: https://github.com/legumeinfo/pytest-datadir-mgr\n    :alt: GitHub repository\n\n.. |license| image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg\n    :target: https://github.com/legumeinfo/pytest-datadir-mgr/blob/master/LICENSE.txt\n    :alt: License terms\n\n.. |travis| image:: https://img.shields.io/travis/legumeinfo/pytest-datadir-mgr.svg\n    :target:  https://travis-ci.org/legumeinfo/pytest-datadir-mgr\n    :alt: Travis CI\n\n.. |codacy| image:: https://api.codacy.com/project/badge/Grade/4580a0a576204fa688cbb75575a1c867\n    :target: https://www.codacy.com/gh/legumeinfo/pytest-datadir-mgr?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=legumeinfo/pytest-datadir-mgr&amp;utm_campaign=Badge_Grade\n    :alt: Codacy.io grade\n\n.. |coverage| image:: https://codecov.io/gh/legumeinfo/pytest-datadir-mgr/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/legumeinfo/pytest-datadir-mgr\n    :alt: Codecov.io test coverage\n\n.. |issues| image:: https://img.shields.io/github/issues/legumeinfo/pytest-datadir-mgr.svg\n    :target:  https://github.com/legumeinfo/pytest-datadir-mgr/issues\n    :alt: Issues reported\n\n.. |depend| image:: https://api.dependabot.com/badges/status?host=github&repo=legumeinfo/pytest-datadir-mgr\n     :target: https://app.dependabot.com/accounts/legumeinfo/repos/236847525\n     :alt: dependabot dependencies\n\n",
    'author': 'Joel Berendzen',
    'author_email': 'joelb@ncgr.org',
    'maintainer': None,
    'maintainer_email': None,
    'url': 'https://github.com/legumeinfo/pytest-datadir-mgr',
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'entry_points': entry_points,
    'python_requires': '>=3.6,<4.0',
}


setup(**setup_kwargs)
