Skip to content
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

build: add support for pip3_import from rules_python. #11108

Merged
merged 13 commits into from
May 12, 2020

Conversation

htuch
Copy link
Member

@htuch htuch commented May 7, 2020

Provide an Envoy build system styled way of loading arbitrary pip3
packages as py_{library,binary} dependencies.

Part of #11085 (to fetch
PyYAML).

Risk level: Low (build system)
Testing: Manual validation that the test utility loads PyYAML at the
correct version (different to my system version).

Signed-off-by: Harvey Tuch htuch@google.com

Provide an Envoy build system styled way of loading arbitrary pip3
packages as py_{library,binary} dependencies.

Part of envoyproxy#11085 (to fetch
PyYAML).

Risk level: Low (build system)
Testing: Manual validation that the test utility loads PyYAML at the
  correct version (different to my system version).

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch requested a review from lizan May 7, 2020 20:54
@htuch
Copy link
Member Author

htuch commented May 7, 2020

CC @adamkotwasinski

@lizan
Copy link
Member

lizan commented May 7, 2020

seems windows CI is failing? LGTM otherwise

htuch added 7 commits May 7, 2020 18:05
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
htuch pushed a commit to envoyproxy/envoy-build-tools that referenced this pull request May 11, 2020
Attempts to fix build issues in: envoyproxy/envoy#11108

Co-authored-by: William A Rowe Jr <wrowe@pivotal.io>
Co-authored-by: Sunjay Bhatia <sbhatia@pivotal.io>
Signed-off-by: William A Rowe Jr <wrowe@pivotal.io>
Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
htuch pushed a commit to envoyproxy/envoy-build-tools that referenced this pull request May 11, 2020
  [skip ci]
  Windows image: add links for expected python executable names (#51)

Attempts to fix build issues in: envoyproxy/envoy#11108

Co-authored-by: William A Rowe Jr <wrowe@pivotal.io>
Co-authored-by: Sunjay Bhatia <sbhatia@pivotal.io>
Signed-off-by: William A Rowe Jr <wrowe@pivotal.io>
Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
htuch pushed a commit to envoyproxy/envoy-build-tools that referenced this pull request May 12, 2020
Also ensures pip binary and installed bits are on the PATH

Should fix build issues in: envoyproxy/envoy#11108

Co-authored-by: Sunjay Bhatia <sbhatia@pivotal.io>
Co-authored-by: William A Rowe Jr <wrowe@pivotal.io>
Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
Signed-off-by: William A Rowe Jr <wrowe@pivotal.io>
htuch pushed a commit to envoyproxy/envoy-build-tools that referenced this pull request May 12, 2020
  [skip ci]
  Upgrade pip and install wheel (#56)

Also ensures pip binary and installed bits are on the PATH

Should fix build issues in: envoyproxy/envoy#11108

Co-authored-by: Sunjay Bhatia <sbhatia@pivotal.io>
Co-authored-by: William A Rowe Jr <wrowe@pivotal.io>
Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
Signed-off-by: William A Rowe Jr <wrowe@pivotal.io>
@htuch
Copy link
Member Author

htuch commented May 12, 2020

@lizan this is ready for LGTM/merge.

@htuch
Copy link
Member Author

htuch commented May 12, 2020

(and thanks a ton to @wrowe and @sunjayBhatia for helping update the Windows Docker base image!)

@lizan lizan merged commit 568e139 into envoyproxy:master May 12, 2020
htuch added a commit to htuch/envoy that referenced this pull request May 14, 2020
This PR replaces envoyproxy#11058, taking a slightly different approach. We
utilize field options to annotate fields that should be set for
untrusted environments with [configure_for_untrusted_downstream,
configure_for_untrusted_downstream]. Defaults are provided out-of-band,
in a manifest files in docs/edge_defaults_manifest.yaml.

Protodoc glues the manifest and options together when generating field
documentation, providing an additional notice for sensitive fields.

This PR depends on envoyproxy#11108 first merging to provide the pip3 build
infrastructure.

Risk level: Low (docs only).
Testing: Inspection of generated docs.

Signed-off-by: Harvey Tuch <htuch@google.com>
htuch added a commit that referenced this pull request May 17, 2020
This PR replaces #11058, taking a slightly different approach. We
utilize field options to annotate fields that should be set for
untrusted environments with [configure_for_untrusted_downstream,
configure_for_untrusted_downstream]. Defaults are provided out-of-band,
in a manifest files in docs/edge_defaults_manifest.yaml.

Protodoc glues the manifest and options together when generating field
documentation, providing an additional notice for sensitive fields.

This PR depends on #11108 first merging to provide the pip3 build
infrastructure.

Risk level: Low (docs only).
Testing: Inspection of generated docs.

Signed-off-by: Harvey Tuch <htuch@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants