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

Install a fake local grpc-google-iam-v1 to resolve the version conflict. #2457

Closed
wants to merge 1 commit 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 docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ speech/
storage/
translate/
vision/
grpc-google-iam-v1-fake/
5 changes: 5 additions & 0 deletions grpc-google-iam-v1-fake/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
gRPC library for google-iam-v1

grpc-google-iam-v1 is the IDL-derived library for the google-iam (v1) service in the googleapis_ repository.

.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/iam/v1
20 changes: 20 additions & 0 deletions grpc-google-iam-v1-fake/google/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
20 changes: 20 additions & 0 deletions grpc-google-iam-v1-fake/google/iam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
36 changes: 36 additions & 0 deletions grpc-google-iam-v1-fake/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import setuptools

from setuptools import find_packages
from setuptools import setup

install_requires = [
'grpcio>=1.0.0, <2.0.0',
'googleapis-common-protos[grpc]>=1.3.4, <2.0.0'
]

setuptools.setup(
name='grpc-google-iam-v1',
version='0.10.0',
author='Google Inc',
author_email='googleapis-packages@google.com',
classifiers=[
'Intended Audience :: Developers',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
],
description='GRPC library for the google-iam-v1 service',
long_description=open('README.rst').read(),
install_requires=install_requires,
license='Apache-2.0',
packages=find_packages(),
namespace_packages=['google', 'google.iam', ],
url='https://github.com/googleapis/googleapis'
)
1 change: 1 addition & 0 deletions scripts/run_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
IGNORED_DIRECTORIES = [
os.path.join('bigtable', 'google', 'cloud', 'bigtable', '_generated'),
os.path.join('datastore', 'google', 'cloud', 'datastore', '_generated'),
'grpc-google-iam-v1-fake',
]
IGNORED_FILES = [
os.path.join('docs', 'conf.py'),
Expand Down