This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Python DIREGAPIC initial commit #14
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ switched_rules_by_language( | |
java = True, | ||
php = True, | ||
nodejs = True, | ||
python = True, | ||
) | ||
|
||
# Protobuf depends on very old version of bazel_skylib (forward compatible with the new one). | ||
|
@@ -35,8 +36,8 @@ http_archive( | |
# version of the library will be selected as a transitive dependency of gRPC. | ||
http_archive( | ||
name = "rules_python", | ||
strip_prefix = "rules_python-748aa53d7701e71101dfd15d800e100f6ff8e5d1", | ||
url = "https://github.com/bazelbuild/rules_python/archive/748aa53d7701e71101dfd15d800e100f6ff8e5d1.zip", | ||
strip_prefix = "rules_python-0.1.0", | ||
url = "https://github.com/bazelbuild/rules_python/archive/0.1.0.tar.gz", | ||
) | ||
|
||
http_archive( | ||
|
@@ -70,8 +71,8 @@ rules_proto_toolchains() | |
# section | ||
http_archive( | ||
name = "com_google_api_codegen", | ||
strip_prefix = "gapic-generator-2.9.0", | ||
urls = ["https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip"], | ||
strip_prefix = "gapic-generator-2.10.1", | ||
urls = ["https://github.com/googleapis/gapic-generator/archive/v2.10.1.zip"], | ||
) | ||
|
||
# rules_go (support Golang under bazel) | ||
|
@@ -235,8 +236,8 @@ pip_repositories() | |
# Change upstream repository once PR is merged | ||
http_archive( | ||
name = "gapic_generator_python", | ||
strip_prefix = "gapic-generator-python-0.35.9", | ||
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.35.9.zip"], | ||
strip_prefix = "gapic-generator-python-56c31de4a9f661e3d69b52e19c9a28dddfe9d7dc", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This SHA points to googleapis/gapic-generator-python#716, which has been committed. Let's point to the latest release, 0.39.1. |
||
urls = ["https://github.com/googleapis/gapic-generator-python/archive/56c31de4a9f661e3d69b52e19c9a28dddfe9d7dc.zip"], | ||
) | ||
|
||
load( | ||
|
@@ -249,10 +250,6 @@ gapic_generator_python() | |
|
||
gapic_generator_register_toolchains() | ||
|
||
load("@gapic_generator_python_pip_deps//:requirements.bzl", "pip_install") | ||
|
||
pip_install() | ||
|
||
############################################################################## | ||
# Go | ||
############################################################################## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the "common code" this comment refers to is only PHP? I do see a reference to
py_gapic_repositories
in the rules below. Will we move that to the µgenerators?