Skip to content

Commit

Permalink
Upgrade Python to 3.11 and various deps.
Browse files Browse the repository at this point in the history
This removes the dependency on tomli in favor of the tomllib stdlib.
  • Loading branch information
jsirois committed Jan 22, 2023
1 parent 626abaa commit 24f3995
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 233 deletions.
92 changes: 26 additions & 66 deletions lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
// {
// "version": 3,
// "valid_for_interpreter_constraints": [
// "CPython==3.10.*"
// "CPython==3.11.*"
// ],
// "generated_with_requirements": [
// "appdirs",
// "click",
// "filelock",
// "httpx",
// "packaging",
// "pytest==7.2.0",
// "tomli",
// "pytest==7.2.1",
// "tqdm",
// "types-appdirs",
// "types-tqdm"
Expand Down Expand Up @@ -176,26 +175,6 @@
"requires_python": ">=3.7",
"version": "8.1.3"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "327cbda3da756e2de031a3107b81ab7b3770a602c4d16ca618298c526f4bec1e",
"url": "https://files.pythonhosted.org/packages/e8/14/9c6a7e5f12294ccd6975a45e02899ed25468cd7c2c86f3d9725f387f9f5f/exceptiongroup-1.1.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "bcb67d800a4497e1b404c2dd44fca47d3b7a5e5433dbab67f96c1a685cdfdf23",
"url": "https://files.pythonhosted.org/packages/15/ab/dd27fb742b19a9d020338deb9ab9a28796524081bca880ac33c172c9a8f6/exceptiongroup-1.1.0.tar.gz"
}
],
"project_name": "exceptiongroup",
"requires_dists": [
"pytest>=6; extra == \"test\""
],
"requires_python": ">=3.7",
"version": "1.1.0"
},
{
"artifacts": [
{
Expand Down Expand Up @@ -320,37 +299,37 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
"url": "https://files.pythonhosted.org/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl"
"hash": "b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374",
"url": "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32",
"url": "https://files.pythonhosted.org/packages/23/a2/97899f6bd0e873fed3a7e67ae8d3a08b21799430fb4da15cfedf10d6e2c2/iniconfig-1.1.1.tar.gz"
"hash": "2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3",
"url": "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz"
}
],
"project_name": "iniconfig",
"requires_dists": [],
"requires_python": null,
"version": "1.1.1"
"requires_python": ">=3.7",
"version": "2.0.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "957e2148ba0e1a3b282772e791ef1d8083648bc131c8ab0c1feba110ce1146c3",
"url": "https://files.pythonhosted.org/packages/8f/7b/42582927d281d7cb035609cd3a543ffac89b74f3f4ee8e1c50914bcb57eb/packaging-22.0-py3-none-any.whl"
"hash": "714ac14496c3e68c99c29b00845f7a2b85f3bb6f1078fd9f72fd20f0570002b2",
"url": "https://files.pythonhosted.org/packages/ed/35/a31aed2993e398f6b09a790a181a7927eb14610ee8bbf02dc14d31677f1c/packaging-23.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "2198ec20bd4c017b8f9717e00f0c8714076fc2fd93816750ab48e2c41de2cfd3",
"url": "https://files.pythonhosted.org/packages/6b/f7/c240d7654ddd2d2f3f328d8468d4f1f876865f6b9038b146bec0a6737c65/packaging-22.0.tar.gz"
"hash": "b6ad297f8907de0fa2fe1ccbd26fdaf387f5f47c7275fedf8cce89f99446cf97",
"url": "https://files.pythonhosted.org/packages/47/d5/aca8ff6f49aa5565df1c826e7bf5e85a6df852ee063600c1efa5b932968c/packaging-23.0.tar.gz"
}
],
"project_name": "packaging",
"requires_dists": [],
"requires_python": ">=3.7",
"version": "22.0"
"version": "23.0"
},
{
"artifacts": [
Expand Down Expand Up @@ -380,13 +359,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "892f933d339f068883b6fd5a459f03d85bfcb355e4981e146d2c7616c21fef71",
"url": "https://files.pythonhosted.org/packages/67/68/a5eb36c3a8540594b6035e6cdae40c1ef1b6a2bfacbecc3d1a544583c078/pytest-7.2.0-py3-none-any.whl"
"hash": "c7c6ca206e93355074ae32f7403e8ea12163b1163c976fee7d4d84027c162be5",
"url": "https://files.pythonhosted.org/packages/cc/02/8f59bf194c9a1ceac6330850715e9ec11e21e2408a30a596c65d54cf4d2a/pytest-7.2.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59",
"url": "https://files.pythonhosted.org/packages/0b/21/055f39bf8861580b43f845f9e8270c7786fe629b2f8562ff09007132e2e7/pytest-7.2.0.tar.gz"
"hash": "d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42",
"url": "https://files.pythonhosted.org/packages/e5/6c/f3a15217ac72912c28c5d7a7a8e87ff6d6475c9530595ae9f0f8dedd8dd8/pytest-7.2.1.tar.gz"
}
],
"project_name": "pytest",
Expand All @@ -408,7 +387,7 @@
"xmlschema; extra == \"testing\""
],
"requires_python": ">=3.7",
"version": "7.2.0"
"version": "7.2.1"
},
{
"artifacts": [
Expand Down Expand Up @@ -448,24 +427,6 @@
"requires_python": ">=3.7",
"version": "1.3.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc",
"url": "https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f",
"url": "https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz"
}
],
"project_name": "tomli",
"requires_dists": [],
"requires_python": ">=3.7",
"version": "2.0.1"
},
{
"artifacts": [
{
Expand Down Expand Up @@ -515,26 +476,26 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "8871999c7f4a8cd24655dcb44cfcca03efd931a9b49e62530a8880bd909c5474",
"url": "https://files.pythonhosted.org/packages/5f/1f/08e461659f939d656b104b0dcfe89279cf26801b4c11f23d5a6b63e9ce52/types_tqdm-4.64.7.9-py3-none-any.whl"
"hash": "ba8deb1ba9370403ef2bacc4d61267af23b5b1f135dd14d516769b04cbf49615",
"url": "https://files.pythonhosted.org/packages/b2/6e/71c910364f535d423cb82e476b57d12c1dd75aa50f15eeb71b9b0e205b3f/types_tqdm-4.64.7.11-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "aecd96552e9c3b87e1926cb312734f135426ffc3254d8e64cfeb3ba591ef72c5",
"url": "https://files.pythonhosted.org/packages/24/c4/186ee3d88c7ec90a32a89646293cc98976cf8f75054a3642b4507b663984/types-tqdm-4.64.7.9.tar.gz"
"hash": "b7fb2daec65722cd92a4fb377b0c9575ce19d6012a1875b48bc14a44c72db546",
"url": "https://files.pythonhosted.org/packages/02/3d/e464c83e3dd7b53903943661202eb39282d75a0d7c209edd973473d9b9b7/types-tqdm-4.64.7.11.tar.gz"
}
],
"project_name": "types-tqdm",
"requires_dists": [],
"requires_python": null,
"version": "4.64.7.9"
"version": "4.64.7.11"
}
],
"platform_tag": null
}
],
"path_mappings": {},
"pex_version": "2.1.119",
"pex_version": "2.1.121",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
Expand All @@ -543,14 +504,13 @@
"filelock",
"httpx",
"packaging",
"pytest==7.2.0",
"tomli",
"pytest==7.2.1",
"tqdm",
"types-appdirs",
"types-tqdm"
],
"requires_python": [
"==3.10.*"
"==3.11.*"
],
"resolver_version": "pip-2020-resolver",
"style": "universal",
Expand Down
2 changes: 1 addition & 1 deletion pants-support/tool-locks/autoflake.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
}
],
"path_mappings": {},
"pex_version": "2.1.119",
"pex_version": "2.1.121",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
Expand Down
50 changes: 17 additions & 33 deletions pants-support/tool-locks/black.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.10.*"
// "CPython==3.11.*"
// ],
// "generated_with_requirements": [
// "black",
Expand Down Expand Up @@ -37,13 +37,13 @@
},
{
"algorithm": "sha256",
"hash": "9eedd20838bd5d75b80c9f5487dbcb06836a43833a37846cf1d8c1cc01cef59d",
"url": "https://files.pythonhosted.org/packages/79/d9/60852a6fc2f85374db20a9767dacfe50c2172eb8388f46018c8daf836995/black-22.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"hash": "229351e5a18ca30f447bf724d007f890f97e13af070bb6ad4c0a441cd7596a2f",
"url": "https://files.pythonhosted.org/packages/a6/59/e873cc6807fb62c11131e5258ca15577a3b7452abad08dc49286cf8245e8/black-22.12.0.tar.gz"
},
{
"algorithm": "sha256",
"hash": "229351e5a18ca30f447bf724d007f890f97e13af070bb6ad4c0a441cd7596a2f",
"url": "https://files.pythonhosted.org/packages/a6/59/e873cc6807fb62c11131e5258ca15577a3b7452abad08dc49286cf8245e8/black-22.12.0.tar.gz"
"hash": "d30b212bffeb1e252b31dd269dfae69dd17e06d92b87ad26e23890f3efea366f",
"url": "https://files.pythonhosted.org/packages/e9/e0/6aa02d14785c4039b38bfed6f9ee28a952b2d101c64fc97b15811fa8bd04/black-22.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
}
],
"project_name": "black",
Expand Down Expand Up @@ -127,61 +127,45 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "1a89a12377800c81983db6be069ec068eee989748799b946cce2a6e80dcc54ca",
"url": "https://files.pythonhosted.org/packages/87/69/cd019a9473bcdfb38983e2d550ccb239264fc4c2fc32c42ac1b1cc2506b6/platformdirs-2.6.0-py3-none-any.whl"
"hash": "83c8f6d04389165de7c9b6f0c682439697887bca0aa2f1c87ef1826be3584490",
"url": "https://files.pythonhosted.org/packages/c1/c7/9be9d651b93efce682b45142a6267034fc4215972780748618c02e236361/platformdirs-2.6.2-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "b46ffafa316e6b83b47489d240ce17173f123a9b9c83282141c3daf26ad9ac2e",
"url": "https://files.pythonhosted.org/packages/ec/4c/9af851448e55c57b30a13a72580306e628c3b431d97fdae9e0b8d4fa3685/platformdirs-2.6.0.tar.gz"
"hash": "e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2",
"url": "https://files.pythonhosted.org/packages/cf/4d/198b7e6c6c2b152f4f9f4cdf975d3590e33e63f1920f2d89af7f0390e6db/platformdirs-2.6.2.tar.gz"
}
],
"project_name": "platformdirs",
"requires_dists": [
"appdirs==1.4.4; extra == \"test\"",
"furo>=2022.9.29; extra == \"docs\"",
"covdefaults>=2.2.2; extra == \"test\"",
"furo>=2022.12.7; extra == \"docs\"",
"proselint>=0.13; extra == \"docs\"",
"pytest-cov>=4; extra == \"test\"",
"pytest-mock>=3.10; extra == \"test\"",
"pytest>=7.2; extra == \"test\"",
"sphinx-autodoc-typehints>=1.19.4; extra == \"docs\"",
"sphinx>=5.3; extra == \"docs\""
],
"requires_python": ">=3.7",
"version": "2.6.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc",
"url": "https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f",
"url": "https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz"
}
"sphinx-autodoc-typehints>=1.19.5; extra == \"docs\"",
"sphinx>=5.3; extra == \"docs\"",
"typing-extensions>=4.4; python_version < \"3.8\""
],
"project_name": "tomli",
"requires_dists": [],
"requires_python": ">=3.7",
"version": "2.0.1"
"version": "2.6.2"
}
],
"platform_tag": null
}
],
"path_mappings": {},
"pex_version": "2.1.119",
"pex_version": "2.1.121",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
"black",
"typing-extensions>=3.10.0.0; python_version < \"3.10\""
],
"requires_python": [
"==3.10.*"
"==3.11.*"
],
"resolver_version": "pip-2020-resolver",
"style": "universal",
Expand Down
2 changes: 1 addition & 1 deletion pants-support/tool-locks/isort.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
],
"path_mappings": {},
"pex_version": "2.1.119",
"pex_version": "2.1.121",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
Expand Down
Loading

0 comments on commit 24f3995

Please sign in to comment.