-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making resource-manager subpackage into a proper package.
- Adding README, setup.py, MANIFEST.in, .coveragerc and tox.ini - Adding google-cloud-resource-manager as a dependency to the umbrella package - Adding the resource_manager subdirectory into the list of packages for verifying the docs - Incorporating the resource_manager subdirectory into the umbrella coverage report - Adding the resource-manager only tox tests to the Travis config - Adding {toxinidir}/../core as a dependency for the resource-manager tox config
- Loading branch information
Showing
9 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
fail_under = 100 | ||
show_missing = True | ||
exclude_lines = | ||
# Re-enable the standard pragma | ||
pragma: NO COVER | ||
# Ignore debug-only repr | ||
def __repr__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include README.rst | ||
graft google | ||
graft unit_tests | ||
global-exclude *.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Python Client for Google Cloud Resource Manager | ||
=============================================== | ||
|
||
Python idiomatic client for `Google Cloud Resource Manager`_ | ||
|
||
.. _Google Cloud Resource Manager: https://cloud.google.com/resource-manager/ | ||
|
||
- `Homepage`_ | ||
- `API Documentation`_ | ||
|
||
.. _Homepage: https://googlecloudplatform.github.io/google-cloud-python/ | ||
.. _API Documentation: http://googlecloudplatform.github.io/google-cloud-python/ | ||
|
||
Quick Start | ||
----------- | ||
|
||
:: | ||
|
||
$ pip install --upgrade google-cloud-resource-manager | ||
|
||
Authentication | ||
-------------- | ||
|
||
With ``google-cloud-python`` we try to make authentication as painless as | ||
possible. Check out the `Authentication section`_ in our documentation to | ||
learn more. You may also find the `authentication document`_ shared by all | ||
the ``google-cloud-*`` libraries to be helpful. | ||
|
||
.. _Authentication section: http://google-cloud-python.readthedocs.io/en/latest/google-cloud-auth.html | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
.. _authentication document: https://github.com/GoogleCloudPlatform/gcloud-common/tree/master/authentication | ||
|
||
Using the API | ||
------------- | ||
|
||
The Cloud `Resource Manager`_ API (`Resource Manager API docs`_) provides | ||
methods that you can use to programmatically manage your projects in the | ||
Google Cloud Platform. | ||
|
||
.. _Resource Manager: https://cloud.google.com/resource-manager/ | ||
.. _Resource Manager API docs: https://cloud.google.com/resource-manager/reference/rest/ | ||
|
||
See the ``google-cloud-python`` API `Resource Manager documentation`_ to learn | ||
how to manage projects using this Client Library. | ||
|
||
.. _Resource Manager documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/resource-manager-api.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# 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. | ||
|
||
import os | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
|
||
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj: | ||
README = file_obj.read() | ||
|
||
# NOTE: This is duplicated throughout and we should try to | ||
# consolidate. | ||
SETUP_BASE = { | ||
'author': 'Google Cloud Platform', | ||
'author_email': 'jjg+google-cloud-python@google.com', | ||
'scripts': [], | ||
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python', | ||
'license': 'Apache 2.0', | ||
'platforms': 'Posix; MacOS X; Windows', | ||
'include_package_data': True, | ||
'zip_safe': False, | ||
'classifiers': [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Topic :: Internet', | ||
], | ||
} | ||
|
||
|
||
REQUIREMENTS = [ | ||
'google-cloud-core', | ||
] | ||
|
||
setup( | ||
name='google-cloud-resource-manager', | ||
version='0.20.0dev', | ||
description='Python Client for Google Cloud Resource Manager', | ||
long_description=README, | ||
namespace_packages=[ | ||
'google', | ||
'google.cloud', | ||
], | ||
packages=find_packages(), | ||
install_requires=REQUIREMENTS, | ||
**SETUP_BASE | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[tox] | ||
envlist = | ||
py27,py34,py35,cover | ||
|
||
[testing] | ||
deps = | ||
{toxinidir}/../core | ||
pytest | ||
covercmd = | ||
py.test --quiet \ | ||
--cov=google.cloud.resource-manager \ | ||
--cov=unit_tests \ | ||
--cov-config {toxinidir}/.coveragerc \ | ||
unit_tests | ||
|
||
[testenv] | ||
commands = | ||
py.test --quiet {posargs} unit_tests | ||
deps = | ||
{[testing]deps} | ||
|
||
[testenv:cover] | ||
basepython = | ||
python2.7 | ||
commands = | ||
{[testing]covercmd} | ||
deps = | ||
{[testenv]deps} | ||
coverage | ||
pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ | |
'language', | ||
'logging', | ||
'pubsub', | ||
'resource_manager', | ||
'storage', | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This link is broken @dhermes