Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Make packman always use local protos for gRPC gen #45

Merged
merged 11 commits into from Aug 2, 2016

Conversation

geigerj
Copy link
Contributor

@geigerj geigerj commented Jul 12, 2016

Previously, it always downloaded the public googleapis repo. That does
not work if an API is not on googleapis.

import_proto_path, packman_flags=[]):
arg_list = [language, api_name, '-o', output_dir]

# TODO: Thos is a workaround for a packman issue:

This comment was marked as spam.

This comment was marked as spam.

@@ -21,7 +21,7 @@ commands = flake8 --max-complexity=8 pipeline --exclude='test/output' test
[testenv:pylint-errors]
deps = pylint
-r{toxinidir}/requirements.txt
commands = pylint -f colorized -E pipeline --ignore test/output test
commands = pylint -f colorized -E pipeline

This comment was marked as spam.

@codecov-io
Copy link

codecov-io commented Jul 12, 2016

Current coverage is 69.40% (diff: 93.75%)

Merging #45 into master will increase coverage by 0.27%

@@             master        #45   diff @@
==========================================
  Files            28         28          
  Lines           881        889     +8   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            609        617     +8   
  Misses          272        272          
  Partials          0          0          

Powered by Codecov. Last update b9b2e6c...4b2cc80

imps = map(remove_google_dirs, import_proto_path)
srcs = map(remove_google_dirs, src_proto_path)

arg_list += [arg for src in srcs for arg in ('-r', src)]

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@geigerj
Copy link
Contributor Author

geigerj commented Jul 14, 2016

FYI -- I will add PRs to packman and googleapis that correspond to this one soon.

@geigerj
Copy link
Contributor Author

geigerj commented Jul 14, 2016

@@ -23,7 +23,6 @@
class PackmanTaskBase(task_base.TaskBase):
def run_packman(self, language, api_name, *additional_args):
# Fix the api_name convention (ex. logging-v2) for packman.
api_name = api_name.replace('-', '/')

This comment was marked as spam.

This comment was marked as spam.

@geigerj
Copy link
Contributor Author

geigerj commented Jul 15, 2016

@jmuk PTAL

Previously, it always downloaded the public googleapis repo. That does
not work if an API is not on googleapis.
Pre-push hook installed.

Change-Id: I0dac8fbcee79741dfa988ab9fe32de260581ed90
This allow it to be shared with the GAPIC task.

Also fix a camelCase function name.

Pre-push hook installed.

Change-Id: I1dc1a7c64ff5c2ef1e7af8a2366a04cc10ba32df
Pre-push hook installed.

Change-Id: I01518afbf9ec737952033df371c8cc2cd8812c75
Packman loses the 'grpc-' prefix when isGoogleApi is not set; see
  https://github.com/googleapis/packman/blob/59d486dcaf5242844bd2935fccffd1a465975cb9/bin/gen-api-package#L255

Also fix a mutable default parameter.

Pre-push hook installed.

Change-Id: Ic83b6eff221b21cbe063ebcaa09dda7e0cea6fb7
Pre-push hook installed.

Change-Id: I635e3570ede2ddf1acb8bd654898d09adf3d431a
Packman requires absolute paths -- relative paths do not work. See
googleapis/packman#1
Just updating baseline files
@jmuk
Copy link
Contributor

jmuk commented Aug 2, 2016

LGTM. Sorry I missed this.

@geigerj geigerj merged commit 46d50de into googleapis:master Aug 2, 2016
bjwatson pushed a commit to bjwatson/artman that referenced this pull request Aug 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants