diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9ee60f7..a9fcd07 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:aea14a583128771ae8aefa364e1652f3c56070168ef31beb203534222d842b8b + digest: sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803 diff --git a/.repo-metadata.json b/.repo-metadata.json index 07c8c5b..a250bc6 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/resource-manager", "client_documentation": "https://googleapis.dev/python/cloudresourcemanager/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559757", - "release_level": "beta", + "release_level": "ga", "language": "python", "library_type": "GAPIC_MANUAL", "repo": "googleapis/python-resource-manager", diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e17444..b7afd04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-resource-manager/#history +## [1.1.0](https://www.github.com/googleapis/python-resource-manager/compare/v1.0.2...v1.1.0) (2021-08-19) + + +### Features + +* bump release level to production/stable ([#96](https://www.github.com/googleapis/python-resource-manager/issues/96)) ([aac0a24](https://www.github.com/googleapis/python-resource-manager/commit/aac0a240843846ccb228c8d4223cfd2dbdf03f7d)) + ### [1.0.2](https://www.github.com/googleapis/python-resource-manager/compare/v1.0.1...v1.0.2) (2021-07-27) diff --git a/README.rst b/README.rst index 3a8b6f2..a622ac5 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ Python Client for Google Cloud Resource Manager =============================================== -|beta| |pypi| |versions| +|ga| |pypi| |versions| `Google Cloud Resource Manager`_ API provides methods that you can use to programmatically manage your projects in the Google Cloud Platform. @@ -10,8 +10,8 @@ With this API, you can do the following: - `Client Library Documentation`_ - `Product Documentation`_ -.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support +.. |ga| image:: https://img.shields.io/badge/support-ga-gold.svg + :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#ga-support .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-resource-manager.svg :target: https://pypi.org/project/google-cloud-resource-manager/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-resource-manager.svg diff --git a/docs/README.rst b/docs/README.rst deleted file mode 100644 index 3a8b6f2..0000000 --- a/docs/README.rst +++ /dev/null @@ -1,84 +0,0 @@ -Python Client for Google Cloud Resource Manager -=============================================== - -|beta| |pypi| |versions| - -`Google Cloud Resource Manager`_ API provides methods that you can use -to programmatically manage your projects in the Google Cloud Platform. -With this API, you can do the following: - -- `Client Library Documentation`_ -- `Product Documentation`_ - -.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-resource-manager.svg - :target: https://pypi.org/project/google-cloud-resource-manager/ -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-resource-manager.svg - :target: https://pypi.org/project/google-cloud-resource-manager/ -.. _Google Cloud Resource Manager: https://cloud.google.com/resource-manager -.. _Client Library Documentation: https://googleapis.dev/python/cloudresourcemanager/latest -.. _Product Documentation: https://cloud.google.com/resource-manager - -Quick Start ------------ - -In order to use this library, you first need to go through the following steps: - -1. `Select or create a Cloud Platform project.`_ -2. `Enable billing for your project.`_ -3. `Enable the Resource Manager API.`_ -4. `Setup Authentication.`_ - -.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project -.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the Resource Manager API.: https://cloud.google.com/resource-manager/docs/quickstart-organizations#before-you-begin -.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html - -Installation -~~~~~~~~~~~~ - -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. - -With `virtualenv`_, it's possible to install this library without needing system -install permissions, and without clashing with the installed system -dependencies. - -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ - - -Mac/Linux -^^^^^^^^^ - -.. code-block:: console - - pip install virtualenv - virtualenv - source /bin/activate - /bin/pip install google-cloud-resource-manager - - -Windows -^^^^^^^ - -.. code-block:: console - - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-resource-manager - -Next Steps -~~~~~~~~~~ - -- Read the `Client Library Documentation`_ for Resource Manager - to see other available methods on the client. -- Read the `Resource Manager Product documentation`_ to learn - more about the product and see How-to Guides. -- View this `README`_ to see the full list of Cloud - APIs that we cover. - -.. _Resource Manager Product documentation: https://cloud.google.com/resource-manager/docs -.. _README: https://github.com/googleapis/google-cloud-python/blob/master/README.rst \ No newline at end of file diff --git a/docs/README.rst b/docs/README.rst new file mode 120000 index 0000000..89a0106 --- /dev/null +++ b/docs/README.rst @@ -0,0 +1 @@ +../README.rst \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 13b70d9..3d47655 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,6 +110,7 @@ # directories to ignore when looking for source files. exclude_patterns = [ "_build", + "**/.nox/**/*", "samples/AUTHORING_GUIDE.md", "samples/CONTRIBUTING.md", "samples/snippets/README.rst", diff --git a/noxfile.py b/noxfile.py index 03aa2f5..2bf3ffd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -84,9 +84,15 @@ def default(session): constraints_path = str( CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" ) - session.install("asyncmock", "pytest-asyncio", "-c", constraints_path) - - session.install("mock", "pytest", "pytest-cov", "-c", constraints_path) + session.install( + "mock", + "asyncmock", + "pytest", + "pytest-cov", + "pytest-asyncio", + "-c", + constraints_path, + ) session.install("-e", ".", "-c", constraints_path) diff --git a/owlbot.py b/owlbot.py index 2b509af..6dce2c7 100644 --- a/owlbot.py +++ b/owlbot.py @@ -16,6 +16,7 @@ import synthtool as s from synthtool import gcp +from synthtool.languages import python common = gcp.CommonTemplates() @@ -73,6 +74,7 @@ # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library(cov_level=98, microgenerator=True) +python.py_samples(skip_readmes=True) s.move(templated_files) s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/scripts/readme-gen/templates/install_deps.tmpl.rst b/scripts/readme-gen/templates/install_deps.tmpl.rst index a0406db..275d649 100644 --- a/scripts/readme-gen/templates/install_deps.tmpl.rst +++ b/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -12,7 +12,7 @@ Install Dependencies .. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup -#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. +#. Create a virtualenv. Samples are compatible with Python 3.6+. .. code-block:: bash diff --git a/setup.py b/setup.py index 1469afe..ffaa29d 100644 --- a/setup.py +++ b/setup.py @@ -21,8 +21,8 @@ # Package metadata. name = "google-cloud-resource-manager" description = "Google Cloud Resource Manager API client library" -version = "1.0.2" -release_status = "Development Status :: 4 - Beta" +version = "1.1.0" +release_status = "Development Status :: 5 - Production/Stable" url = "https://github.com/googleapis/python-resource-manager" dependencies = [ # NOTE: Maintainers, please do not require google-api-core>=2.x.x