update rules_python

This commit is contained in:
Damien Elmes 2021-10-15 15:07:31 +10:00
parent 63fe9097fa
commit 819ec40a3e
3 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,7 @@
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("@rules_python//python:defs.bzl", "py_library")
load("@py_deps//:requirements.bzl", "requirement")
load("@rules_python//experimental/python:wheel.bzl", "py_package", "py_wheel")
load("@rules_python//python:packaging.bzl", "py_package", "py_wheel")
load("//:defs.bzl", "anki_version")
load("//pylib:orjson.bzl", "orjson_if_available")
load("//pylib:protobuf.bzl", "py_proto")
@ -77,7 +77,6 @@ py_wheel(
"//platforms:linux_arm64": "manylinux_2_28_aarch64",
}),
python_tag = "cp39",
python_version = ">=3.9",
requires = [
"beautifulsoup4",
"requests[socks]",

View File

@ -1,7 +1,7 @@
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("@rules_python//python:defs.bzl", "py_library")
load("@py_deps//:requirements.bzl", "requirement")
load("@rules_python//experimental/python:wheel.bzl", "py_package", "py_wheel")
load("@rules_python//python:packaging.bzl", "py_package", "py_wheel")
load("//:defs.bzl", "anki_version")
genrule(
@ -120,7 +120,6 @@ py_wheel(
homepage = "https://apps.ankiweb.net",
license = "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
python_tag = "py3",
python_version = ">=3.9",
requires = [
"beautifulsoup4",
"requests",

View File

@ -52,11 +52,11 @@ def register_repos():
maybe(
http_archive,
name = "rules_python",
strip_prefix = "rules_python-anki-2020-11-04",
sha256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea",
urls = [
"https://github.com/ankitects/rules_python/archive/anki-2020-11-04.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz",
"https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz",
],
sha256 = "00e444dc3872a87838c2cb0cf50a15d92ca669385b72998f796d2fd6814356a3",
)
# native.local_repository(