Skip to content

Commit

Permalink
Merge pull request chipsalliance#742 from antmicro/mglb/MissingSixPac…
Browse files Browse the repository at this point in the history
…kage

Add `six` Python package as `anytree` dependency
fixes chipsalliance#739
  • Loading branch information
hzeller authored Apr 5, 2021
2 parents d5e1038 + 9053c24 commit d46e152
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
10 changes: 10 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ http_archive(
],
)

http_archive(
name = "python_six",
sha256 = "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259",
build_file = "//bazel:python_six.BUILD",
strip_prefix = "six-1.15.0",
urls = [
"https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz",
],
)

http_archive(
name = "python_anytree",
sha256 = "79ee0cc74456950003287b0b5c7b76b7d09435563a31d9e553da484325043e1f",
Expand Down
4 changes: 3 additions & 1 deletion bazel/python_anytree.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ py_library(
visibility = ["//visibility:public"],
srcs_version = "PY3",
imports = ["."],
deps = []
deps = [
"@python_six//:six",
]
)
10 changes: 10 additions & 0 deletions bazel/python_six.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
load("@rules_python//python:defs.bzl", "py_library")

licenses(["unencumbered"]) # MIT

py_library(
name = "six",
srcs = ["six.py"],
visibility = ["//visibility:public"],
srcs_version = "PY3",
)

0 comments on commit d46e152

Please sign in to comment.