Skip to content

Commit 1c35d01

Browse files
authored
Merge pull request #41 from evanj/update-dependencies
Update all dependencies to latest (pex 1.2.9)
2 parents 90bdd67 + 44d52f0 commit 1c35d01

File tree

5 files changed

+54
-23
lines changed

5 files changed

+54
-23
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
language: java
22

33
env:
4-
- BAZEL_VERSION=0.3.2
5-
- BAZEL_VERSION=0.4.0
4+
- BAZEL_VERSION=0.5.3
65

76
os:
87
- linux

BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ genrule(
22
name = "README",
33
srcs = [":docs"],
44
outs = ["README.md"],
5-
cmd = "unzip -q $< && mv pex_rules.md $@",
5+
cmd = "unzip -q $< && mv pex/pex_rules.md $@",
66
)
77

88
skylark_doc(
99
name = "docs",
1010
srcs = ["//pex:pex_rules.bzl"],
1111
visibility = ["//visibility:public"],
1212
)
13-

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pex_repositories()
77
git_repository(
88
name = "io_bazel_rules_sass",
99
remote = "https://github.com/bazelbuild/rules_sass.git",
10-
tag = "0.0.1",
10+
tag = "0.0.2",
1111
)
1212

1313
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_repositories")
@@ -17,7 +17,7 @@ sass_repositories()
1717
git_repository(
1818
name = "io_bazel_skydoc",
1919
remote = "https://github.com/bazelbuild/skydoc.git",
20-
tag = "0.0.5",
20+
tag = "0.1.3",
2121
)
2222

2323
load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories")

pex/BUILD

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ genrule(
77
"wrapper/setup.py",
88
"wrapper/pex_wrapper.py",
99
"wrapper/README",
10-
"@setuptools_src//file",
10+
"@setuptools_whl//file",
1111
"@wheel_src//file",
1212
"@pex_src//file",
1313
"@requests_src//file",
14+
"@urllib3_whl//file",
15+
"@idna_whl//file",
16+
"@certifi_whl//file",
17+
"@chardet_whl//file",
1418
],
1519
tools = ["@virtualenv//:virtualenv"],
1620
outs = ["pex_wrapper.pex"],
@@ -33,7 +37,7 @@ genrule(
3337
$$VENV/bin/pip install pex \
3438
--quiet --no-cache-dir --no-index --build $(@D)/pexbuild \
3539
--find-links $$(dirname $(location @pex_src//file)) \
36-
--find-links $$(dirname $(location @setuptools_src//file))
40+
--find-links $$(dirname $(location @setuptools_whl//file))
3741
3842
# Work around setuptools insistance on writing to the source directory,
3943
# which is discouraged by Bazel (and annoying)
@@ -43,8 +47,12 @@ genrule(
4347
$$VENV/bin/pex $(@D)/.pex_wrapper \
4448
--disable-cache --no-index -m pex_wrapper -o $@ \
4549
--find-links $$(dirname $(location @pex_src//file)) \
46-
--find-links $$(dirname $(location @setuptools_src//file)) \
50+
--find-links $$(dirname $(location @setuptools_whl//file)) \
4751
--find-links $$(dirname $(location @requests_src//file)) \
52+
--find-links $$(dirname $(location @idna_whl//file)) \
53+
--find-links $$(dirname $(location @urllib3_whl//file)) \
54+
--find-links $$(dirname $(location @certifi_whl//file)) \
55+
--find-links $$(dirname $(location @chardet_whl//file)) \
4856
--find-links $$(dirname $(location @wheel_src//file))
4957
""",
5058
visibility = ["//visibility:public"],

pex/pex_rules.bzl

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ def pex_pytest(name, srcs, deps=[], eggs=[], data=[],
490490
eggs = eggs + [
491491
"@pytest_whl//file",
492492
"@py_whl//file",
493+
"@setuptools_whl//file",
493494
],
494495
entrypoint = "pytest",
495496
testonly = True,
@@ -513,14 +514,14 @@ def pex_repositories():
513514
"""Rules to be invoked from WORKSPACE for remote dependencies."""
514515
native.http_file(
515516
name = 'pytest_whl',
516-
url = 'https://pypi.python.org/packages/c4/bf/80d1cd053b1c86f6ecb23300fba3a7c572419b5edc155da0f3f104d42775/pytest-3.0.2-py2.py3-none-any.whl',
517-
sha256 = '4b0872d00159dd8d7a27c4a45a2be77aac8a6e70c3af9a7c76c040c3e3715b9d'
517+
url = 'https://pypi.python.org/packages/e0/1e/d52c6a3a143935410ee33320341ea7bbb770ca8fe89c3d51e18254e0a2ba/pytest-3.2.1-py2.py3-none-any.whl',
518+
sha256 = '82c1e44a964ec5922c7c3891787df31c8c4f18b6c97a722df56b6cf20bb38c8a'
518519
)
519520

520521
native.http_file(
521522
name = 'py_whl',
522-
url = 'https://pypi.python.org/packages/19/f2/4b71181a49a4673a12c8f5075b8744c5feb0ed9eba352dd22512d2c04d47/py-1.4.31-py2.py3-none-any.whl',
523-
sha256 = '4a3e4f3000c123835ac39cab5ccc510642153bc47bc1f13e2bbb53039540ae69'
523+
url = 'https://pypi.python.org/packages/53/67/9620edf7803ab867b175e4fd23c7b8bd8eba11cb761514dcd2e726ef07da/py-1.4.34-py2.py3-none-any.whl',
524+
sha256 = '2ccb79b01769d99115aa600d7eed99f524bf752bba8f041dc1c184853514655a'
524525
)
525526

526527
native.http_file(
@@ -530,28 +531,52 @@ def pex_repositories():
530531
)
531532

532533
native.http_file(
533-
name = "setuptools_src",
534-
url = "https://pypi.python.org/packages/d3/16/21cf5dc6974280197e42d57bf7d372380562ec69aef9bb796b5e2dbbed6e/setuptools-20.10.1.tar.gz",
535-
sha256 = "3e59c885f09ed0d631816468e431b347b5103339e77a21cbf56df6283319b5dd",
534+
name = "setuptools_whl",
535+
url = "https://pypi.python.org/packages/e5/53/92a8ac9d252ec170d9197dcf988f07e02305a06078d7e83a41ba4e3ed65b/setuptools-33.1.1-py2.py3-none-any.whl",
536+
sha256 = "4ed8f634b11fbba8c0ba9db01a8d24ad464f97a615889e9780fc74ddec956711",
536537
)
537538

538539
native.http_file(
539540
name = "pex_src",
540-
url = "https://pypi.python.org/packages/6d/b9/aacedca314f7061f84c021c9eaac9ceac9c57f277e4e9bbb6d998facec8d/pex-1.1.14.tar.gz",
541-
sha256 = "2d0f5ec39d61c0ef0f806247d7e2702e5354583df7f232db5d9a3b287173e857",
541+
url = "https://pypi.python.org/packages/3e/e8/d306b2d82487113ad188788a61895e7d474fa25823c23e19bb65f904cf30/pex-1.2.9.tar.gz",
542+
sha256 = "26b63958d071f6a887b4b9d6230c1c1a1dc721572f5a0e48fd0eac71b0e663a9",
542543
)
543544

544545
native.http_file(
545546
name = "requests_src",
546-
url = "https://pypi.python.org/packages/2e/ad/e627446492cc374c284e82381215dcd9a0a87c4f6e90e9789afefe6da0ad/requests-2.11.1.tar.gz",
547-
sha256 = "5acf980358283faba0b897c73959cecf8b841205bb4b2ad3ef545f46eae1a133",
547+
url = "https://pypi.python.org/packages/b0/e1/eab4fc3752e3d240468a8c0b284607899d2fbfb236a56b7377a329aa8d09/requests-2.18.4.tar.gz",
548+
sha256 = "9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e",
549+
)
550+
551+
native.http_file(
552+
name = "urllib3_whl",
553+
url = "https://pypi.python.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl",
554+
sha256 = "06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",
555+
)
556+
557+
native.http_file(
558+
name = "idna_whl",
559+
url = "https://pypi.python.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl",
560+
sha256 = "8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4",
561+
)
562+
563+
native.http_file(
564+
name = "certifi_whl",
565+
url = "https://pypi.python.org/packages/40/66/06130724e8205fc8c105db7edb92871c7fff7d31324d7f4405c762624a43/certifi-2017.7.27.1-py2.py3-none-any.whl",
566+
sha256 = "54a07c09c586b0e4c619f02a5e94e36619da8e2b053e20f594348c0611803704",
567+
)
568+
569+
native.http_file(
570+
name = "chardet_whl",
571+
url = "https://pypi.python.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl",
572+
sha256 = "fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691",
548573
)
549574

550575
native.new_http_archive(
551576
name = "virtualenv",
552-
url = "https://pypi.python.org/packages/5c/79/5dae7494b9f5ed061cff9a8ab8d6e1f02db352f3facf907d9eb614fb80e9/virtualenv-15.0.2.tar.gz",
553-
sha256 = "fab40f32d9ad298fba04a260f3073505a16d52539a84843cf8c8369d4fd17167",
554-
strip_prefix = "virtualenv-15.0.2",
577+
url = "https://pypi.python.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz",
578+
sha256 = "02f8102c2436bb03b3ee6dede1919d1dac8a427541652e5ec95171ec8adbc93a",
579+
strip_prefix = "virtualenv-15.1.0",
555580
build_file_content = "\n".join([
556581
"py_binary(",
557582
" name = 'virtualenv',",

0 commit comments

Comments
 (0)