File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,3 +107,15 @@ load(
107107)
108108
109109_version_install ()
110+
111+ pip_import (
112+ name = "examples_boto" ,
113+ requirements = "//examples/boto:requirements.txt" ,
114+ )
115+
116+ load (
117+ "@examples_boto//:requirements.bzl" ,
118+ _boto_install = "pip_install" ,
119+ )
120+
121+ _boto_install ()
Original file line number Diff line number Diff line change 1+ # Copyright 2017 The Bazel Authors. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ package (default_visibility = ["//visibility:public" ])
15+
16+ licenses (["notice" ]) # Apache 2.0
17+
18+ load ("@examples_boto//:requirements.bzl" , "requirement" )
19+ load ("//python:python.bzl" , "py_test" )
20+
21+ py_test (
22+ name = "boto_test" ,
23+ srcs = ["boto_test.py" ],
24+ deps = [requirement ("boto3" )],
25+ )
Original file line number Diff line number Diff line change 1+ # Copyright 2017 The Bazel Authors. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ import boto3
16+ import unittest
17+
18+
19+ class BotoTest (unittest .TestCase ):
20+
21+ def test_version (self ):
22+ self .assertEqual (boto3 .__version__ , '1.4.7' )
23+
24+
25+ if __name__ == '__main__' :
26+ unittest .main ()
Original file line number Diff line number Diff line change 1+ boto3 == 1.4.7
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def dependencies(self):
7979 requires = requirement .get ('requires' , [])
8080 for entry in requires :
8181 # Strip off any trailing versioning data.
82- parts = entry .split (' ' , 1 )
82+ parts = re .split ('[ ><=()] ' , entry )
8383 yield parts [0 ]
8484
8585 def expand (self , directory ):
You can’t perform that action at this time.
0 commit comments