File tree Expand file tree Collapse file tree 9 files changed +8
-9
lines changed Expand file tree Collapse file tree 9 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ all_targets: &all_targets
8
8
build_targets :
9
9
- " //examples/..."
10
10
- " //experimental/..."
11
+ - " //packaging/..."
11
12
- " //python/..."
12
- - " //rules_python/..."
13
13
- " //tools/..."
14
14
test_targets :
15
15
- " ..."
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- package (default_visibility = ["//visibility:public" ])
15
14
16
15
licenses (["notice" ]) # Apache 2.0
17
16
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def pip_main(argv):
81
81
argv = ["--disable-pip-version-check" , "--cert" , cert_path ] + argv
82
82
return pip .main (argv )
83
83
84
- from rules_python .whl import Wheel
84
+ from packaging .whl import Wheel
85
85
86
86
parser = argparse .ArgumentParser (
87
87
description = 'Import Python dependencies into Bazel.' )
File renamed without changes.
Original file line number Diff line number Diff line change 17
17
18
18
from mock import patch
19
19
20
- from rules_python import whl
20
+ from packaging import whl
21
21
22
22
23
23
def TestData (name ):
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ RUN bazel help info >/dev/null 2>&1
25
25
CMD cp -r /opt/rules_python_source /opt/rules_python && \
26
26
cd /opt/rules_python && \
27
27
bazel clean && \
28
- bazel build //rules_python :piptool.par //rules_python :whltool.par \
28
+ bazel build //packaging :piptool.par //packaging :whltool.par \
29
29
# This works around a bug in git_repository to give us better debugging
30
30
# if there's an error.
31
31
# TODO(brandjon): Remove this once we're using Bazel 0.29, which
32
32
# contains the fix.
33
33
--incompatible_string_join_requires_strings=false && \
34
- cp bazel-bin/rules_python /piptool.par bazel-bin/rules_python /whltool.par /opt/rules_python_source/tools/ && \
34
+ cp bazel-bin/packaging /piptool.par bazel-bin/packaging /whltool.par /opt/rules_python_source/tools/ && \
35
35
chown --reference=/opt/rules_python_source/update_tools.sh /opt/rules_python_source/tools/piptool.par /opt/rules_python_source/tools/whltool.par
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ if [ "$#" -eq 0 ] ; then
25
25
docker build --no-cache -f tools/update_tools/Dockerfile --tag rules_python:update_tools .
26
26
docker run -v" $PWD " :/opt/rules_python_source rules_python:update_tools
27
27
elif [ " $# " -eq 1 -a " $1 " == " --nodocker" ] ; then
28
- bazel build //rules_python :piptool.par //rules_python :whltool.par
29
- cp bazel-bin/rules_python /piptool.par tools/piptool.par
30
- cp bazel-bin/rules_python /whltool.par tools/whltool.par
28
+ bazel build //packaging :piptool.par //packaging :whltool.par
29
+ cp bazel-bin/packaging /piptool.par tools/piptool.par
30
+ cp bazel-bin/packaging /whltool.par tools/whltool.par
31
31
else
32
32
usage
33
33
fi
You can’t perform that action at this time.
0 commit comments