Skip to content

Commit

Permalink
Install a fake local grpc-google-iam-v1 to resolve the version conf…
Browse files Browse the repository at this point in the history
…lict.
  • Loading branch information
dhermes committed Sep 28, 2016
1 parent 5a0e492 commit 5689be5
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
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

0 comments on commit 5689be5

Please sign in to comment.