github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/WORKSPACE (about) 1 git_repository( 2 name = "io_bazel_rules_go", 3 commit = "ee1fef7ec1379fcf36c002fd3ac0d00d940b147e", 4 remote = "https://github.com/bazelbuild/rules_go.git", 5 ) 6 7 load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") 8 9 go_rules_dependencies() 10 go_register_toolchains() 11 12 http_archive( 13 name = "io_bazel_rules_docker", 14 sha256 = "076a8204c93071a130952c1ba4398d4085f60289bc9a12b530078d100608b1eb", 15 strip_prefix = "rules_docker-cdd259b3ba67fd4ef814c88070a2ebc7bec28dc5", 16 urls = ["https://github.com/bazelbuild/rules_docker/archive/cdd259b3ba67fd4ef814c88070a2ebc7bec28dc5.tar.gz"], 17 ) 18 19 load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull") 20 21 docker_repositories() 22 23 docker_pull( 24 name = "distroless-base", 25 digest = "sha256:d19b95495f226aa64cd63a95863aca4da123bde22410a273e68e091113222e4f", # latest 26 registry = "gcr.io", 27 repository = "distroless/base", 28 ) 29 30 git_repository( 31 name = "org_dropbox_rules_node", 32 remote = "https://github.com/dropbox/rules_node.git", 33 commit = "4fe6494f3f8d1a272d47d32ecc66698f6c43ed09", 34 ) 35 36 load("@org_dropbox_rules_node//node:defs.bzl", "node_repositories") 37 38 node_repositories() 39 40 load(":test_infra.bzl", "http_archive_with_pkg_path") 41 42 http_archive_with_pkg_path( 43 name = "ruamel_yaml", 44 build_file_content = """ 45 py_library( 46 name = "ruamel.yaml", 47 srcs = glob(["*.py"]), 48 visibility = ["//visibility:public"], 49 ) 50 """, 51 pkg_path = "ruamel/yaml", 52 sha256 = "350496f6fdd8c2bb17a0fa3fd2ec98431280cf12d72dae498b19ac0119c2bbad", 53 strip_prefix = "ruamel.yaml-0.15.9", 54 url = "https://pypi.python.org/packages/83/90/2eecde4bbd6a67805080091e83a29100c2f7d2afcaf926d75da5839f9283/ruamel.yaml-0.15.9.tar.gz", 55 ) 56 57 # http_archives can be updated to newer version by doing the following: 58 # 1) replace the source url with the new source url. 59 # -to find the newest version of a python module, search https://pypi.python.org/ for the package. Use the target url of the download link found at the bottom of the page. 60 # 2) replace the sha256 value with the sha256 sum of the updated package. 61 # -pypi uses md5 sums not sha256 so run `md5sum xxxx.tar.gz` on the downloaded package and validate that it matches the md5sum on pypi 62 # -once the package has been validated, determine the corresponding sha256 by running `sha256sum xxxx.tar.gz`. 63 # 3) ensure that the strip_prefix still prefixes the package directory contents to the level of the src code. 64 65 new_http_archive( 66 name = "requests", 67 build_file_content = """ 68 py_library( 69 name = "requests", 70 srcs = glob(["**/*.py"]), 71 visibility = ["//visibility:public"], 72 ) 73 """, 74 sha256 = "5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8", 75 strip_prefix = "requests-2.13.0/requests", 76 urls = ["https://pypi.python.org/packages/16/09/37b69de7c924d318e51ece1c4ceb679bf93be9d05973bb30c35babd596e2/requests-2.13.0.tar.gz"], 77 ) 78 79 new_http_archive( 80 name = "yaml", 81 build_file_content = """ 82 py_library( 83 name = "yaml", 84 srcs = glob(["*.py"]), 85 visibility = ["//visibility:public"], 86 ) 87 """, 88 sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab", 89 strip_prefix = "PyYAML-3.12/lib/yaml", 90 urls = ["https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz"], 91 ) 92 93 new_http_archive( 94 name = "markupsafe", 95 build_file_content = """ 96 py_library( 97 name = "markupsafe", 98 srcs = glob(["*.py"]), 99 visibility = ["//visibility:public"], 100 ) 101 """, 102 sha256 = "a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665", 103 strip_prefix = "MarkupSafe-1.0/markupsafe", 104 urls = ["https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz"], 105 ) 106 107 new_http_archive( 108 name = "jinja2", 109 build_file_content = """ 110 py_library( 111 name = "jinja2", 112 srcs = glob(["*.py"]), 113 deps = [ 114 "@markupsafe//:markupsafe", 115 ], 116 visibility = ["//visibility:public"], 117 ) 118 """, 119 sha256 = "702a24d992f856fa8d5a7a36db6128198d0c21e1da34448ca236c42e92384825", 120 strip_prefix = "Jinja2-2.9.5/jinja2", 121 urls = ["https://pypi.python.org/packages/71/59/d7423bd5e7ddaf3a1ce299ab4490e9044e8dfd195420fc83a24de9e60726/Jinja2-2.9.5.tar.gz"], 122 ) 123 124 http_file( 125 name = "jq_linux", 126 executable = 1, 127 sha256 = "c6b3a7d7d3e7b70c6f51b706a3b90bd01833846c54d32ca32f0027f00226ff6d", 128 urls = ["https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64"], 129 ) 130 131 http_file( 132 name = "jq_osx", 133 executable = 1, 134 sha256 = "386e92c982a56fe4851468d7a931dfca29560cee306a0e66c6a1bd4065d3dac5", 135 urls = ["https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx-amd64"], 136 ) 137 138 new_http_archive( 139 name = "astroid_lib", 140 build_file_content = """ 141 py_library( 142 name = "astroid_lib", 143 srcs = glob(["**/*.py"]), 144 deps = [ 145 "@six_lib//:six", 146 "@wrapt//:wrapt", 147 "@enum34//:enum34", 148 "@lazy_object_proxy//:lazy_object_proxy", 149 "@singledispatch_lib//:singledispatch_lib", 150 "@backports//:backports", 151 ], 152 visibility = ["//visibility:public"], 153 imports = ["astroid"], 154 ) 155 """, 156 sha256 = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35", 157 strip_prefix = "astroid-1.5.3", 158 urls = ["https://pypi.python.org/packages/d7/b7/112288f75293d6f12b1e41bac1e822fd0f29b0f88e2c4378cdd295b9d838/astroid-1.5.3.tar.gz"], 159 ) 160 161 new_http_archive( 162 name = "isort", 163 build_file_content = """ 164 py_library( 165 name = "isort", 166 srcs = glob(["**/*.py"]), 167 visibility = ["//visibility:public"], 168 ) 169 """, 170 sha256 = "79f46172d3a4e2e53e7016e663cc7a8b538bec525c36675fcfd2767df30b3983", 171 strip_prefix = "isort-4.2.15/isort", 172 urls = ["https://pypi.python.org/packages/4d/d5/7c8657126a43bcd3b0173e880407f48be4ac91b4957b51303eab744824cf/isort-4.2.15.tar.gz"], 173 ) 174 175 new_http_archive( 176 name = "lazy_object_proxy", 177 build_file_content = """ 178 py_library( 179 name = "lazy_object_proxy", 180 srcs = glob(["**/*.py"]), 181 visibility = ["//visibility:public"], 182 ) 183 """, 184 sha256 = "eb91be369f945f10d3a49f5f9be8b3d0b93a4c2be8f8a5b83b0571b8123e0a7a", 185 strip_prefix = "lazy-object-proxy-1.3.1/src/lazy_object_proxy", 186 urls = ["https://pypi.python.org/packages/55/08/23c0753599bdec1aec273e322f277c4e875150325f565017f6280549f554/lazy-object-proxy-1.3.1.tar.gz"], 187 ) 188 189 new_http_archive( 190 name = "mccabe", 191 build_file_content = """ 192 py_library( 193 name = "mccabe", 194 srcs = glob(["**/*.py"]), 195 visibility = ["//visibility:public"], 196 ) 197 """, 198 sha256 = "dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f", 199 strip_prefix = "mccabe-0.6.1", 200 urls = ["https://pypi.python.org/packages/06/18/fa675aa501e11d6d6ca0ae73a101b2f3571a565e0f7d38e062eec18a91ee/mccabe-0.6.1.tar.gz"], 201 ) 202 203 new_http_archive( 204 name = "pylint", 205 build_file_content = """ 206 py_library( 207 name = "pylint", 208 srcs = glob(["**/*.py"]), 209 deps = [ 210 "@astroid_lib//:astroid_lib", 211 "@six_lib//:six", 212 "@isort//:isort", 213 "@mccabe//:mccabe", 214 "@configparser_lib//:configparser_lib", 215 ], 216 visibility = ["//visibility:public"], 217 ) 218 """, 219 sha256 = "8b4a7ab6cf5062e40e2763c0b4a596020abada1d7304e369578b522e46a6264a", 220 strip_prefix = "pylint-1.7.1/pylint", 221 urls = ["https://pypi.python.org/packages/cc/8c/d1da590769213fefedea4b345e90fce80f749c61ab9f9187b3fe19397b4b/pylint-1.7.1.tar.gz"], 222 ) 223 224 new_http_archive( 225 name = "six_lib", 226 build_file_content = """ 227 py_library( 228 name = "six", 229 srcs = glob(["**/*.py"]), 230 visibility = ["//visibility:public"], 231 ) 232 """, 233 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", 234 strip_prefix = "six-1.10.0", 235 urls = ["https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"], 236 ) 237 238 new_http_archive( 239 name = "wrapt", 240 build_file_content = """ 241 py_library( 242 name = "wrapt", 243 srcs = glob(["**/*.py"]), 244 visibility = ["//visibility:public"], 245 ) 246 """, 247 sha256 = "42160c91b77f1bc64a955890038e02f2f72986c01d462d53cb6cb039b995cdd9", 248 strip_prefix = "wrapt-1.10.10/src/wrapt", 249 urls = ["https://pypi.python.org/packages/a3/bb/525e9de0a220060394f4aa34fdf6200853581803d92714ae41fc3556e7d7/wrapt-1.10.10.tar.gz"], 250 ) 251 252 new_http_archive( 253 name = "enum34", 254 build_file_content = """ 255 py_library( 256 name = "enum34", 257 srcs = glob(["**/*.py"]), 258 visibility = ["//visibility:public"], 259 ) 260 """, 261 sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1", 262 strip_prefix = "enum34-1.1.6", 263 urls = ["https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz"], 264 ) 265 266 new_http_archive( 267 name = "singledispatch_lib", 268 build_file_content = """ 269 py_library( 270 name = "singledispatch_lib", 271 srcs = glob(["**/*.py"]), 272 deps = [ 273 "@six_lib//:six", 274 ], 275 visibility = ["//visibility:public"], 276 ) 277 """, 278 sha256 = "5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c", 279 strip_prefix = "singledispatch-3.4.0.3", 280 urls = ["https://pypi.python.org/packages/d9/e9/513ad8dc17210db12cb14f2d4d190d618fb87dd38814203ea71c87ba5b68/singledispatch-3.4.0.3.tar.gz"], 281 ) 282 283 new_http_archive( 284 name = "backports", 285 build_file_content = """ 286 py_library( 287 name = "backports", 288 srcs = glob(["**/*.py"]), 289 visibility = ["//visibility:public"], 290 ) 291 """, 292 sha256 = "31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f", 293 strip_prefix = "backports.functools_lru_cache-1.4/backports", 294 urls = ["https://pypi.python.org/packages/4e/91/0e93d9455254b7b630fb3ebe30cc57cab518660c5fad6a08aac7908a4431/backports.functools_lru_cache-1.4.tar.gz"], 295 ) 296 297 new_http_archive( 298 name = "configparser_lib", 299 build_file_content = """ 300 py_library( 301 name = "configparser_lib", 302 srcs = glob(["**/*.py"]), 303 visibility = ["//visibility:public"], 304 imports = ["backports"], 305 ) 306 """, 307 sha256 = "5308b47021bc2340965c371f0f058cc6971a04502638d4244225c49d80db273a", 308 strip_prefix = "configparser-3.5.0/src", 309 urls = ["https://pypi.python.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz"], 310 ) 311 312 # find the most recent version of influxdb at https://pypi.python.org/pypi/influxdb/ 313 new_http_archive( 314 name = "influxdb", 315 build_file_content = """ 316 py_library( 317 name = "influxdb", 318 srcs = glob(["**/*.py"]), 319 visibility = ["//visibility:public"], 320 ) 321 """, 322 sha256 = "e3790474fa6d3e39043471a2a79b3309e9a47c63c0803a8810241bc8ce056b18", 323 strip_prefix = "influxdb-4.1.1/influxdb", 324 urls = ["https://pypi.python.org/packages/e1/af/94faea244de2a73b7a0087637660db2d638edaae58f22d3f0d0d219ad8b7/influxdb-4.1.1.tar.gz"], 325 ) 326 327 # find the most recent version at https://pypi.python.org/pypi/pytz 328 new_http_archive( 329 name = "pytz", 330 build_file_content = """ 331 py_library( 332 name = "pytz", 333 srcs = glob(["**/*.py"]), 334 visibility = ["//visibility:public"], 335 ) 336 """, 337 sha256 = "f5c056e8f62d45ba8215e5cb8f50dfccb198b4b9fbea8500674f3443e4689589", 338 strip_prefix = "pytz-2017.2/pytz", 339 urls = ["https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-2017.2.zip"], 340 ) 341 342 # find the most recent version at https://pypi.python.org/pypi/python-dateutil 343 new_http_archive( 344 name = "dateutil", 345 build_file_content = """ 346 py_library( 347 name = "dateutil", 348 srcs = glob(["**/*.py"]), 349 deps = [ 350 "@six_lib//:six", 351 ], 352 visibility = ["//visibility:public"], 353 ) 354 """, 355 sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca", 356 strip_prefix = "python-dateutil-2.6.1/dateutil", 357 urls = ["https://pypi.python.org/packages/54/bb/f1db86504f7a49e1d9b9301531181b00a1c7325dc85a29160ee3eaa73a54/python-dateutil-2.6.1.tar.gz"], 358 ) 359 360 # TODO(fejta): get this to work 361 git_repository( 362 name = "io_bazel_rules_appengine", 363 commit = "14d860985c2a764fdb6a6072d5450d8360c4ce5b", 364 remote = "https://github.com/bazelbuild/rules_appengine.git", 365 #tag = "0.0.5", # Latest at https://github.com/bazelbuild/rules_appengine/releases. 366 ) 367 368 load("@io_bazel_rules_appengine//appengine:py_appengine.bzl", "py_appengine_repositories") 369 370 py_appengine_repositories()