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

On Travis, follow package dependency graph to expand package list. #2487

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions bigquery/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
1 change: 1 addition & 0 deletions bigquery/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-core >= 0.20.0
9 changes: 6 additions & 3 deletions bigquery/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-bigquery',
Expand Down
1 change: 1 addition & 0 deletions bigtable/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
2 changes: 2 additions & 0 deletions bigtable/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
google-cloud-core >= 0.20.0
grpcio >= 1.0.0, < 2.0dev
10 changes: 6 additions & 4 deletions bigtable/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
'grpcio >= 1.0.0, < 2.0dev',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-bigtable',
Expand Down
1 change: 1 addition & 0 deletions core/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
5 changes: 5 additions & 0 deletions core/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
httplib2 >= 0.9.1
googleapis-common-protos >= 1.3.4
oauth2client >= 3.0.0, < 4.0.0dev
protobuf >= 3.0.0
six
13 changes: 6 additions & 7 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@
}


REQUIREMENTS = [
'httplib2 >= 0.9.1',
'googleapis-common-protos >= 1.3.4',
'oauth2client >= 3.0.0, < 4.0.0dev',
'protobuf >= 3.0.0',
'six',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-core',
Expand Down
1 change: 1 addition & 0 deletions datastore/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
2 changes: 2 additions & 0 deletions datastore/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
google-cloud-core >= 0.20.0
grpcio >= 1.0.0, < 2.0dev
10 changes: 6 additions & 4 deletions datastore/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
'grpcio >= 1.0.0, < 2.0dev',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-datastore',
Expand Down
1 change: 1 addition & 0 deletions dns/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
1 change: 1 addition & 0 deletions dns/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-core >= 0.20.0
9 changes: 6 additions & 3 deletions dns/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-dns',
Expand Down
1 change: 1 addition & 0 deletions error_reporting/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
2 changes: 2 additions & 0 deletions error_reporting/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
google-cloud-core >= 0.20.0
google-cloud-logging >= 0.20.0
10 changes: 6 additions & 4 deletions error_reporting/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
'google-cloud-logging >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-error-reporting',
Expand Down
1 change: 1 addition & 0 deletions language/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
1 change: 1 addition & 0 deletions language/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-core >= 0.20.0
9 changes: 6 additions & 3 deletions language/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-language',
Expand Down
1 change: 1 addition & 0 deletions logging/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
5 changes: 5 additions & 0 deletions logging/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
google-cloud-core >= 0.20.0
grpcio >= 1.0.0, < 2.0dev
google-gax >= 0.14.1, < 0.15dev
gapic-google-logging-v2 >= 0.10.1, < 0.11dev
grpc-google-logging-v2 >= 0.10.1, < 0.11dev
13 changes: 6 additions & 7 deletions logging/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
'grpcio >= 1.0.0, < 2.0dev',
'google-gax >= 0.14.1, < 0.15dev',
'gapic-google-logging-v2 >= 0.10.1, < 0.11dev',
'grpc-google-logging-v2 >= 0.10.1, < 0.11dev',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-logging',
Expand Down
1 change: 1 addition & 0 deletions monitoring/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
1 change: 1 addition & 0 deletions monitoring/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-core >= 0.20.0
9 changes: 6 additions & 3 deletions monitoring/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-monitoring',
Expand Down
1 change: 1 addition & 0 deletions pubsub/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
5 changes: 5 additions & 0 deletions pubsub/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
google-cloud-core >= 0.20.0
grpcio >= 1.0.0, < 2.0dev
google-gax >= 0.14.1, < 0.15dev
gapic-google-pubsub-v1 >= 0.10.1, < 0.11dev
grpc-google-pubsub-v1 >= 0.10.1, < 0.11dev
13 changes: 6 additions & 7 deletions pubsub/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
'grpcio >= 1.0.0, < 2.0dev',
'google-gax >= 0.14.1, < 0.15dev',
'gapic-google-pubsub-v1 >= 0.10.1, < 0.11dev',
'grpc-google-pubsub-v1 >= 0.10.1, < 0.11dev',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-pubsub',
Expand Down
1 change: 1 addition & 0 deletions resource_manager/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include requirements.txt
graft google
graft unit_tests
global-exclude *.pyc
1 change: 1 addition & 0 deletions resource_manager/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-cloud-core >= 0.20.0
9 changes: 6 additions & 3 deletions resource_manager/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
}


REQUIREMENTS = [
'google-cloud-core >= 0.20.0',
]
# NOTE: This assumes that no comments or other extra text
# is in the requirements.txt file.
with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as file_obj:
REQUIREMENTS = file_obj.read()
REQUIREMENTS = REQUIREMENTS.strip().split('\n')


setup(
name='google-cloud-resource-manager',
Expand Down
10 changes: 5 additions & 5 deletions scripts/generate_json_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from parinx.errors import MethodParsingException
import six

from script_utils import PROJECT_ROOT
from verify_included_modules import get_public_modules


Expand Down Expand Up @@ -601,7 +602,7 @@ def main():
parser.add_argument('--tag', help='The version of the documentation.',
default='master')
parser.add_argument('--basepath', help='Path to the library.',
default=os.path.join(os.path.dirname(__file__), '..'))
default=PROJECT_ROOT)
parser.add_argument('--show-toc', help='Prints partial table of contents',
default=False)
args = parser.parse_args()
Expand Down Expand Up @@ -635,18 +636,17 @@ def main():
}
}

BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
BASE_JSON_DOCS_DIR = os.path.join(BASE_DIR, 'docs', 'json')
BASE_JSON_DOCS_DIR = os.path.join(PROJECT_ROOT, 'docs', 'json')

DOCS_BUILD_DIR = os.path.join(BASE_DIR, 'docs', '_build')
DOCS_BUILD_DIR = os.path.join(PROJECT_ROOT, 'docs', '_build')
JSON_DOCS_DIR = os.path.join(DOCS_BUILD_DIR, 'json', args.tag)
LIB_DIR = os.path.abspath(args.basepath)

library_dir = os.path.join(LIB_DIR, 'google', 'cloud')
public_mods = get_public_modules(library_dir,
base_package='google.cloud')

generate_module_docs(public_mods, JSON_DOCS_DIR, BASE_DIR, toc)
generate_module_docs(public_mods, JSON_DOCS_DIR, PROJECT_ROOT, toc)
generate_doc_types_json(public_mods,
os.path.join(JSON_DOCS_DIR, 'types.json'))
package_files(JSON_DOCS_DIR, DOCS_BUILD_DIR, BASE_JSON_DOCS_DIR)
Expand Down
8 changes: 4 additions & 4 deletions scripts/make_datastore_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
import sys
import tempfile

from script_utils import PROJECT_ROOT

ROOT_DIR = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..'))
PROTOS_DIR = os.path.join(ROOT_DIR, 'googleapis-pb')

PROTOS_DIR = os.path.join(PROJECT_ROOT, 'googleapis-pb')
PROTO_PATH = os.path.join(PROTOS_DIR, 'google', 'datastore',
'v1', 'datastore.proto')
GRPC_ONLY_FILE = os.path.join(ROOT_DIR, 'datastore',
GRPC_ONLY_FILE = os.path.join(PROJECT_ROOT, 'datastore',
'google', 'cloud', 'datastore',
'_generated', 'datastore_grpc_pb2.py')
GRPCIO_VIRTUALENV = os.getenv('GRPCIO_VIRTUALENV')
Expand Down
3 changes: 2 additions & 1 deletion scripts/run_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import sys

from script_utils import get_affected_files
from script_utils import PROJECT_ROOT


IGNORED_DIRECTORIES = [
Expand All @@ -44,7 +45,7 @@
os.path.join('google', 'cloud', '__init__.py'),
'setup.py',
]
SCRIPTS_DIR = os.path.abspath(os.path.dirname(__file__))
SCRIPTS_DIR = os.path.join(PROJECT_ROOT, 'scripts')
PRODUCTION_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_default')
TEST_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_reduced')
TEST_DISABLED_MESSAGES = [
Expand Down
Loading