Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Split on more characters when stripping the version metadata. #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 12 WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ load(
)

_version_install()

pip_import(
name = "examples_boto",
requirements = "//examples/boto:requirements.txt",
)

load(
"@examples_boto//:requirements.bzl",
_boto_install = "pip_install",
)

_boto_install()
25 changes: 25 additions & 0 deletions 25 examples/boto/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

load("@examples_boto//:requirements.bzl", "requirement")
load("//python:python.bzl", "py_test")

py_test(
name = "boto_test",
srcs = ["boto_test.py"],
deps = [requirement("boto3")],
)
26 changes: 26 additions & 0 deletions 26 examples/boto/boto_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import boto3
import unittest


class BotoTest(unittest.TestCase):

def test_version(self):
self.assertEqual(boto3.__version__, '1.4.7')


if __name__ == '__main__':
unittest.main()
1 change: 1 addition & 0 deletions 1 examples/boto/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boto3==1.4.7
2 changes: 1 addition & 1 deletion 2 rules_python/whl.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def dependencies(self):
requires = requirement.get('requires', [])
for entry in requires:
# Strip off any trailing versioning data.
parts = entry.split(' ', 1)
parts = re.split('[ ><=()]', entry)
yield parts[0]

def expand(self, directory):
Expand Down
Binary file modified BIN +8 Bytes (100%) tools/piptool.par
Binary file not shown.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.