From af1881ca9ecf2e5f7be2da65b1850b94fdfff76a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sun, 23 Apr 2023 15:20:31 +0200 Subject: Upgrade pytest to resolve security issue See https://github.com/pytest-dev/py/issues/287#issuecomment-1290407715 for more info. --- poetry.lock | 64 ++++++++++++++++++++++------------------------------------ pyproject.toml | 4 ++-- 2 files changed, 26 insertions(+), 42 deletions(-) diff --git a/poetry.lock b/poetry.lock index 90c9a08..c1ccdd2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -6,32 +6,6 @@ category = "dev" optional = false python-versions = ">=3.6" -[[package]] -name = "atomicwrites" -version = "1.4.1" -description = "Atomic file writes." -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - -[[package]] -name = "attrs" -version = "23.1.0" -description = "Classes Without Boilerplate" -category = "dev" -optional = false -python-versions = ">=3.7" - -[package.dependencies] -importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} - -[package.extras] -cov = ["attrs", "coverage[toml] (>=5.3)"] -dev = ["attrs", "pre-commit"] -docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"] -tests = ["attrs", "zope-interface"] -tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest-mypy-plugins", "pytest-xdist", "pytest (>=4.3.0)"] - [[package]] name = "babel" version = "2.12.1" @@ -75,6 +49,9 @@ category = "dev" optional = false python-versions = ">=3.7" +[package.dependencies] +tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} + [package.extras] toml = ["tomli"] @@ -118,6 +95,17 @@ category = "dev" optional = false python-versions = ">=3.7" +[[package]] +name = "exceptiongroup" +version = "1.1.1" +description = "Backport of PEP 654 (exception groups)" +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "filelock" version = "3.12.0" @@ -324,38 +312,35 @@ plugins = ["importlib-metadata"] [[package]] name = "pytest" -version = "6.2.5" +version = "7.3.1" description = "pytest: simple powerful testing with Python" category = "dev" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" [package.dependencies] -atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} -attrs = ">=19.2.0" colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -py = ">=1.8.2" -toml = "*" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] -testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] +testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] [[package]] name = "pytest-cov" -version = "2.12.1" +version = "4.0.0" description = "Pytest plugin for measuring coverage." category = "dev" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.6" [package.dependencies] -coverage = ">=5.2.1" +coverage = {version = ">=5.2.1", extras = ["toml"]} pytest = ">=4.6" -toml = "*" [package.extras] testing = ["fields", "hunter", "process-tests", "six", "pytest-xdist", "virtualenv"] @@ -606,12 +591,10 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "flake8 (<5)", "pytest-co [metadata] lock-version = "1.1" python-versions = ">=3.7, <4" -content-hash = "d18df2968da5f59b9293e1feae1b73c8d6c3d92b49f504b91a43ee8044af1976" +content-hash = "ceb9e294dac0a9e4dde84b5951d6c6b4a40ce4ce9f0e875bec2d4a466b332eab" [metadata.files] alabaster = [] -atomicwrites = [] -attrs = [] babel = [] certifi = [] charset-normalizer = [] @@ -621,6 +604,7 @@ coveralls = [] distlib = [] docopt = [] docutils = [] +exceptiongroup = [] filelock = [] flake8 = [] idna = [] diff --git a/pyproject.toml b/pyproject.toml index 1dddc9c..80d7aaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,8 +38,8 @@ pyasn1 = ">=0.1.3" [tool.poetry.dev-dependencies] coveralls = "^3.0.0" Sphinx = "^5.0.0" -pytest = "^6.2.2" -pytest-cov = "^2.11.1" +pytest = "^7.2" +pytest-cov = "^4.0" tox = "^3.22.0" mypy = "^0.910" flake8 = "^3.8.4" -- cgit v1.2.1