Skip to content

Commit

Permalink
update Pants' own Python to 3.11 (#21528)
Browse files Browse the repository at this point in the history
Building on the work in
pantsbuild/scie-pants#351 this brings the
version of Python used by Pants from 3.9 to 3.11. Why 3.11 and not 3.12
or 3.13? Because that is what we already released on the scie-pants side
and two release forward is still a big benefit.
    
NOTE: I'd like to hold off on stomping out all deprecation warnings and
anything else that "depends" on 3.11until one `dev` release since the
release process part is what I'm most nervous about.
  • Loading branch information
cburroughs authored Nov 17, 2024
1 parent d55290d commit 1258080
Show file tree
Hide file tree
Showing 23 changed files with 485 additions and 642 deletions.
105 changes: 45 additions & 60 deletions 3rdparty/python/flake8.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// {
// "version": 3,
// "valid_for_interpreter_constraints": [
// "CPython==3.9.*"
// "CPython==3.11.*"
// ],
// "generated_with_requirements": [
// "flake8-2020<2,>=1.7.0",
Expand All @@ -27,83 +27,83 @@
"allow_wheels": true,
"build_isolation": true,
"constraints": [],
"excluded": [],
"locked_resolves": [
{
"locked_requirements": [
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "3833794e27ff64ea4e9cf5d410082a8b97ff1a06c16aa3d2027339cd0f1195c7",
"url": "https://files.pythonhosted.org/packages/d9/6a/bb0122ebe280476c924470779d2595f1403878cafe3c8a343ac56a5a9c0e/flake8-6.0.0-py2.py3-none-any.whl"
"hash": "ffdfce58ea94c6580c77888a86506937f9a1a227dfcd15f245d694ae20a6b6e5",
"url": "https://files.pythonhosted.org/packages/b0/24/bbf7175ffc47cb3d3e1eb523ddb23272968359dfcf2e1294707a2bf12fc4/flake8-6.1.0-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181",
"url": "https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz"
"hash": "d5b3857f07c030bdb5bf41c7f53799571d75c4491748a3adcd47de929e34cd23",
"url": "https://files.pythonhosted.org/packages/cf/f8/bbe24f43695c0c480181e39ce910c2650c794831886ec46ddd7c40520e6a/flake8-6.1.0.tar.gz"
}
],
"project_name": "flake8",
"requires_dists": [
"mccabe<0.8.0,>=0.7.0",
"pycodestyle<2.11.0,>=2.10.0",
"pyflakes<3.1.0,>=3.0.0"
"pycodestyle<2.12.0,>=2.11.0",
"pyflakes<3.2.0,>=3.1.0"
],
"requires_python": ">=3.8.1",
"version": "6.0.0"
"version": "6.1.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "1553b2b3638135b276f7a3252301e81376901e7b6a5eaccb07a969771f178375",
"url": "https://files.pythonhosted.org/packages/a5/6e/df5766df36c1280d0b96996e89e160cab2f1fa4ffd7434ff252c51025ca7/flake8_2020-1.8.0-py2.py3-none-any.whl"
"hash": "59b6b8ac01cde10ef11b31a2c9aa15b4509d828ae115ee5be34464b9e4de4ea6",
"url": "https://files.pythonhosted.org/packages/36/f0/14c6c25768ddc81999733e7bed89e9285b273920505180155e351ed92dc5/flake8_2020-1.8.1-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "f5312b3634266bd0f1957f64ecabeb62d67bbd9cee637e33a2651a80091f90aa",
"url": "https://files.pythonhosted.org/packages/3d/0e/29c1a6d15baa70865daa1ae6887742d5907fb75b92c4c1a8281915f8550d/flake8_2020-1.8.0.tar.gz"
"hash": "094ea95e8b614c3bd123fd4f007be28ec117ca57a6169903d4baaabe78e3e590",
"url": "https://files.pythonhosted.org/packages/cf/0b/e71a0d9efd854a631e2d51707676886997c73bec70c3c221b84601b976d2/flake8_2020-1.8.1.tar.gz"
}
],
"project_name": "flake8-2020",
"requires_dists": [
"flake8>=5"
],
"requires_python": ">=3.8",
"version": "1.8.0"
"version": "1.8.1"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "013234637ec7dfcb7cd2900578fb53c512f81db909cefe371c019232695c362d",
"url": "https://files.pythonhosted.org/packages/9b/8d/b70f791311a8c6975c0c6634dd44db8fd712d6ad9ed6a3fe888b9be7c89b/flake8_comprehensions-3.12.0-py3-none-any.whl"
"hash": "b7e027bbb52be2ceb779ee12484cdeef52b0ad3c1fcb8846292bdb86d3034681",
"url": "https://files.pythonhosted.org/packages/3a/aa/93667d6f398749d1a9dd37d646e092f9f1baade7cbac948331b50a1d513c/flake8_comprehensions-3.15.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "419ef1a6e8de929203791a5e8ff5e3906caeba13eb3290eebdbf88a9078d502e",
"url": "https://files.pythonhosted.org/packages/65/b4/9a2cbbac095aaf1e8dbe3eac55a5155cb9f7860fbb0d9fa23443b5a3afd1/flake8_comprehensions-3.12.0.tar.gz"
"hash": "923c22603e0310376a6b55b03efebdc09753c69f2d977755cba8bb73458a5d4d",
"url": "https://files.pythonhosted.org/packages/60/fa/68481f25fc8ecdbe8a763062ba4f5b17fa4ef7fc0646c081267cef4f67e5/flake8_comprehensions-3.15.0.tar.gz"
}
],
"project_name": "flake8-comprehensions",
"requires_dists": [
"flake8!=3.2.0,>=3.0",
"importlib-metadata; python_version < \"3.8\""
"flake8!=3.2,>=3"
],
"requires_python": ">=3.7",
"version": "3.12.0"
"requires_python": ">=3.8",
"version": "3.15.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "5c056e06f22820865cb34962a1da80767fed5273920b0768e97739021d428de5",
"url": "https://files.pythonhosted.org/packages/87/04/983ec9268488911103bc3b30bcdef3936cb9ed55a53d8ad25f023e76243a/flake8_no_implicit_concat-0.3.4-py3-none-any.whl"
"hash": "454b0c6df39c03bd8b1891abc9317981901a72ef426a4d56eb5fc689eef8fc65",
"url": "https://files.pythonhosted.org/packages/27/0d/9f3e09dd88b3bf321465d5d78e37aeb4f9022ee6764ea003d9ec455b2d61/flake8_no_implicit_concat-0.3.5-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "1b522becd7568ee2e288bc58e294ebd0d771996ee3138a5322a3cefb21c8464b",
"url": "https://files.pythonhosted.org/packages/00/f2/f7616a05059683e4e3970c21f7ed820b18eca08ab272e774dc5ed07aa9c6/flake8-no-implicit-concat-0.3.4.tar.gz"
"hash": "8e675477c40b21d9481915a4a257260b17e29137b0b76406657c3605f79b2b42",
"url": "https://files.pythonhosted.org/packages/1f/3c/c86797634204844c29eb60e00bdf2079cdda97d40905e861e57af60b9567/flake8-no-implicit-concat-0.3.5.tar.gz"
}
],
"project_name": "flake8-no-implicit-concat",
Expand All @@ -128,8 +128,8 @@
"pep8-naming; extra == \"dev\"",
"typing; python_version < \"3.5\""
],
"requires_python": ">=3.3",
"version": "0.3.4"
"requires_python": ">=3.5",
"version": "0.3.5"
},
{
"artifacts": [
Expand All @@ -153,63 +153,48 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3",
"url": "https://files.pythonhosted.org/packages/85/01/e2678ee4e0d7eed4fd6be9e5b043fff9d22d245d06c8c91def8ced664189/more_itertools-9.1.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d",
"url": "https://files.pythonhosted.org/packages/2e/d0/bea165535891bd1dcb5152263603e902c0ec1f4c9a2e152cc4adff6b3a38/more-itertools-9.1.0.tar.gz"
}
],
"project_name": "more-itertools",
"requires_dists": [],
"requires_python": ">=3.7",
"version": "9.1.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "8a4eaf0d0495c7395bdab3589ac2db602797d76207242c17d470186815706610",
"url": "https://files.pythonhosted.org/packages/a2/54/001fdc0d69e8d0bb86c3423a6fa6dfada8cc26317c2635ab543e9ac411bd/pycodestyle-2.10.0-py2.py3-none-any.whl"
"hash": "44fe31000b2d866f2e41841b18528a505fbd7fef9017b04eff4e2648a0fadc67",
"url": "https://files.pythonhosted.org/packages/b1/90/a998c550d0ddd07e38605bb5c455d00fcc177a800ff9cc3dafdcb3dd7b56/pycodestyle-2.11.1-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "347187bdb476329d98f695c213d7295a846d1152ff4fe9bacb8a9590b8ee7053",
"url": "https://files.pythonhosted.org/packages/06/6b/5ca0d12ef7dcf7d20dfa35287d02297f3e0f9e515da5183654c03a9636ce/pycodestyle-2.10.0.tar.gz"
"hash": "41ba0e7afc9752dfb53ced5489e89f8186be00e599e712660695b7a75ff2663f",
"url": "https://files.pythonhosted.org/packages/34/8f/fa09ae2acc737b9507b5734a9aec9a2b35fa73409982f57db1b42f8c3c65/pycodestyle-2.11.1.tar.gz"
}
],
"project_name": "pycodestyle",
"requires_dists": [],
"requires_python": ">=3.6",
"version": "2.10.0"
"requires_python": ">=3.8",
"version": "2.11.1"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "ec55bf7fe21fff7f1ad2f7da62363d749e2a470500eab1b555334b67aa1ef8cf",
"url": "https://files.pythonhosted.org/packages/af/4c/b1c7008aa7788b3e26c06c60aa18da7d3aa1f00e344aa3f18ac92768854b/pyflakes-3.0.1-py2.py3-none-any.whl"
"hash": "4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774",
"url": "https://files.pythonhosted.org/packages/00/e9/1e1fd7fae559bfd07704991e9a59dd1349b72423c904256c073ce88a9940/pyflakes-3.1.0-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "ec8b276a6b60bd80defed25add7e439881c19e64850afd9b346283d4165fd0fd",
"url": "https://files.pythonhosted.org/packages/f2/51/506ddcfab10d708e8460554cc1cf37c727a6a2cccbad8dfe57766cfce33c/pyflakes-3.0.1.tar.gz"
"hash": "a0aae034c444db0071aa077972ba4768d40c830d9539fd45bf4cd3f8f6992efc",
"url": "https://files.pythonhosted.org/packages/8b/fb/7251eaec19a055ec6aafb3d1395db7622348130d1b9b763f78567b2aab32/pyflakes-3.1.0.tar.gz"
}
],
"project_name": "pyflakes",
"requires_dists": [],
"requires_python": ">=3.6",
"version": "3.0.1"
"requires_python": ">=3.8",
"version": "3.1.0"
}
],
"platform_tag": null
}
],
"only_builds": [],
"only_wheels": [],
"overridden": [],
"path_mappings": {},
"pex_version": "2.1.137",
"pip_version": "23.1.2",
"pex_version": "2.19.1",
"pip_version": "24.2",
"prefer_older_binary": false,
"requirements": [
"flake8-2020<2,>=1.7.0",
Expand All @@ -218,7 +203,7 @@
"flake8<7,>=5.0.4"
],
"requires_python": [
"==3.9.*"
"==3.11.*"
],
"resolver_version": "pip-2020-resolver",
"style": "universal",
Expand Down
42 changes: 12 additions & 30 deletions 3rdparty/python/mypy.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// {
// "version": 3,
// "valid_for_interpreter_constraints": [
// "CPython==3.9.*"
// "CPython==3.11.*"
// ],
// "generated_with_requirements": [
// "mypy-typing-asserts",
Expand Down Expand Up @@ -59,28 +59,28 @@
},
{
"algorithm": "sha256",
"hash": "3e38b980e5681f28f033f3be86b099a247b13c491f14bb8b1e1e134d23bb599d",
"url": "https://files.pythonhosted.org/packages/2e/35/f4d8b6d2cb0b3dad63e96caf159419dda023f45a358c6c9ac582ccaee354/mypy-1.13.0-cp39-cp39-musllinux_1_1_x86_64.whl"
"hash": "20c7ee0bc0d5a9595c46f38beb04201f2620065a93755704e141fcac9f59db2b",
"url": "https://files.pythonhosted.org/packages/26/50/29d3e7dd166e74dc13d46050b23f7d6d7533acf48f5217663a3719db024e/mypy-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "7029881ec6ffb8bc233a4fa364736789582c738217b133f1b55967115288a2bc",
"url": "https://files.pythonhosted.org/packages/38/e9/fc3865e417722f98d58409770be01afb961e2c1f99930659ff4ae7ca8b7e/mypy-1.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl"
"hash": "3790ded76f0b34bc9c8ba4def8f919dd6a46db0f5a6610fb994fe8efdd447f73",
"url": "https://files.pythonhosted.org/packages/3f/1d/676e76f07f7d5ddcd4227af3938a9c9640f293b7d8a44dd4ff41d4db25c1/mypy-1.13.0-cp311-cp311-musllinux_1_1_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "0246bcb1b5de7f08f2826451abd947bf656945209b140d16ed317f65a17dc7dc",
"url": "https://files.pythonhosted.org/packages/5f/d4/b33ddd40dad230efb317898a2d1c267c04edba73bc5086bf77edeb410fb2/mypy-1.13.0-cp39-cp39-macosx_10_9_x86_64.whl"
"hash": "3ddb5b9bf82e05cc9a627e84707b528e5c7caaa1c55c69e175abb15a761cec2d",
"url": "https://files.pythonhosted.org/packages/c8/71/6950fcc6ca84179137e4cbf7cf41e6b68b4a339a1f5d3e954f8c34e02d66/mypy-1.13.0-cp311-cp311-macosx_11_0_arm64.whl"
},
{
"algorithm": "sha256",
"hash": "0291a61b6fbf3e6673e3405cfcc0e7650bebc7939659fdca2702958038bd835e",
"url": "https://files.pythonhosted.org/packages/e8/21/7e9e523537991d145ab8a0a2fd98548d67646dc2aaaf6091c31ad883e7c1/mypy-1.13.0.tar.gz"
"hash": "581665e6f3a8a9078f28d5502f4c334c0c8d802ef55ea0e7276a6e409bc0d82d",
"url": "https://files.pythonhosted.org/packages/d0/19/de0822609e5b93d02579075248c7aa6ceaddcea92f00bf4ea8e4c22e3598/mypy-1.13.0-cp311-cp311-macosx_10_9_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "7f5b7deae912cf8b77e990b9280f170381fdfbddf61b4ef80927edd813163732",
"url": "https://files.pythonhosted.org/packages/f4/e6/f414bca465b44d01cd5f4a82761e15044bedd1bf8025c5af3cc64518fac5/mypy-1.13.0-cp39-cp39-macosx_11_0_arm64.whl"
"hash": "0291a61b6fbf3e6673e3405cfcc0e7650bebc7939659fdca2702958038bd835e",
"url": "https://files.pythonhosted.org/packages/e8/21/7e9e523537991d145ab8a0a2fd98548d67646dc2aaaf6091c31ad883e7c1/mypy-1.13.0.tar.gz"
}
],
"project_name": "mypy",
Expand Down Expand Up @@ -216,24 +216,6 @@
"requires_python": "<4.0,>=3.8",
"version": "0.240.4"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38",
"url": "https://files.pythonhosted.org/packages/cf/db/ce8eda256fa131af12e0a76d481711abe4681b6923c27efb9a255c9e4594/tomli-2.0.2-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed",
"url": "https://files.pythonhosted.org/packages/35/b9/de2a5c0144d7d75a57ff355c0c24054f965b2dc3036456ae03a51ea6264b/tomli-2.0.2.tar.gz"
}
],
"project_name": "tomli",
"requires_dists": [],
"requires_python": ">=3.8",
"version": "2.0.2"
},
{
"artifacts": [
{
Expand Down Expand Up @@ -269,7 +251,7 @@
"strawberry-graphql==0.240.4"
],
"requires_python": [
"==3.9.*"
"==3.11.*"
],
"resolver_version": "pip-2020-resolver",
"style": "universal",
Expand Down
Loading

0 comments on commit 1258080

Please sign in to comment.