# Pip requirements file for packages needed for development.


# Direct dependencies for development and indirect dependencies for development
# that are needed for some reason (must be consistent with minimum-constraints-develop.txt)

# PEP517 package builder, used in Makefile
build>=1.0.0
# build requires virtualenv.cli_run which was added in virtualenv 20.1
virtualenv>=20.26.6
pyproject-hooks>=1.1.0

# six (only needed by packages that still support Python 2)
six>=1.16.0

# Change log
towncrier>=22.8.0

# Unit test (imports into testcases):
# pytest is covered in extra-testutils-requirements.txt
testfixtures>=6.9.0
# For versions of importlib-metadata that are in Python, see https://pypi.org/project/importlib-metadata/
# importlib-metadata 8.5.0 is the last version supporting Python 3.8
importlib-metadata>=8.5.0; python_version == '3.8'
importlib-metadata>=8.7.0; python_version >= '3.9'
# requests: covered in direct deps for installation
colorama>=0.4.6
requests-mock>=1.6.0
requests-toolbelt>=0.8.0
more-itertools>=4.0.0
# pytz 2019.1 fixes an ImportError for collections.Mapping on Python 3.10
# pytz 2024.2 introduced an issue that causes our tests to fail.
# pytz 2025.1 introduced an issue that causes our tests to fail (https://github.com/stub42/pytz/issues/133)
# pytz 2025.2 introduced an issue that causes our tests to fail.
pytz>=2019.1,!=2024.2,!=2025.1,!=2025.2
# Python's built-in zoneinfo module needs the tzdata package on Windows.
tzdata>=2023.4; sys_platform == 'win32'

# packaging is used by pytest, pip-check-reqs, sphinx
packaging>=24.1

# Unit test (indirect dependencies):
pluggy>=1.3.0
# decorator: covered in requirements.txt

# Coverage reporting (no imports, invoked via coveralls script):
# coveralls versions 4.0.0/4.0.1 have increased their pinning of coverage to <8,
#   but they have also added a constraint for Python to <3.13. Due to that
#   Python pinning, we need to use the older coverage and coveralls versions on
#   Python>=3.13.
# Note: The earlier repetition of pinnings to avoid pip backtracking no longer
#       seems to be needed.
coverage>=7.6.1; python_version == '3.8'
coverage>=7.8.0; python_version >= '3.9' and python_version <= '3.12'
coverage>=6.5.0; python_version >= '3.13'
pytest-cov>=2.7.0
coveralls>=4.0.1; python_version <= '3.12'
coveralls>=3.3.0; python_version >= '3.13'
# PyYAML: covered in direct deps for development

# Safety CI by pyup.io
# safety 3.4.0 supports marshmallow>=4.0.0, see https://github.com/pyupio/safety/issues/715
# safety 3.4.0 started using httpx and tenacity
# pydantic 2.8.0 fixes an install issue on Python 3.13.
safety>=3.4.0
safety-schemas>=0.0.14
dparse>=0.6.4
ruamel.yaml>=0.17.21
click>=8.0.2
Authlib>=1.3.1
marshmallow>=3.15.0
pydantic>=2.8.0
# typer >=0.17.0 causes import issue for safety, see https://github.com/pyupio/safety/issues/778
typer>=0.12.1,<0.17.0
typer-cli>=0.12.1,<0.17.0
typer-slim>=0.12.1,<0.17.0
# safety 3.4.0 depends on psutil~=6.1.0
psutil~=6.1.0

# Bandit checker
bandit>=1.7.8

# Tox
tox>=4.15.0

# Sphinx (no imports, invoked via sphinx-build script):
# Sphinx 7.2.0 started requiring Python>=3.9
Sphinx>=7.1.0; python_version == '3.8'
Sphinx>=7.2.0; python_version >= '3.9'
# Sphinx 7.1.0 pins docutils to <0.21
docutils>=0.20.1
sphinx-git>=10.1.1
GitPython>=3.1.41
Pygments>=2.15.0
sphinx-rtd-theme>=2.0.0
sphinxcontrib-applehelp>=1.0.4
sphinxcontrib-devhelp>=1.0.2
sphinxcontrib-htmlhelp>=2.0.1
sphinxcontrib-jquery>=4.1
sphinxcontrib-jsmath>=1.0.1
sphinxcontrib-qthelp>=1.0.3
sphinxcontrib-serializinghtml>=1.1.5; python_version == '3.8'
sphinxcontrib-serializinghtml>=1.1.9; python_version >= '3.9'
sphinxcontrib-websupport>=1.2.4
autodocsumm>=0.2.12
Babel>=2.11.0
# snowballstemmer 3.0.0 does not include algorithms used by Sphinx.
# For details, see https://github.com/snowballstem/snowball/issues/229
snowballstemmer>=2.0.0,!=3.0.0

# PyLint (no imports, invoked via pylint script)
pylint>=3.0.1; python_version == '3.8'
pylint>=3.3.1; python_version >= '3.9'
astroid>=3.0.1; python_version == '3.8'
astroid>=3.3.7; python_version >= '3.9'
lazy-object-proxy>=1.4.3
wrapt>=1.14
# platformdirs is also used by tox
platformdirs>=4.1.0
# isort 4.3.8 fixes an issue with py310 and works on py310 (Note that isort 5.10.0 has official support for py310)
isort>=4.3.8
tomlkit>=0.10.1
dill>=0.3.7

# Flake8 and dependents (no imports, invoked via flake8 script):
flake8>=6.1.0
mccabe>=0.7.0
pycodestyle>=2.11.0
pyflakes>=3.1.0
entrypoints>=0.3.0

# Ruff checker (no imports, invoked via ruff script):
ruff>=0.3.5

# Jupyter Notebook (no imports, invoked via jupyter script):
# Note: The packages for Jupyter Notebook are prone to causing endless pip backtracking when
#       installed with minimum versions. This was addressed by pinning the package versions
#       to a maximum in order to reduce the search space for pip.
# Note: notebook 6.5.1 starts using nbclassic which seems to introduce some challenges for pip
#       dependency resolution, so for now we pin notebook to <6.5.
# TODO: Re-enable for Python 3.13 on Windows once pywin32 install issue is solved, see
#       https://github.com/mhammond/pywin32/issues/2367
notebook>=7.2.2; sys_platform != 'win32' or python_version <= '3.12'
jupyter>=1.0.0; sys_platform != 'win32' or python_version <= '3.12'
jupyter-console>=6.6.3; sys_platform != 'win32' or python_version <= '3.12'
ipywidgets>=8.0.5; sys_platform != 'win32' or python_version <= '3.12'
nbconvert>=7.2.10; sys_platform != 'win32' or python_version <= '3.12'
nbclient>=0.7.4; sys_platform != 'win32' or python_version <= '3.12'
nbformat>=5.8.0; sys_platform != 'win32' or python_version <= '3.12'
qtconsole>=5.4.2; sys_platform != 'win32' or python_version <= '3.12'
ipykernel>=6.22.0; sys_platform != 'win32' or python_version <= '3.12'
jupyter-client>=8.1.0; sys_platform != 'win32' or python_version <= '3.12'
jupyterlab-widgets>=3.0.7; sys_platform != 'win32' or python_version <= '3.12'
jupyterlab-pygments>=0.2.0; sys_platform != 'win32' or python_version <= '3.12'
jupyter-core>=5.3.0; sys_platform != 'win32' or python_version <= '3.12'
ipython-genutils>=0.2.0; sys_platform != 'win32' or python_version <= '3.12'
ipython>=8.10.0; sys_platform != 'win32' or python_version <= '3.12'
jupyter-server>=2.14.1; sys_platform != 'win32' or python_version <= '3.12'
jupyterlab>=4.2.5; sys_platform != 'win32' or python_version <= '3.12'
jupyterlab-server>=2.27.1; sys_platform != 'win32' or python_version <= '3.12'
notebook-shim>=0.2.3; sys_platform != 'win32' or python_version <= '3.12'

# Pywin32 is used (at least?) by jupyter.
# Pywin32 version 226 needs to be excluded, see issues #1946 and #1975.
# pywin32 version 302 added support for Python 3.10
# pywin32 version 303 added support for Python 3.11
pywin32>=303; sys_platform == 'win32' and python_version <= '3.11'
# TODO: Re-enable for Python 3.13 once pywin32 install issue is solved, see
#       https://github.com/mhammond/pywin32/issues/2367
pywin32>=306; sys_platform == 'win32' and python_version == '3.12'

# The tornado package is used by ipykernel which is used by jupyter.
tornado>=6.4.2; python_version == '3.8'
tornado>=6.5; python_version >= '3.9'

# pyzmq 26.1.0 added wheel archives for Python 3.13
pyzmq>=26.1.0

# Aditional dependencies of examples
tabulate>=0.8.1
progressbar2>=3.12.0

# Package dependency management tools (not used by any make rules)
pipdeptree>=2.24.0
# pip-check-reqs 2.4.3 fixes a speed issue on Python 3.11 and requires pip>=21.2.4
# pip-check-reqs 2.5.0 dropped support for py38
# pip-check-reqs 2.5.0 has issue https://github.com/r1chardj0n3s/pip-check-reqs/issues/143
pip-check-reqs>=2.4.3,!=2.5.0; python_version == '3.8'
pip-check-reqs>=2.5.1; python_version >= '3.9'

# pywinpty is used by terminado <- notebook <- jupyter
# pywinpty>=1.0 requires maturin to build. Meanwhile, it works.
# pywinpty 2.0.14 has an issue with latest maturin on Python 3.8, see https://github.com/andfoy/pywinpty/issues/486
# pywinpty 2.0.12/13 has the above issue on Python 3.13
pywinpty>=2.0.12,!=2.0.14; os_name == "nt" and python_version == '3.8'
pywinpty>=2.0.12; os_name == "nt" and python_version >= '3.9' and python_version <= '3.12'
pywinpty>=2.0.14; os_name == "nt" and python_version >= '3.13'
