Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin pytest 7.0.1 #14997

Merged
merged 5 commits into from Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
86 changes: 44 additions & 42 deletions 3rdparty/python/pytest.lock
Expand Up @@ -11,10 +11,10 @@
// "generated_with_requirements": [
// "ipdb",
// "pygments",
// "pytest!=7.1.0,<8,>=7",
// "pytest-cov!=2.12.1,<3.1,>=2.12",
// "pytest-html",
// "pytest-icdiff",
// "pytest<8,>=7"
// "pytest-icdiff"
// ]
// }
// --- END PANTS LOCKFILE METADATA ---
Expand All @@ -32,19 +32,19 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "93aa393e9d6c54c5cd570ccadd8edad61ea0c4b9ea7a01409020c9aa019eb442",
"url": "https://files.pythonhosted.org/packages/e4/fa/0c6c9786aa6927d12d100d322588e125e6ed466ab0a3d2d509ea18aeb56d/appnope-0.1.2-py2.py3-none-any.whl"
"hash": "265a455292d0bd8a72453494fa24df5a11eb18373a60c7c0430889f22548605e",
"url": "https://files.pythonhosted.org/packages/41/4a/381783f26df413dde4c70c734163d88ca0550a1361cb74a1c68f47550619/appnope-0.1.3-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a",
"url": "https://files.pythonhosted.org/packages/e9/bc/2d2c567fe5ac1924f35df879dbf529dd7e7cabd94745dc9d89024a934e76/appnope-0.1.2.tar.gz"
"hash": "02bd91c4de869fbb1e1c50aafc4098827a7a54ab2f39d9dcba6c9547ed920e24",
"url": "https://files.pythonhosted.org/packages/6a/cd/355842c0db33192ac0fc822e2dcae835669ef317fe56c795fb55fcddb26f/appnope-0.1.3.tar.gz"
}
],
"project_name": "appnope",
"requires_dists": [],
"requires_python": null,
"version": "0.1.2"
"version": "0.1.3"
},
{
"artifacts": [
Expand Down Expand Up @@ -668,21 +668,21 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "30129d870dcb0b3b6a53efdc9d0a83ea96162ffd28ffe077e94215b233dc670c",
"url": "https://files.pythonhosted.org/packages/00/e4/beb2fad0bec554a011b321d0f6b99981f9171c0b05d03a6948e45ac8a5be/prompt_toolkit-3.0.28-py3-none-any.whl"
"hash": "62291dad495e665fca0bda814e342c69952086afb0f4094d0893d357e5c78752",
"url": "https://files.pythonhosted.org/packages/3f/2d/dcb44d69f388ca2ee1a4a4d3c204ab66b36975c0d5166781eaeeff76b882/prompt_toolkit-3.0.29-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "9f1cd16b1e86c2968f2519d7fb31dd9d669916f515612c269d14e9ed52b51650",
"url": "https://files.pythonhosted.org/packages/37/34/c34c376882305c5051ed7f086daf07e68563d284015839bfb74d6e61d402/prompt_toolkit-3.0.28.tar.gz"
"hash": "bd640f60e8cecd74f0dc249713d433ace2ddc62b65ee07f96d358e0b152b6ea7",
"url": "https://files.pythonhosted.org/packages/59/68/4d80f22e889ea34f20483ae3d4ca3f8d15f15264bcfb75e52b90fb5aefa5/prompt_toolkit-3.0.29.tar.gz"
}
],
"project_name": "prompt-toolkit",
"requires_dists": [
"wcwidth"
],
"requires_python": ">=3.6.2",
"version": "3.0.28"
"version": "3.0.29"
},
{
"artifacts": [
Expand Down Expand Up @@ -763,13 +763,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "b555252a95bbb2a37a97b5ac2eb050c436f7989993565f5e0c9128fcaacadd0e",
"url": "https://files.pythonhosted.org/packages/36/e6/dea2b8cd72cf0600f3c2572fb5a48b01aa8e8fd8703c830dab972036c34c/pytest-7.1.0-py3-none-any.whl"
"hash": "92f723789a8fdd7180b6b06483874feca4c48a5c76968e03bb3e7f806a1869ea",
"url": "https://files.pythonhosted.org/packages/d2/ac/556e4410326ce77eeb1d1ec35a3e3ec847fb3e5cb30673729d2eeeffc970/pytest-7.1.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "f1089d218cfcc63a212c42896f1b7fbf096874d045e1988186861a1a87d27b47",
"url": "https://files.pythonhosted.org/packages/6e/1c/5a8a4ae3548eaa9a082a25cd6118f166d6bbe440300b3c57c4904cc47935/pytest-7.1.0.tar.gz"
"hash": "841132caef6b1ad17a9afde46dc4f6cfa59a05f9555aae5151f73bdf2820ca63",
"url": "https://files.pythonhosted.org/packages/f0/8c/1fb22b4e526a7461b4797042ed9d9c26a7a69673a148709bf50692b874fb/pytest-7.1.1.tar.gz"
}
],
"project_name": "pytest",
Expand All @@ -792,7 +792,7 @@
"xmlschema; extra == \"testing\""
],
"requires_python": ">=3.7",
"version": "7.1"
"version": "7.1.1"
},
{
"artifacts": [
Expand Down Expand Up @@ -863,33 +863,33 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "576055b8336dd4a9006dd2a47615f76f2f8c30ab12b1b1c039d99e834583523f",
"url": "https://files.pythonhosted.org/packages/e5/12/bfb677aad996cc994efb9c61289a4994d60079587e85155738859fd3b68e/pytest_metadata-1.11.0-py2.py3-none-any.whl"
"hash": "141ba561a17659cda00cf74e7c7cf6103bab4550acad76a46f893339de63b1df",
"url": "https://files.pythonhosted.org/packages/67/13/ee20734c21daa5009cb6578316cf3122f1924cc856e8a992fafe1919ac7a/pytest_metadata-2.0.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "71b506d49d34e539cc3cfdb7ce2c5f072bea5c953320002c95968e0238f8ecf1",
"url": "https://files.pythonhosted.org/packages/5f/09/b7ab6eaf49f133eb06e9a5319c40e07227e4781ee0875eb015a8283c69f3/pytest-metadata-1.11.0.tar.gz"
"hash": "5cdb6aeea8ba9109181cf9f149c8a3ae1430ff7e44506a8f866af8a98ca46301",
"url": "https://files.pythonhosted.org/packages/4d/c3/25af5f12df9b13498730953445cf8d91847556070123056d43fde2b35f20/pytest-metadata-2.0.1.tar.gz"
}
],
"project_name": "pytest-metadata",
"requires_dists": [
"pytest>=2.9.0"
"pytest<8.0.0,>=3.0.0"
],
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"version": "1.11"
"requires_python": "<3.11.0,>=3.7.0",
"version": "2.0.1"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "782ef48d58982ddb49920c11a0c5c9c0b02e7d7d1c2ad0aa44e1a1e133051c96",
"url": "https://files.pythonhosted.org/packages/7c/5b/3d92b9f0f7ca1645cba48c080b54fe7d8b1033a4e5720091d1631c4266db/setuptools-60.10.0-py3-none-any.whl"
"hash": "41aface2e85b517c3a466b4689b8055c02cd2e623461f09af7d93f3da65c4709",
"url": "https://files.pythonhosted.org/packages/66/e7/5a78a242b3a0f4cad3a9a9376bcf0d2b1f2bfb54871d9e46f46cb0ed0914/setuptools-61.3.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "6599055eeb23bfef457d5605d33a4d68804266e6cb430b0fb12417c5efeae36c",
"url": "https://files.pythonhosted.org/packages/af/e8/894c71e914dfbe01276a42dfad40025cd96119f2eefc39c554b6e8b9df86/setuptools-60.10.0.tar.gz"
"hash": "88fafba4abc2f047e08a188fd4bbc10b0e464592c37b514c19f8f8f88d94450b",
"url": "https://files.pythonhosted.org/packages/c9/42/16ac560057f5e74aa39754a3811334cc60908f59183c336ba5097369a81d/setuptools-61.3.1.tar.gz"
}
],
"project_name": "setuptools",
Expand All @@ -900,6 +900,7 @@
"filelock>=3.4.0; extra == \"testing-integration\"",
"flake8-2020; extra == \"testing\"",
"furo; extra == \"docs\"",
"ini2toml[lite]>=0.9; extra == \"testing\"",
"jaraco.envs>=2.2; extra == \"testing\"",
"jaraco.envs>=2.2; extra == \"testing-integration\"",
"jaraco.packaging>=9; extra == \"docs\"",
Expand Down Expand Up @@ -927,14 +928,15 @@
"sphinx-inline-tabs; extra == \"docs\"",
"sphinx; extra == \"docs\"",
"sphinxcontrib-towncrier; extra == \"docs\"",
"tomli-w>=1.0.0; extra == \"testing\"",
"tomli; extra == \"testing-integration\"",
"virtualenv>=13.0.0; extra == \"testing\"",
"virtualenv>=13.0.0; extra == \"testing-integration\"",
"wheel; extra == \"testing\"",
"wheel; extra == \"testing-integration\""
],
"requires_python": ">=3.7",
"version": "60.10"
"version": "61.3.1"
},
{
"artifacts": [
Expand Down Expand Up @@ -1034,50 +1036,50 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375",
"url": "https://files.pythonhosted.org/packages/52/c5/df7953fe6065185af5956265e3b16f13c2826c2b1ba23d43154f3af453bc/zipp-3.7.0-py3-none-any.whl"
"hash": "c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099",
"url": "https://files.pythonhosted.org/packages/80/0e/16a7ee38617aab6a624e95948d314097cc2669edae9b02ded53309941cfc/zipp-3.8.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d",
"url": "https://files.pythonhosted.org/packages/94/64/3115548d41cb001378099cb4fc6a6889c64ef43ac1b0e68c9e80b55884fa/zipp-3.7.0.tar.gz"
"hash": "56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad",
"url": "https://files.pythonhosted.org/packages/cc/3c/3e8c69cd493297003da83f26ccf1faea5dd7da7892a0a7c965ac3bcba7bf/zipp-3.8.0.tar.gz"
}
],
"project_name": "zipp",
"requires_dists": [
"func-timeout; extra == \"testing\"",
"jaraco.itertools; extra == \"testing\"",
"jaraco.packaging>=8.2; extra == \"docs\"",
"jaraco.packaging>=9; extra == \"docs\"",
"pytest-black>=0.3.7; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-checkdocs>=2.4; extra == \"testing\"",
"pytest-cov; extra == \"testing\"",
"pytest-enabler>=1.0.1; extra == \"testing\"",
"pytest-flake8; extra == \"testing\"",
"pytest-mypy; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest-mypy>=0.9.1; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
"pytest>=6; extra == \"testing\"",
"rst.linker>=1.9; extra == \"docs\"",
"sphinx; extra == \"docs\""
],
"requires_python": ">=3.7",
"version": "3.7"
"version": "3.8"
}
],
"platform_tag": [
"cp39",
"cp39",
"macosx_11_0_arm64"
"cp36",
"cp36m",
"macosx_10_16_x86_64"
]
}
],
"pex_version": "2.1.72",
"pex_version": "2.1.75",
"prefer_older_binary": false,
"requirements": [
"ipdb",
"pygments",
"pytest!=7.1.0,<8,>=7",
"pytest-cov!=2.12.1,<3.1,>=2.12",
"pytest-html",
"pytest-icdiff",
"pytest<8,>=7"
"pytest-icdiff"
],
"requires_python": [
"<3.10,>=3.7"
Expand Down
8 changes: 6 additions & 2 deletions 3rdparty/python/requirements.txt
@@ -1,4 +1,5 @@
# Note: Adding a third-party dependency is usually frowned upon because it increases the time to install Pants.
# Note: Adding a third-party dependency is usually frowned upon because it increases the time
# to install Pants.
# This is particularly painful for CI, where the installation of Pants is often slow.
# Additionally, it increases the surface area of Pants's supply chain for security.
# Consider pinging us on Slack if you're thinking a new dependency might be needed.
Expand All @@ -16,7 +17,10 @@ ijson==3.1.4
packaging==21.3
pex==2.1.75
psutil==5.9.0
pytest>=6.2.4,<8 # This should be compatible with pytest.py, although it can be looser so that we don't over-constrain pantsbuild.pants.testutil
# This should be compatible with pytest.py, although it can be looser so that we don't
# over-constrain pantsbuild.pants.testutil
# Note: Pytest 7.1.0 has a significant bug, see https://github.com/pantsbuild/pants/issues/14990
pytest>=6.2.4,<8,!=7.1.0
python-lsp-jsonrpc==1.0.0
PyYAML>=6.0,<7.0
requests[security]>=2.25.1
Expand Down
3 changes: 2 additions & 1 deletion src/python/pants/backend/python/subsystems/pytest.py
Expand Up @@ -64,7 +64,8 @@ class PyTest(PythonToolBase):
# This should be compatible with requirements.txt, although it can be more precise.
# TODO: To fix this, we should allow using a `target_option` referring to a
# `python_requirement` to override the version.
default_version = "pytest>=7,<8"
# Pytest 7.1.0 has a significant bug, see https://github.com/pantsbuild/pants/issues/14990.
default_version = "pytest>=7,<8,!=7.1.0"
default_extra_requirements = ["pytest-cov>=2.12,!=2.12.1,<3.1"]

default_main = ConsoleScript("pytest")
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/python/subsystems/setup.py
Expand Up @@ -314,6 +314,7 @@ class PythonSetup(Subsystem):
"when building wheels. Otherwise, the default of macosx_11_0 will be used. "
"This may be required for pip to be able to install the resulting distribution "
"on Big Sur.",
advanced=True,
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated but not worth a PR of its own.

)

@property
Expand Down