Skip to content

Commit

Permalink
docs: update language of py2 admonition (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jul 1, 2020
1 parent ea4fdff commit 54bdaae
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<div class="body" role="main">
<div class="admonition" id="python2-eol">
On January 1, 2020 this library will no longer support Python 2 on the latest released version.
Previously released library versions will continue to be available. For more information please
As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
Library versions released prior to that date will continue to be available. For more information please
visit <a href="https://cloud.google.com/python/docs/python2-sunset/">Python 2 support on Google Cloud</a>.
</div>
{% block body %} {% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-resource-manager/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# autodoc/autosummary flags
autoclass_content = "both"
autodoc_default_flags = ["members"]
autodoc_default_options = {"members": True}
autosummary_generate = True


Expand Down Expand Up @@ -337,7 +337,7 @@
intersphinx_mapping = {
"python": ("http://python.readthedocs.org/en/latest/", None),
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None),
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
"grpc": ("https://grpc.io/grpc/python/", None),
}

Expand Down
18 changes: 12 additions & 6 deletions packages/google-cloud-resource-manager/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
import nox


BLACK_VERSION = "black==19.3b0"
BLACK_VERSION = "black==19.10b0"
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]

DEFAULT_PYTHON_VERSION = "3.7"
SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.7"]
DEFAULT_PYTHON_VERSION = "3.8"
SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"]
UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8"]


Expand All @@ -39,7 +39,9 @@ def lint(session):
serious code quality issues.
"""
session.install("flake8", BLACK_VERSION)
session.run("black", "--check", *BLACK_PATHS)
session.run(
"black", "--check", *BLACK_PATHS,
)
session.run("flake8", "google", "tests")


Expand All @@ -54,7 +56,9 @@ def blacken(session):
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
"""
session.install(BLACK_VERSION)
session.run("black", *BLACK_PATHS)
session.run(
"black", *BLACK_PATHS,
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
Expand Down Expand Up @@ -111,7 +115,9 @@ def system(session):

# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install("mock", "pytest", "google-cloud-testutils")
session.install(
"mock", "pytest", "google-cloud-testutils",
)
session.install("-e", ".")

# Run py.test against the system tests.
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-resource-manager/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-resource-manager.git",
"sha": "1a44d9affa737192c6376ac52d3d9016b8d34554"
"sha": "695d01802668b12085d0fb9934abab45fd4ccfa1"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "4e1d2cb79b02d7496b1452f91c518630c207145e"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
]
Expand Down

0 comments on commit 54bdaae

Please sign in to comment.