Skip to content

Commit 6f9f0d2

Browse files
committed
Make it work with grpc and gax
1 parent 1c1b10b commit 6f9f0d2

25 files changed

+32
-5
lines changed

Manifest.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.md
2+
include cloudfn/docker/*
3+
include cloudfn/hooks/*
4+
include cloudfn/template/*

cloudfn/cli.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
def repo_root():
21-
return os.path.dirname(__file__) + '/../'
21+
return os.path.dirname(__file__) + '/'
2222

2323

2424
def hooks_path():
@@ -52,6 +52,8 @@ def build_for_production(file_name='main.py'):
5252

5353

5454
def build_for_local(file_name='main.py'):
55+
print hooks_path()
56+
print repo_root()
5557
base = [
5658
'pyinstaller ', file_name, '-y', '-n', output_name(),
5759
'--clean', '--onedir',
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from PyInstaller.utils.hooks import copy_metadata
2+
3+
datas = copy_metadata('grpcio')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-bigtable')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-datastore')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-dns')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-error-reporting')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-language')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-logging')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-monitoring')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-pubsub')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-resource-manager')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-runtimeconfig')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-spanner')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-speech')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-storage')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-translate')
4+
datas += copy_metadata('google-cloud-core')
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from PyInstaller.utils.hooks import copy_metadata
22

33
datas = copy_metadata('google-cloud-vision')
4+
datas += copy_metadata('google-cloud-core')

cloudfn/hooks/hook-google.gax.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from PyInstaller.utils.hooks import copy_metadata
2+
3+
datas = copy_metadata('google-gax')

cloudfn/hooks/hook-grpc.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from PyInstaller.utils.hooks import copy_metadata
2+
3+
datas = copy_metadata('grpcio')
File renamed without changes.

hooks/hook-google.cloud.bigquery.py

-3
This file was deleted.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='pycloudfn',
5-
version='0.1.13',
5+
version='0.1.24',
66
description='GCP Cloud functions in python',
77
url='https://github.com/MartinSahlen/cloud-functions-python',
88
author='Martin Sahlen',

0 commit comments

Comments
 (0)