Skip to content

Commit ee342a8

Browse files
chore(containeranalysis): add py2 deprecation warning, add 3.8 tests (via synth) (#10065)
1 parent 3f0f011 commit ee342a8

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
div#python2-eol {
22
border-color: red;
33
border-width: medium;
4-
}
4+
}

containeranalysis/docs/_templates/layout.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
{% extends "!layout.html" %}
23
{%- block content %}
34
{%- if theme_fixed_sidebar|lower == 'true' %}

containeranalysis/google/cloud/devtools/containeranalysis_v1/__init__.py

+11
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,22 @@
1616

1717

1818
from __future__ import absolute_import
19+
import sys
20+
import warnings
1921

2022
from google.cloud.devtools.containeranalysis_v1 import types
2123
from google.cloud.devtools.containeranalysis_v1.gapic import container_analysis_client
2224

2325

26+
if sys.version_info[:2] == (2, 7):
27+
message = (
28+
"A future version of this library will drop support for Python 2.7."
29+
"More details about Python 2 support for Google Cloud Client Libraries"
30+
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
31+
)
32+
warnings.warn(message, DeprecationWarning)
33+
34+
2435
class ContainerAnalysisClient(container_analysis_client.ContainerAnalysisClient):
2536
__doc__ = container_analysis_client.ContainerAnalysisClient.__doc__
2637

containeranalysis/noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def default(session):
8686
)
8787

8888

89-
@nox.session(python=["2.7", "3.5", "3.6", "3.7"])
89+
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
9090
def unit(session):
9191
"""Run the unit test suite."""
9292
default(session)

containeranalysis/synth.metadata

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-11-05T21:33:52.199324Z",
2+
"updateTime": "2020-01-08T13:15:38.194292Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.41.0",
8-
"dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9"
7+
"version": "0.43.0",
8+
"dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "cb542d6f5f1c9431ec4181d9cfd7f8d8c953e60b",
16-
"internalRef": "278688708"
15+
"sha": "08b488e0660c59842a7dee0e3e2b65d9e3a514a9",
16+
"internalRef": "288625007"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)