Skip to content

Commit c58ba0e

Browse files
author
Ian O Connell
committed
Revert "Updated pip, pkginfo, setuptools, and wheel. (bazel-contrib#661)"
This reverts commit fe30f15.
1 parent 55e5625 commit c58ba0e

File tree

4 files changed

+8
-39
lines changed

4 files changed

+8
-39
lines changed

examples/pip_repository_annotations/WORKSPACE

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ http_archive(
1616
],
1717
)
1818

19-
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
20-
21-
python_register_toolchains(
22-
name = "python39",
23-
python_version = "3.9",
24-
)
25-
26-
load("@python39//:defs.bzl", "interpreter")
2719
load("@rules_python//python:pip.bzl", "package_annotation", "pip_install", "pip_parse")
2820

2921
# Here we can see an example of annotations being applied to an arbitrary
@@ -50,7 +42,6 @@ write_file(
5042
pip_parse(
5143
name = "pip_parsed",
5244
annotations = ANNOTATIONS,
53-
python_interpreter_target = interpreter,
5445
requirements_lock = "//:requirements.txt",
5546
)
5647

@@ -62,6 +53,5 @@ install_deps()
6253
pip_install(
6354
name = "pip_installed",
6455
annotations = ANNOTATIONS,
65-
python_interpreter_target = interpreter,
6656
requirements = "//:requirements.txt",
6757
)

examples/relative_requirements/WORKSPACE

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,8 @@ local_repository(
55
path = "../..",
66
)
77

8-
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
9-
10-
python_register_toolchains(
11-
name = "python39",
12-
python_version = "3.9",
13-
)
14-
15-
load("@python39//:defs.bzl", "interpreter")
168
load("@rules_python//python:pip.bzl", "pip_install")
179

1810
pip_install(
19-
python_interpreter_target = interpreter,
2011
requirements = "//:requirements.txt",
2112
)

python/pip_install/repositories.bzl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ _RULE_DEPS = [
1919
),
2020
(
2121
"pypi__pip",
22-
"https://files.pythonhosted.org/packages/4d/16/0a14ca596f30316efd412a60bdfac02a7259bf8673d4d917dc60b9a21812/pip-22.0.4-py3-none-any.whl",
23-
"c6aca0f2f081363f689f041d90dab2a07a9a07fb840284db2218117a52da800b",
22+
"https://files.pythonhosted.org/packages/47/ca/f0d790b6e18b3a6f3bd5e80c2ee4edbb5807286c21cdd0862ca933f751dd/pip-21.1.3-py3-none-any.whl",
23+
"78cb760711fedc073246543801c84dc5377affead832e103ad0211f99303a204",
2424
),
2525
(
2626
"pypi__pip_tools",
@@ -29,18 +29,18 @@ _RULE_DEPS = [
2929
),
3030
(
3131
"pypi__pkginfo",
32-
"https://files.pythonhosted.org/packages/cd/00/49f59cdd2c6a52e6665fda4de671dac5614366dc827e050c55428241b929/pkginfo-1.8.2-py2.py3-none-any.whl",
33-
"c24c487c6a7f72c66e816ab1796b96ac6c3d14d49338293d2141664330b55ffc",
32+
"https://files.pythonhosted.org/packages/77/83/1ef010f7c4563e218854809c0dff9548de65ebec930921dedf6ee5981f27/pkginfo-1.7.1-py2.py3-none-any.whl",
33+
"37ecd857b47e5f55949c41ed061eb51a0bee97a87c969219d144c0e023982779",
3434
),
3535
(
3636
"pypi__setuptools",
37-
"https://files.pythonhosted.org/packages/7c/5b/3d92b9f0f7ca1645cba48c080b54fe7d8b1033a4e5720091d1631c4266db/setuptools-60.10.0-py3-none-any.whl",
38-
"782ef48d58982ddb49920c11a0c5c9c0b02e7d7d1c2ad0aa44e1a1e133051c96",
37+
"https://files.pythonhosted.org/packages/a2/e1/902fbc2f61ad6243cd3d57ffa195a9eb123021ec912ec5d811acf54a39f8/setuptools-57.1.0-py3-none-any.whl",
38+
"ddae4c1b9220daf1e32ba9d4e3714df6019c5b583755559be84ff8199f7e1fe3",
3939
),
4040
(
4141
"pypi__wheel",
42-
"https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl",
43-
"4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a",
42+
"https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl",
43+
"78b5b185f0e5763c26ca1e324373aadd49182ca90e825f7853f4b2509215dc0e",
4444
),
4545
]
4646

tests/pip_repository_entry_points/WORKSPACE

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,11 @@ local_repository(
55
path = "../..",
66
)
77

8-
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
9-
10-
# This toolchain is explicitly 3.10 while `rules_python` is 3.9 to act as
11-
# a regression test, ensuring 3.10 is functional
12-
python_register_toolchains(
13-
name = "python310",
14-
python_version = "3.10",
15-
)
16-
17-
load("@python310//:defs.bzl", "interpreter")
188
load("@rules_python//python:pip.bzl", "pip_install", "pip_parse")
199

2010
# For a more thorough example of `pip_parse`. See `@rules_python//examples/pip_parse`
2111
pip_parse(
2212
name = "pip_parsed",
23-
python_interpreter_target = interpreter,
2413
requirements_lock = "//:requirements.txt",
2514
)
2615

@@ -31,6 +20,5 @@ install_deps()
3120
# For a more thorough example of `pip_install`. See `@rules_python//examples/pip_install`
3221
pip_install(
3322
name = "pip_installed",
34-
python_interpreter_target = interpreter,
3523
requirements = "//:requirements.txt",
3624
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy