Skip to content

Commit

Permalink
Upgrade default mypy-protobuf version to 3.4 (pantsbuild#17887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Dec 29, 2022
1 parent 06a8d51 commit 76f5b1a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 79 deletions.
109 changes: 36 additions & 73 deletions src/python/pants/backend/codegen/protobuf/python/mypy_protobuf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
//
// --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---
// {
// "version": 2,
// "version": 3,
// "valid_for_interpreter_constraints": [
// "CPython<4,>=3.7"
// ],
// "generated_with_requirements": [
// "mypy-protobuf==2.10",
// "protobuf<3.21"
// ]
// "mypy-protobuf==3.4.0"
// ],
// "manylinux": "manylinux2014",
// "requirement_constraints": [],
// "only_binary": [],
// "no_binary": []
// }
// --- END PANTS LOCKFILE METADATA ---

Expand All @@ -28,129 +31,89 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "8f85a7e12908ca2f59bdacb59f81bd64fd40b946a22844a748fbaf9e1e82d3cd",
"url": "https://files.pythonhosted.org/packages/5e/d6/17ab2cde2f0fcfa05bc3f63e47efe0b282c1cffb534c27eaea737d9089ec/mypy_protobuf-2.10-py3-none-any.whl"
"hash": "da33dfde7547ff57e5ba5564126cbfa114f14413b2fa50759b1fa5de1e4ab511",
"url": "https://files.pythonhosted.org/packages/4a/47/5bad06a9546d9b8115b4f8f1e216a6033055ad06bec0bbcbfe3918a27b70/mypy_protobuf-3.4.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "1fed214e16351b09946770794a321a818abb744078b1d863a479da070028684c",
"url": "https://files.pythonhosted.org/packages/49/f7/ecb04f1f59b27a0cf213e99987b4760bb4c12a51090d2ff9dd88356b96d4/mypy-protobuf-2.10.tar.gz"
"hash": "7d75a079651b105076776a35a5405e3fa773b8a167118f1b712e443e9a6c18a2",
"url": "https://files.pythonhosted.org/packages/5d/3a/189e1a3f2d378c9e23e26fe76649ad0c5530e7f3e825a71af88e1b73a365/mypy-protobuf-3.4.0.tar.gz"
}
],
"project_name": "mypy-protobuf",
"requires_dists": [
"protobuf>=3.17.3",
"types-protobuf>=3.17.4"
"protobuf>=4.21.8",
"types-protobuf>=3.20.4"
],
"requires_python": ">=3.6",
"version": "2.10"
"requires_python": ">=3.7",
"version": "3.4.0"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "adfc6cf69c7f8c50fd24c793964eef18f0ac321315439d94945820612849c388",
"url": "https://files.pythonhosted.org/packages/ef/c8/2e7f7feaf804b7206e6cc8fa3f0f49834a78f7cb127813d2c45e42d5f7bf/protobuf-3.20.1-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "6f50601512a3d23625d8a85b1638d914a0970f17920ff39cec63aaef80a93fb7",
"url": "https://files.pythonhosted.org/packages/0b/db/2b07ad1542511b0b2b2c1796c316c5063f9724b86240f5e6accc1fde5e5f/protobuf-3.20.1-cp39-cp39-macosx_10_9_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "adc31566d027f45efe3f44eeb5b1f329da43891634d61c75a5944e9be6dd42c9",
"url": "https://files.pythonhosted.org/packages/19/96/1283259c25bc48a6df98fa096f66fc568b40137b93806ef5ff66a2d166b1/protobuf-3.20.1.tar.gz"
},
{
"algorithm": "sha256",
"hash": "af0ebadc74e281a517141daad9d0f2c5d93ab78e9d455113719a45a49da9db4e",
"url": "https://files.pythonhosted.org/packages/21/9b/258771d72fd2cf27eed3cfea1fc957a12666ccde394b294ac563fca23f2d/protobuf-3.20.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "cd68be2559e2a3b84f517fb029ee611546f7812b1fdd0aa2ecc9bc6ec0e4fdde",
"url": "https://files.pythonhosted.org/packages/4c/be/bdd22d86d24e5b8b08673d80be70d1a72c255f85152ff09b28490904092a/protobuf-3.20.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "ff8d8fa42675249bb456f5db06c00de6c2f4c27a065955917b28c4f15978b9c3",
"url": "https://files.pythonhosted.org/packages/70/75/df318e565cf126a9464b9220ef6adfecb44fb7c68df140bc5680d0ed05c3/protobuf-3.20.1-cp310-cp310-manylinux2014_aarch64.whl"
},
{
"algorithm": "sha256",
"hash": "cb29edb9eab15742d791e1025dd7b6a8f6fcb53802ad2f6e3adcb102051063ab",
"url": "https://files.pythonhosted.org/packages/7b/4b/12c4959e2065a567acb6c632cfbf97cd12e0e5a48d3d267cb034249588bb/protobuf-3.20.1-cp38-cp38-manylinux2014_aarch64.whl"
},
{
"algorithm": "sha256",
"hash": "e250a42f15bf9d5b09fe1b293bdba2801cd520a9f5ea2d7fb7536d4441811d20",
"url": "https://files.pythonhosted.org/packages/92/0e/b8a60441178c8725fb3afa648e80c312a77feab31e7831d69c672b3c18cc/protobuf-3.20.1-cp37-cp37m-macosx_10_9_x86_64.whl"
},
{
"algorithm": "sha256",
"hash": "7403941f6d0992d40161aa8bb23e12575637008a5a02283a930addc0508982f9",
"url": "https://files.pythonhosted.org/packages/98/d9/63b47f719d3cc0f29b36e870ad1d9447b8eef398c2a7b548e67298d9f652/protobuf-3.20.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl"
"hash": "b98d0148f84e3a3c569e19f52103ca1feacdac0d2df8d6533cf983d1fda28462",
"url": "https://files.pythonhosted.org/packages/d4/9f/5cb64224bdd4695f5b024a05a4bea31af1d8e3127d45a74161631fe8180e/protobuf-4.21.12-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "284f86a6207c897542d7e956eb243a36bb8f9564c1742b253462386e96c6b78f",
"url": "https://files.pythonhosted.org/packages/9f/b0/bf25cdbab8841d9111f0f13578150d232339a6483383589648592fe84f4b/protobuf-3.20.1-cp39-cp39-manylinux2014_aarch64.whl"
"hash": "299ea899484ee6f44604deb71f424234f654606b983cb496ea2a53e3c63ab791",
"url": "https://files.pythonhosted.org/packages/05/b6/6e9b82445e3561132a871e38f5601b12749beb5305eaa085d7f0c59728c9/protobuf-4.21.12-cp37-abi3-macosx_10_9_universal2.whl"
},
{
"algorithm": "sha256",
"hash": "3cc797c9d15d7689ed507b165cd05913acb992d78b379f6014e013f9ecb20996",
"url": "https://files.pythonhosted.org/packages/bd/ca/0d522203bedd17a8c53cb869e1dfd7ac9140c66b76b3cbca25bf601448b2/protobuf-3.20.1-cp310-cp310-macosx_10_9_universal2.whl"
"hash": "d1736130bce8cf131ac7957fa26880ca19227d4ad68b4888b3be0dea1f95df97",
"url": "https://files.pythonhosted.org/packages/76/74/28f42d3e6b0c7bffaa04348a631de7a22c3d81d1564753301d058c80fff5/protobuf-4.21.12-cp37-abi3-manylinux2014_aarch64.whl"
},
{
"algorithm": "sha256",
"hash": "06059eb6953ff01e56a25cd02cca1a9649a75a7e65397b5b9b4e929ed71d10cf",
"url": "https://files.pythonhosted.org/packages/bf/2a/8924d1fbdf6cec34e9e58ee84b2a8bbdb2b58730c4cfab5a29934977ea6d/protobuf-3.20.1-cp38-cp38-macosx_10_9_x86_64.whl"
"hash": "7cd532c4566d0e6feafecc1059d04c7915aec8e182d1cf7adee8b24ef1e2e6ab",
"url": "https://files.pythonhosted.org/packages/ba/dd/f8a01b146bf45ac12a829bbc599e6590aa6a6849ace7d28c42d77041d6ab/protobuf-4.21.12.tar.gz"
},
{
"algorithm": "sha256",
"hash": "69ccfdf3657ba59569c64295b7d51325f91af586f8d5793b734260dfe2e94e2c",
"url": "https://files.pythonhosted.org/packages/c1/4d/1d46234fbdff4ee05cb7ec6cb6ea9282769fa9fefd72d93de4b85fd3d8c4/protobuf-3.20.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl"
"hash": "a53fd3f03e578553623272dc46ac2f189de23862e68565e83dde203d41b76fc5",
"url": "https://files.pythonhosted.org/packages/c6/3b/33f3bd47dbfdd17ed87024b6473b26ee3a8c3303f019e91557b2654703a4/protobuf-4.21.12-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "cdee09140e1cd184ba9324ec1df410e7147242b94b5f8b0c64fc89e38a8ba531",
"url": "https://files.pythonhosted.org/packages/e5/49/dea4f62f8bc299a53732327c6e823711bce0edf3dd036f3102fe0f6a4198/protobuf-3.20.1-cp37-cp37m-manylinux2014_aarch64.whl"
"hash": "78a28c9fa223998472886c77042e9b9afb6fe4242bd2a2a5aced88e3f4422aa7",
"url": "https://files.pythonhosted.org/packages/e7/a2/3273c05fc5d959fa90de6453ebd6d45c6d4fab3ec212d631625ea5780921/protobuf-4.21.12-cp37-abi3-manylinux2014_x86_64.whl"
}
],
"project_name": "protobuf",
"requires_dists": [],
"requires_python": ">=3.7",
"version": "3.20.1"
"version": "4.21.12"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "d291388678af91bb045fafa864f142dc4ac22f5d4cdca097c7d8d8a32fa9b3ab",
"url": "https://files.pythonhosted.org/packages/00/0e/0dc8a4b0ce16bb585a8333e8b3a3d6bb15d22cc203e98ed9fa950276b8fd/types_protobuf-3.19.22-py3-none-any.whl"
"hash": "aeefcf39d637016998b3c7b699750847071b555f7c2e0c9873d42ab6103d1a39",
"url": "https://files.pythonhosted.org/packages/fa/e0/f2702df79f66d872532ce39227144264892afc75d28ce2e361145ddd79ca/types_protobuf-4.21.0.2-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "d2b26861b0cb46a3c8669b0df507b7ef72e487da66d61f9f3576aa76ce028a83",
"url": "https://files.pythonhosted.org/packages/41/1f/43011a0441926dbf0d3c6e75aecafb1c0edece9662df56c439e839426930/types-protobuf-3.19.22.tar.gz"
"hash": "7df483d34ad3fcb1fa7fff1073560d596c9ac1f419cfa851b220c9a93386c998",
"url": "https://files.pythonhosted.org/packages/76/1f/42d910af25cee072790184965704f1ea5c8e4a8210aeae9d4a29d752a3fc/types-protobuf-4.21.0.2.tar.gz"
}
],
"project_name": "types-protobuf",
"requires_dists": [],
"requires_python": null,
"version": "3.19.22"
"version": "4.21.0.2"
}
],
"platform_tag": null
}
],
"path_mappings": {},
"pex_version": "2.1.96",
"pex_version": "2.1.116",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
"mypy-protobuf==2.10",
"protobuf<3.21"
"mypy-protobuf==3.4.0"
],
"requires_python": [
"<4,>=3.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ class PythonProtobufMypyPlugin(PythonToolRequirementsBase):
options_scope = "mypy-protobuf"
help = "Configuration of the mypy-protobuf type stub generation plugin."

default_version = "mypy-protobuf==2.10"

# Since Pants doesn't plumb --constraints, use a requirement to constrain the
# `Requires-Dist: protobuf (>=3.17.3)` requirement in mypy-protobuf 2.10 which now picks up
# protobuf 4.x which is incompatible in practice.
default_extra_requirements = ["protobuf<3.21"]
default_version = "mypy-protobuf==3.4.0"

register_interpreter_constraints = True
default_interpreter_constraints = ["CPython>=3.7,<4"]
Expand Down

0 comments on commit 76f5b1a

Please sign in to comment.