diff --git a/WORKSPACE b/WORKSPACE index dba443348e..eb2a05071e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -77,11 +77,16 @@ system_python( load("@system_python//:register.bzl", "register_system_python") register_system_python() -load("@system_python//:pip.bzl", "pip_install") -pip_install( +load("@fuzzing_py_deps//:requirements.bzl", "install_deps") + +install_deps() + +load("@system_python//:pip.bzl", "pip_parse") + +pip_parse( name="pip_deps", requirements = "//python:requirements.txt", requirements_overrides = { "3.11": "//python:requirements_311.txt", }, -) +) \ No newline at end of file diff --git a/bazel/workspace_deps.bzl b/bazel/workspace_deps.bzl index f857acb22d..b9d343ab62 100644 --- a/bazel/workspace_deps.bzl +++ b/bazel/workspace_deps.bzl @@ -28,14 +28,14 @@ def upb_deps(): patches = ["@upb//bazel:protobuf.patch"], ) - rules_python_version = "0.12.0" # Latest @ August 31, 2022 + rules_python_version = "0.14.0" # Latest @ November 20, 2022 maybe( http_archive, name = "rules_python", strip_prefix = "rules_python-{}".format(rules_python_version), url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/{}.tar.gz".format(rules_python_version), - sha256 = "b593d13bb43c94ce94b483c2858e53a9b811f6f10e1e0eedc61073bd90e58d9c", + sha256 = "a868059c8c6dd6ad45a205cca04084c652cfe1852e6df2d5aca036f6e5438380", ) maybe( diff --git a/cmake/make_cmakelists.py b/cmake/make_cmakelists.py index bf124209df..adb1a0c751 100755 --- a/cmake/make_cmakelists.py +++ b/cmake/make_cmakelists.py @@ -251,6 +251,9 @@ def python_source_archive(self, **kwargs): def python_nuget_package(self, **kwargs): pass + def install_deps(self): + pass + class Converter(object): def __init__(self): diff --git a/python/dist/BUILD.bazel b/python/dist/BUILD.bazel index 8ac6479bd9..f27ccfe824 100644 --- a/python/dist/BUILD.bazel +++ b/python/dist/BUILD.bazel @@ -206,6 +206,9 @@ py_wheel( "Programming Language :: Python :: 3.10", ], distribution = "protobuf", + extra_distinfo_files = { + "//:LICENSE": "LICENSE", + }, homepage = "https://developers.google.com/protocol-buffers/", license = "3-Clause BSD License", platform = select({ @@ -256,6 +259,9 @@ py_wheel( "Programming Language :: Python :: 3.10", ], distribution = "protobuf", + extra_distinfo_files = { + "//:LICENSE": "LICENSE", + }, homepage = "https://developers.google.com/protocol-buffers/", license = "3-Clause BSD License", platform = "any", @@ -281,6 +287,9 @@ py_wheel( testonly = True, abi = "none", distribution = "protobuftests", + extra_distinfo_files = { + "//:LICENSE": "LICENSE", + }, platform = "any", python_tag = "py3", strip_path_prefixes = [