Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

feat: Add support for python 3.11 #327

Merged
merged 2 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_mtls_endpoint_and_cert_source(
The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variabel is "never", use the default API
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def get_mtls_endpoint_and_cert_source(
The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variabel is "never", use the default API
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

Expand Down
21 changes: 21 additions & 0 deletions google/analytics/data_v1alpha/types/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,9 @@ class FunnelBreakdown(proto.Message):
r"""Breakdowns add a dimension to the funnel table sub report
response.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
breakdown_dimension (google.analytics.data_v1alpha.types.Dimension):
The dimension column added to the funnel table sub report
Expand Down Expand Up @@ -879,6 +882,9 @@ class FunnelNextAction(proto.Message):
``i``\ th funnel step but before the user achieved the ``i+1``\ th
funnel step.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
next_action_dimension (google.analytics.data_v1alpha.types.Dimension):
The dimension column added to the funnel visualization sub
Expand Down Expand Up @@ -947,6 +953,9 @@ class FunnelStep(proto.Message):
contain one or more conditions that your users must meet to be
included in that step of the funnel journey.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
name (str):
The distinctive name for this step. If unspecified, steps
Expand Down Expand Up @@ -1710,6 +1719,9 @@ class SegmentFilterScoping(proto.Message):
r"""Scopings specify how the dimensions & metrics of multiple
events should be considered when evaluating a segment filter.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
at_any_point_in_time (bool):
If ``atAnyPointInTime`` is true, this filter evaluates to
Expand Down Expand Up @@ -1744,6 +1756,9 @@ class SegmentEventFilter(proto.Message):
of events that match both the single event name and the
parameter filter expressions match this event filter.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
event_name (str):
This filter matches events of this single
Expand Down Expand Up @@ -1957,6 +1972,9 @@ class SegmentParameterFilterScoping(proto.Message):
r"""Scopings specify how multiple events should be considered
when evaluating a segment parameter filter.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
in_any_n_day_period (int):
Accumulates the parameter over the specified period of days
Expand Down Expand Up @@ -2154,6 +2172,9 @@ class FunnelEventFilter(proto.Message):
of events that match both the single event name and the
parameter filter expressions match this event filter.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
event_name (str):
This filter matches events of this single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_mtls_endpoint_and_cert_source(
The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variabel is "never", use the default API
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_mtls_endpoint_and_cert_source(
The API endpoint is determined in the following order:
(1) if `client_options.api_endpoint` if provided, use the provided one.
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
default mTLS endpoint; if the environment variabel is "never", use the default API
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.

Expand Down
12 changes: 12 additions & 0 deletions google/analytics/data_v1beta/types/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ class MinuteRange(proto.Message):
+ 1, ..., endMinutesAgo. Requests are allowed up to 2 minute
ranges.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
start_minutes_ago (int):
The inclusive start minute for the query as a number of
Expand Down Expand Up @@ -1043,6 +1046,9 @@ class ResponseMetaData(proto.Message):
r"""Response's metadata carrying additional information about the
report content.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
data_loss_from_other_row (bool):
If true, indicates some buckets of dimension
Expand Down Expand Up @@ -1114,6 +1120,8 @@ class SchemaRestrictionResponse(proto.Message):
class ActiveMetricRestriction(proto.Message):
r"""A metric actively restricted in creating the report.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
metric_name (str):
The name of the restricted metric.
Expand Down Expand Up @@ -1639,6 +1647,8 @@ class BlockedReason(proto.Enum):
class DimensionCompatibility(proto.Message):
r"""The compatibility for a single dimension.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
dimension_metadata (google.analytics.data_v1beta.types.DimensionMetadata):
The dimension metadata contains the API name
Expand Down Expand Up @@ -1672,6 +1682,8 @@ class DimensionCompatibility(proto.Message):
class MetricCompatibility(proto.Message):
r"""The compatibility for a single metric.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
metric_metadata (google.analytics.data_v1beta.types.MetricMetadata):
The metric metadata contains the API name for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-analytics-data",
"version": "0.15.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-analytics-data",
"version": "0.15.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
dependencies = [
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
"proto-plus >= 1.22.0, <2.0.0dev",
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
]
url = "https://github.com/googleapis/python-analytics-data"
Expand Down Expand Up @@ -77,6 +78,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Internet",
],
Expand Down
6 changes: 6 additions & 0 deletions testing/constraints-3.12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# This constraints file is required for unit tests.
# List all library dependencies and extras in this file.
google-api-core
proto-plus
protobuf