# Pip requirements file for development.
#
# The order of packages is significant, because pip processes them in the order
# of appearance.
#
# Make sure that the minimum versions required in this file are consistent with
# the minimum versions specified in minimum-constraints.txt.


# Runtime dependencies:
-r requirements.txt


# Direct dependencies:

# Ansible validate-modules (no imports, invoked via validate-modules script)
mock>=2.0.0
voluptuous>=0.11.7

# Unit test (imports into testcases):
# packaging is specified in requirements.txt
funcsigs>=1.0.2; python_version < '3.3'
# pytest 5.0.0 has removed support for Python < 3.5
# pytest 4.3.1 solves an issue on Python 3 with minimum package levels
pytest>=4.3.1,<5.0.0; python_version < '3.5'
pytest>=4.3.1; python_version >= '3.5' and python_version <= '3.6'
pytest>=4.4.0; python_version >= '3.7'
testfixtures>=6.9.0
# colorama 0.4.0 removed support for Python 3.4
colorama>=0.3.9,<0.4.0; python_version <= '3.4'
colorama>=0.4.0; python_version >= '3.5'
# mock>=2.0.0
# requests>=2.20.1
requests-mock>=1.6.0
requests-toolbelt>=0.7.0
importlib-metadata<1,>=0.12; python_version <= '3.7'
pytz>=2016.10

# Unit test (indirect dependencies):
# Pluggy 0.12.0 has a bug causing pytest plugins to fail loading on py38
pluggy>=0.7.1; python_version >= '2.7' and python_version <= '3.6'
pluggy>=0.13.0; python_version >= '3.7'
decorator>=4.0.11

# Coverage reporting (no imports, invoked via coveralls script):
# coverage 5.0 has removed support for py34
coverage>=4.5.2,<5.0
# python-coveralls 2.9.2 no longer has requirement coverage==4.0.3.
python-coveralls>=2.9.2
pytest-cov>=2.7.0
# PyYAML is pulled in by python-coveralls and is specified in requirements.txt

# ansible-test
yamllint>=1.25.0
pathspec>=0.8.0
rstcheck>=3.3.1

# Safety CI by pyup.io
safety>=1.8.4
# dparse 0.5.0 has an infinite recursion issue on Python 2.7,
#   see https://github.com/pyupio/dparse/issues/46
dparse>=0.4.1,<0.5.0; python_version == '2.7'
dparse>=0.4.1; python_version >= '3.4'

# Tox
tox>=2.5.0

# Sphinx (no imports, invoked via sphinx-build script):
# Note: Ansible 2.10 requires sphinx==2.12 which does no longer support
#       Python 2.7, so we can no longer build the docs on Python 2.7.
# Note: The docs build tools from Ansible 2.10 (in ../ansible) require
#       antsibull, which supports only py>=3.6.
Sphinx>=3.0.0; python_version >= '3.6'
sphinx-git>=10.1.1; python_version >= '3.6'
GitPython>=2.1.1; python_version >= '3.6'
sphinxcontrib-fulltoc>=1.2.0; python_version >= '3.6'
sphinxcontrib-websupport>=1.1.2; python_version >= '3.6'
Pygments>=2.1.3; python_version >= '3.6'

# ansible-doc-extractor and it's dependent theme for docs generation (no imports, invoked via script):
ansible-doc-extractor>=0.1.4; python_version >= '3.6'
sphinx-rtd-theme>=0.5.0; python_version >= '3.6'

# PyLint (no imports, invoked via pylint script)
# Pylint requires astroid
# Pylint 1.x / astroid 1.x supports py27 and py34/35/36
# Pylint 2.0 / astroid 2.0 removed py27, added py37
# Pylint 2.4 / astroid 2.3 removed py34
pylint>=1.6.4,<2.0.0; python_version == '2.7'
pylint>=2.2.2,<2.4; python_version == '3.4'
pylint>=2.4.4; python_version >= '3.5'
astroid>=1.4.9,<2.0.0; python_version == '2.7'
astroid>=2.1.0,<2.3; python_version == '3.4'
astroid>=2.3.3; python_version >= '3.5'
# Pinning typed-ast to <1.4.0 for Python 3.4 because it started removing
# Python 3.4 support.
# Requiring typed-ast>=1.4.0 for Python 3.8 since it addresses compile errors
# with missing pgenheaders.h and duplicate definition of a struct.
typed-ast>=1.3.0,<1.4.0; python_version == '3.4' and implementation_name == "cpython"
typed-ast>=1.3.0; python_version >= '3.5' and python_version < '3.8' and implementation_name == "cpython"
typed-ast>=1.4.0; python_version >= '3.8' and implementation_name == "cpython"

# Flake8 and dependents (no imports, invoked via flake8 script):
flake8>=3.7.9
mccabe>=0.6.0
pycodestyle>=2.5.0
# flake8 3.7.9 pins pyflakes<2.2.0, and since pyflakes 2.2.0 was released this needs to be repeated here
pyflakes>=2.1.0,<2.2.0
entrypoints>=0.3.0
functools32>=3.2.3.post2; python_version == '2.7'  # technically: python_version < '3.2'

# Twine (no imports, invoked via twine script):
twine>=1.8.1
# readme-renderer 25.0 has removed support for Python 3.4
# readme-renderer 23.0 has made cmarkgfm part of extras (it fails on Cygwin)
readme-renderer>=23.0; python_version == '2.7'
readme-renderer>=23.0,<25.0; python_version == '3.4'
readme-renderer>=23.0; python_version >= '3.5'


# Indirect dependencies are not specified in this file unless constraints are needed.
