# Pip requirements file for install dependencies.

# Note: The dependencies in this file will become the dependencies stated
# in the Ansible collection package metadata.


# Direct dependencies for install (must be consistent with minimum-constraints-install.txt)

# Keep minimum versions consistent with table for 'minimum' packages in development.rst and with minimum-constraints.txt
# Starting with Python 3.9, ansible >=4 is needed.
# ansible 4 requires Python 2.7 or >=3.5.
# ansible 5 requires Python >=3.8.
# ansible 6 requires Python >=3.8.
# ansible 7 requires Python >=3.9.
# ansible 8 requires Python >=3.9.
# ansible 9 requires Python >=3.10.
# ansible 10 requires Python >=3.10.
# The sanity check of ansible 4 supports Python 2.7, 3.5 to 3.9.
# The sanity check of ansible 5 supports Python 3.8 to 3.10.
# The sanity check of ansible 6 supports Python 3.8 to 3.10.
# The sanity check of ansible 7 supports Python 3.9 to 3.11.
# The sanity check of ansible 8 supports Python 3.9 to 3.11.
# The sanity check of ansible 9 supports Python 3.10 to 3.12.
# The sanity check of ansible 10 supports Python 3.10 to 3.12.
# We require the lowest ansible version that supports the sanity check an a given Python version:
ansible>=2.9.27; python_version == '3.8'
ansible>=4.1.0; python_version == '3.9'
ansible>=5.0.1; python_version == '3.10'
ansible>=7.0.0; python_version == '3.11'
ansible>=9.0.1; python_version >= '3.12'

# ansible-core is pulled in by ansible>=4.0, and is needed for pip-check-reqs checks.
ansible-core>=2.11.12; python_version == '3.9'
ansible-core>=2.12.10; python_version == '3.10'
ansible-core>=2.14.14; python_version == '3.11'
ansible-core>=2.16.0; python_version >= '3.12'

requests>=2.32.2

pytz>=2019.1

# zhmcclient @ git+https://github.com/zhmcclient/python-zhmcclient.git@master
zhmcclient>=1.17.0


# Indirect dependencies for install that are needed for some reason (must be consistent with minimum-constraints-install.txt)

# Jinja2 is used by ansible/ansible-core and by ansible-doc-extractor.
# Ansible 6 requires Jinja2>=3.0
# Python 3.10 requires Jinja>=2.11
# Sphinx 7.x requires Jinja2>=3.0
Jinja2>=3.1.4

# MarkupSafe is used by Jinja2
# Jinja2 3.0 requires MarkupSafe>=2.0
MarkupSafe>=2.0.0

cryptography>=43.0.1

# importlib-metadata is used for install by jsonschema which is used by zhmcclient.
# importlib-metadata is used for development by flake8 (and others).
importlib-metadata>=4.8.3

# packaging is used by ansible-core (and for dev also by pytest, pip-check-reqs, sphinx and others)
packaging>=22.0

# PyYAML 5.3 has wheel archives for Python 2.7, 3.5 - 3.9
# PyYAML 5.4 has wheel archives for Python 2.7, 3.6 - 3.9
# PyYAML 6.0 has wheel archives for Python 3.6 - 3.11
# PyYAML 5.4 and 6.0.0 fails install since Cython 3 was released, see issue
#   https://github.com/yaml/pyyaml/issues/724.
PyYAML>=6.0.1

python-dateutil>=2.8.2

# jsonschema
jsonschema>=4.10.0,!=4.18.1; python_version <= '3.12'
# TODO: Remove temporary circumvention to pin jsonschema to <4.18.0 when pyo3-ffi
#       supports Python 3.13 (see https://github.com/PyO3/pyo3/issues/4038#issuecomment-2156363013)
jsonschema>=4.10.0,<4.18.0; python_version >= '3.13'

urllib3>=1.26.19
