Skip to content

Commit

Permalink
chore(python): use ubuntu 22.04 in docs image (#181)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@f15cc72
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
  • Loading branch information
gcf-owl-bot[bot] authored Apr 21, 2022
1 parent d78078e commit fa12eee
Show file tree
Hide file tree
Showing 19 changed files with 191 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163
# created: 2022-04-06T10:30:21.687684602Z
digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
# created: 2022-04-21T15:43:16.246106921Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ubuntu:20.04
from ubuntu:22.04

ENV DEBIAN_FRONTEND noninteractive

Expand Down Expand Up @@ -60,8 +60,24 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /var/cache/apt/archives/*.deb

###################### Install python 3.8.11

# Download python 3.8.11
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz

# Extract files
RUN tar -xvf Python-3.8.11.tgz

# Install python 3.8.11
RUN ./Python-3.8.11/configure --enable-optimizations
RUN make altinstall

###################### Install pip
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
&& python3.8 /tmp/get-pip.py \
&& python3 /tmp/get-pip.py \
&& rm /tmp/get-pip.py

# Test pip
RUN python3 -m pip

CMD ["python3.8"]
2 changes: 1 addition & 1 deletion packages/google-cloud-video-transcoder/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,44 @@
# limitations under the License.
#

from google.cloud.video.transcoder_v1.services.transcoder_service.async_client import (
TranscoderServiceAsyncClient,
)
from google.cloud.video.transcoder_v1.services.transcoder_service.client import (
TranscoderServiceClient,
)
from google.cloud.video.transcoder_v1.services.transcoder_service.async_client import (
TranscoderServiceAsyncClient,
from google.cloud.video.transcoder_v1.types.resources import (
AdBreak,
AudioStream,
EditAtom,
ElementaryStream,
Input,
Job,
JobConfig,
JobTemplate,
Manifest,
MuxStream,
Output,
Overlay,
PreprocessingConfig,
PubsubDestination,
SegmentSettings,
SpriteSheet,
TextStream,
VideoStream,
)
from google.cloud.video.transcoder_v1.types.services import (
CreateJobRequest,
CreateJobTemplateRequest,
DeleteJobRequest,
DeleteJobTemplateRequest,
GetJobRequest,
GetJobTemplateRequest,
ListJobsRequest,
ListJobsResponse,
ListJobTemplatesRequest,
ListJobTemplatesResponse,
)

from google.cloud.video.transcoder_v1.types.resources import AdBreak
from google.cloud.video.transcoder_v1.types.resources import AudioStream
from google.cloud.video.transcoder_v1.types.resources import EditAtom
from google.cloud.video.transcoder_v1.types.resources import ElementaryStream
from google.cloud.video.transcoder_v1.types.resources import Input
from google.cloud.video.transcoder_v1.types.resources import Job
from google.cloud.video.transcoder_v1.types.resources import JobConfig
from google.cloud.video.transcoder_v1.types.resources import JobTemplate
from google.cloud.video.transcoder_v1.types.resources import Manifest
from google.cloud.video.transcoder_v1.types.resources import MuxStream
from google.cloud.video.transcoder_v1.types.resources import Output
from google.cloud.video.transcoder_v1.types.resources import Overlay
from google.cloud.video.transcoder_v1.types.resources import PreprocessingConfig
from google.cloud.video.transcoder_v1.types.resources import PubsubDestination
from google.cloud.video.transcoder_v1.types.resources import SegmentSettings
from google.cloud.video.transcoder_v1.types.resources import SpriteSheet
from google.cloud.video.transcoder_v1.types.resources import TextStream
from google.cloud.video.transcoder_v1.types.resources import VideoStream
from google.cloud.video.transcoder_v1.types.services import CreateJobRequest
from google.cloud.video.transcoder_v1.types.services import CreateJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import DeleteJobRequest
from google.cloud.video.transcoder_v1.types.services import DeleteJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import GetJobRequest
from google.cloud.video.transcoder_v1.types.services import GetJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import ListJobsRequest
from google.cloud.video.transcoder_v1.types.services import ListJobsResponse
from google.cloud.video.transcoder_v1.types.services import ListJobTemplatesRequest
from google.cloud.video.transcoder_v1.types.services import ListJobTemplatesResponse

__all__ = (
"TranscoderServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,42 @@
# limitations under the License.
#

from .services.transcoder_service import TranscoderServiceClient
from .services.transcoder_service import TranscoderServiceAsyncClient

from .types.resources import AdBreak
from .types.resources import AudioStream
from .types.resources import EditAtom
from .types.resources import ElementaryStream
from .types.resources import Input
from .types.resources import Job
from .types.resources import JobConfig
from .types.resources import JobTemplate
from .types.resources import Manifest
from .types.resources import MuxStream
from .types.resources import Output
from .types.resources import Overlay
from .types.resources import PreprocessingConfig
from .types.resources import PubsubDestination
from .types.resources import SegmentSettings
from .types.resources import SpriteSheet
from .types.resources import TextStream
from .types.resources import VideoStream
from .types.services import CreateJobRequest
from .types.services import CreateJobTemplateRequest
from .types.services import DeleteJobRequest
from .types.services import DeleteJobTemplateRequest
from .types.services import GetJobRequest
from .types.services import GetJobTemplateRequest
from .types.services import ListJobsRequest
from .types.services import ListJobsResponse
from .types.services import ListJobTemplatesRequest
from .types.services import ListJobTemplatesResponse
from .services.transcoder_service import (
TranscoderServiceAsyncClient,
TranscoderServiceClient,
)
from .types.resources import (
AdBreak,
AudioStream,
EditAtom,
ElementaryStream,
Input,
Job,
JobConfig,
JobTemplate,
Manifest,
MuxStream,
Output,
Overlay,
PreprocessingConfig,
PubsubDestination,
SegmentSettings,
SpriteSheet,
TextStream,
VideoStream,
)
from .types.services import (
CreateJobRequest,
CreateJobTemplateRequest,
DeleteJobRequest,
DeleteJobTemplateRequest,
GetJobRequest,
GetJobTemplateRequest,
ListJobsRequest,
ListJobsResponse,
ListJobTemplatesRequest,
ListJobTemplatesResponse,
)

__all__ = (
"TranscoderServiceAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import TranscoderServiceClient
from .async_client import TranscoderServiceAsyncClient
from .client import TranscoderServiceClient

__all__ = (
"TranscoderServiceClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,29 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.protobuf import timestamp_pb2 # type: ignore
from google.rpc import status_pb2 # type: ignore
from .transports.base import TranscoderServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources, services

from .client import TranscoderServiceClient
from .transports.base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport
from .transports.grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport


class TranscoderServiceAsyncClient:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,30 @@
import os
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.protobuf import timestamp_pb2 # type: ignore
from google.rpc import status_pb2 # type: ignore
from .transports.base import TranscoderServiceTransport, DEFAULT_CLIENT_INFO

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources, services

from .transports.base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport
from .transports.grpc import TranscoderServiceGrpcTransport
from .transports.grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
AsyncIterator,
Awaitable,
Callable,
Iterator,
Optional,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.cloud.video.transcoder_v1.types import resources, services


class ListJobsPager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from .grpc import TranscoderServiceGrpcTransport
from .grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[TranscoderServiceTransport]]
_transport_registry["grpc"] = TranscoderServiceGrpcTransport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
#
import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import pkg_resources

import google.auth # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.protobuf import empty_pb2 # type: ignore
import pkg_resources

from google.cloud.video.transcoder_v1.types import resources, services

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import grpc_helpers
from google.api_core import gapic_v1
from google.api_core import gapic_v1, grpc_helpers
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore

from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.protobuf import empty_pb2 # type: ignore
from .base import TranscoderServiceTransport, DEFAULT_CLIENT_INFO
from google.cloud.video.transcoder_v1.types import resources, services

from .base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport


class TranscoderServiceGrpcTransport(TranscoderServiceTransport):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.api_core import gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

from google.protobuf import empty_pb2 # type: ignore
import grpc # type: ignore
from grpc.experimental import aio # type: ignore

from google.cloud.video.transcoder_v1.types import resources
from google.cloud.video.transcoder_v1.types import services
from google.protobuf import empty_pb2 # type: ignore
from .base import TranscoderServiceTransport, DEFAULT_CLIENT_INFO
from google.cloud.video.transcoder_v1.types import resources, services

from .base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport
from .grpc import TranscoderServiceGrpcTransport


Expand Down
Loading

0 comments on commit fa12eee

Please sign in to comment.