From 8eec5ec4a89f912372f05e492747301022bec53d Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 14 Nov 2024 19:13:55 -0500 Subject: [PATCH] [DO NOT MERGE] Test if CI passes with minimal versions of deps --- ci-constraints-requirements.txt | 130 ++++++++++---------------------- pyproject.toml | 14 ++-- 2 files changed, 46 insertions(+), 98 deletions(-) diff --git a/ci-constraints-requirements.txt b/ci-constraints-requirements.txt index 20f54708ad0e..16e51e8fd7f5 100644 --- a/ci-constraints-requirements.txt +++ b/ci-constraints-requirements.txt @@ -1,41 +1,42 @@ # This file was autogenerated by uv via the following command: -# uv pip compile --universal -p 3.7 --extra=docs --extra=docstest --extra=pep8test --extra=test --extra=test-randomorder --extra=nox --extra=sdist --unsafe-package=cffi --unsafe-package=pycparser --unsafe-package=setuptools --unsafe-package=cryptography-vectors pyproject.toml +# uv pip compile --resolution=lowest-direct --universal -p 3.7 --extra=docs --extra=docstest --extra=pep8test --extra=test --extra=test-randomorder --extra=nox --extra=sdist --unsafe-package=cffi --unsafe-package=pycparser --unsafe-package=setuptools --unsafe-package=cryptography-vectors pyproject.toml alabaster==0.7.13 ; python_full_version < '3.9' # via sphinx -alabaster==0.7.16 ; python_full_version == '3.9.*' - # via sphinx -alabaster==1.0.0 ; python_full_version >= '3.10' +alabaster==0.7.16 ; python_full_version >= '3.9' # via sphinx argcomplete==3.1.2 ; python_full_version < '3.8' # via nox argcomplete==3.5.1 ; python_full_version >= '3.8' # via nox +attrs==24.2.0 + # via pytest babel==2.14.0 ; python_full_version < '3.8' # via sphinx babel==2.16.0 ; python_full_version >= '3.8' # via sphinx bleach==6.0.0 ; python_full_version < '3.8' # via readme-renderer -build==1.1.1 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -build==1.2.2.post1 ; python_full_version >= '3.8' +bleach==6.1.0 ; python_full_version == '3.8.*' + # via readme-renderer +bleach==6.2.0 ; python_full_version >= '3.9' + # via readme-renderer +build==1.0.0 # via # cryptography (pyproject.toml) # check-sdist -certifi==2024.8.30 +certifi==2024.2.2 # via # cryptography (pyproject.toml) # requests charset-normalizer==3.4.0 # via requests -check-sdist==1.2.0 ; python_full_version >= '3.8' +check-sdist==0.1.0 ; python_full_version >= '3.8' # via cryptography (pyproject.toml) -click==8.1.7 +click==0.1 # via cryptography (pyproject.toml) -colorama==0.4.6 ; (platform_system != 'Windows' and sys_platform == 'win32') or platform_system == 'Windows' or os_name == 'nt' +colorama==0.4.6 ; sys_platform == 'win32' or os_name == 'nt' # via # build - # click # colorlog # pytest # sphinx @@ -45,20 +46,11 @@ coverage==7.2.7 ; python_full_version < '3.8' # via pytest-cov coverage==7.6.1 ; python_full_version == '3.8.*' # via pytest-cov -coverage==7.6.4 ; python_full_version >= '3.9' +coverage==7.6.5 ; python_full_version >= '3.9' # via pytest-cov distlib==0.3.9 # via virtualenv -docutils==0.19 ; python_full_version < '3.8' - # via - # readme-renderer - # sphinx -docutils==0.20.1 ; python_full_version == '3.8.*' - # via - # readme-renderer - # sphinx - # sphinx-rtd-theme -docutils==0.21.2 ; python_full_version >= '3.9' +docutils==0.19 # via # readme-renderer # sphinx @@ -80,19 +72,17 @@ imagesize==1.4.1 importlib-metadata==6.7.0 ; python_full_version < '3.8' # via # argcomplete + # attrs # build - # click # nox # pluggy # pytest - # pytest-randomly # sphinx # sphinxcontrib-spelling # virtualenv -importlib-metadata==8.5.0 ; python_full_version >= '3.8' and python_full_version < '3.10.2' +importlib-metadata==8.5.0 ; python_full_version >= '3.8' and python_full_version < '3.10' # via # build - # pytest-randomly # sphinx importlib-resources==6.4.5 ; python_full_version == '3.8.*' # via check-sdist @@ -104,17 +94,11 @@ markupsafe==2.1.5 ; python_full_version < '3.9' # via jinja2 markupsafe==3.0.2 ; python_full_version >= '3.9' # via jinja2 -mypy==1.4.1 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -mypy==1.13.0 ; python_full_version >= '3.8' +mypy==1.0.0 # via cryptography (pyproject.toml) mypy-extensions==1.0.0 # via mypy -nh3==0.2.18 ; python_full_version >= '3.8' - # via readme-renderer -nox==2024.4.15 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -nox==2024.10.9 ; python_full_version >= '3.8' +nox==2024.4.15 ; python_full_version >= '3.8' # via cryptography (pyproject.toml) packaging==24.0 ; python_full_version < '3.8' # via @@ -138,11 +122,11 @@ pluggy==1.2.0 ; python_full_version < '3.8' # via pytest pluggy==1.5.0 ; python_full_version >= '3.8' # via pytest -pretend==1.0.9 +pretend==0.5 # via cryptography (pyproject.toml) py-cpuinfo==9.0.0 # via pytest-benchmark -pyenchant==3.2.2 +pyenchant==3.1.1 # via # cryptography (pyproject.toml) # sphinxcontrib-spelling @@ -156,81 +140,48 @@ pygments==2.18.0 ; python_full_version >= '3.8' # sphinx pyproject-hooks==1.2.0 # via build -pytest==7.4.4 ; python_full_version < '3.8' - # via - # cryptography (pyproject.toml) - # pytest-benchmark - # pytest-cov - # pytest-randomly - # pytest-xdist -pytest==8.3.3 ; python_full_version >= '3.8' +pytest==7.2.0 # via # cryptography (pyproject.toml) # pytest-benchmark # pytest-cov # pytest-randomly # pytest-xdist -pytest-benchmark==4.0.0 ; python_full_version < '3.9' +pytest-benchmark==3.2.0 # via cryptography (pyproject.toml) -pytest-benchmark==5.1.0 ; python_full_version >= '3.9' +pytest-cov==2.0.0 # via cryptography (pyproject.toml) -pytest-cov==4.1.0 ; python_full_version < '3.8' +pytest-randomly==1.0.0 # via cryptography (pyproject.toml) -pytest-cov==5.0.0 ; python_full_version == '3.8.*' - # via cryptography (pyproject.toml) -pytest-cov==6.0.0 ; python_full_version >= '3.9' - # via cryptography (pyproject.toml) -pytest-randomly==3.12.0 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -pytest-randomly==3.15.0 ; python_full_version == '3.8.*' - # via cryptography (pyproject.toml) -pytest-randomly==3.16.0 ; python_full_version >= '3.9' - # via cryptography (pyproject.toml) -pytest-xdist==3.5.0 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -pytest-xdist==3.6.1 ; python_full_version >= '3.8' +pytest-xdist==3.5.0 # via cryptography (pyproject.toml) pytz==2024.2 ; python_full_version < '3.9' # via babel -readme-renderer==37.3 ; python_full_version < '3.8' - # via cryptography (pyproject.toml) -readme-renderer==43.0 ; python_full_version == '3.8.*' - # via cryptography (pyproject.toml) -readme-renderer==44.0 ; python_full_version >= '3.9' +readme-renderer==0.7.0 # via cryptography (pyproject.toml) requests==2.31.0 ; python_full_version < '3.8' # via sphinx requests==2.32.3 ; python_full_version >= '3.8' # via sphinx -ruff==0.7.3 +ruff==0.0.13 # via cryptography (pyproject.toml) -six==1.16.0 ; python_full_version < '3.8' - # via bleach +six==1.16.0 + # via + # bleach + # readme-renderer snowballstemmer==2.2.0 # via sphinx sphinx==5.3.0 ; python_full_version < '3.8' # via # cryptography (pyproject.toml) # sphinxcontrib-spelling -sphinx==7.1.2 ; python_full_version == '3.8.*' +sphinx==6.0.0 ; python_full_version >= '3.8' # via # cryptography (pyproject.toml) # sphinx-rtd-theme # sphinxcontrib-jquery # sphinxcontrib-spelling -sphinx==7.4.7 ; python_full_version == '3.9.*' - # via - # cryptography (pyproject.toml) - # sphinx-rtd-theme - # sphinxcontrib-jquery - # sphinxcontrib-spelling -sphinx==8.1.3 ; python_full_version >= '3.10' - # via - # cryptography (pyproject.toml) - # sphinx-rtd-theme - # sphinxcontrib-jquery - # sphinxcontrib-spelling -sphinx-rtd-theme==3.0.2 ; python_full_version >= '3.8' +sphinx-rtd-theme==3.0.0 ; python_full_version >= '3.8' # via cryptography (pyproject.toml) sphinxcontrib-applehelp==1.0.2 ; python_full_version < '3.8' # via sphinx @@ -260,24 +211,21 @@ sphinxcontrib-serializinghtml==1.1.5 ; python_full_version < '3.9' # via sphinx sphinxcontrib-serializinghtml==2.0.0 ; python_full_version >= '3.9' # via sphinx -sphinxcontrib-spelling==8.0.0 +sphinxcontrib-spelling==7.3.1 # via cryptography (pyproject.toml) tomli==2.0.1 ; python_full_version < '3.8' # via # build - # coverage # mypy # nox # pytest -tomli==2.0.2 ; python_full_version >= '3.8' and python_full_version <= '3.11' +tomli==2.1.0 ; python_full_version >= '3.8' and python_full_version < '3.11' # via # build # check-sdist - # coverage # mypy # nox # pytest - # sphinx typed-ast==1.5.5 ; python_full_version < '3.8' # via mypy typing-extensions==4.7.1 ; python_full_version < '3.8' @@ -292,13 +240,13 @@ urllib3==2.0.7 ; python_full_version < '3.8' # via requests urllib3==2.2.3 ; python_full_version >= '3.8' # via requests -uv==0.5.1 ; python_full_version >= '3.8' +uv==0.5.2 ; python_full_version >= '3.8' # via nox virtualenv==20.26.6 ; python_full_version < '3.8' # via nox virtualenv==20.27.1 ; python_full_version >= '3.8' # via nox -webencodings==0.5.1 ; python_full_version < '3.8' +webencodings==0.5.1 # via bleach zipp==3.15.0 ; python_full_version < '3.8' # via importlib-metadata @@ -306,7 +254,7 @@ zipp==3.20.2 ; python_full_version == '3.8.*' # via # importlib-metadata # importlib-resources -zipp==3.21.0 ; python_full_version >= '3.9' and python_full_version < '3.10.2' +zipp==3.21.0 ; python_full_version == '3.9.*' # via importlib-metadata # The following packages were excluded from the output: diff --git a/pyproject.toml b/pyproject.toml index 0d561612b14c..9de094433f02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,22 +63,22 @@ changelog = "https://cryptography.io/en/latest/changelog/" ssh = ["bcrypt >=3.1.5"] # All the following are used for our own testing. -nox = ["nox", "nox[uv] >=2024.03.02; python_version >= '3.8'"] +nox = ["nox >=2024.04.15", "nox[uv] >=2024.03.02; python_version >= '3.8'"] test = [ "cryptography_vectors", "pytest >=7.2.0", - "pytest-benchmark", - "pytest-cov", - "pytest-xdist", + "pytest-benchmark >=3.2.0", + "pytest-cov >=2.0", + "pytest-xdist >=3.5.0", "pretend", - "certifi", + "certifi >=2024", ] test-randomorder = ["pytest-randomly"] docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=3.0.0; python_version >= '3.8'"] -docstest = ["pyenchant >=1.6.11", "readme-renderer", "sphinxcontrib-spelling >=4.0.1"] +docstest = ["pyenchant >=3", "readme-renderer", "sphinxcontrib-spelling >=7.3.1"] sdist = ["build >=1.0.0"] # `click` included because its needed to type check `release.py` -pep8test = ["ruff", "mypy", "check-sdist; python_version >= '3.8'", "click"] +pep8test = ["ruff", "mypy >=1", "check-sdist; python_version >= '3.8'", "click"] [tool.maturin] python-source = "src"