Skip to content

chore(main): Release candidate v2.4.0rc1 #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

[1]: https://pypi.org/project/google-cloud-core/#history

## [2.4.0rc1](https://github.com/googleapis/python-cloud-core/compare/v2.3.3...v2.4.0rc1) (2023-12-03)


### Features

* Add support for Python 3.12 ([#256](https://github.com/googleapis/python-cloud-core/issues/256)) ([988a8af](https://github.com/googleapis/python-cloud-core/commit/988a8af3fe5cf2c5f37e08c62b10dcd89e6333c1))
* Introduce compatibility with native namespace packages ([#260](https://github.com/googleapis/python-cloud-core/issues/260)) ([fd1ef6e](https://github.com/googleapis/python-cloud-core/commit/fd1ef6e03252edca3641cc26ec227a00b4f44221))

## [2.3.3](https://github.com/googleapis/python-cloud-core/compare/v2.3.2...v2.3.3) (2023-06-29)


Expand Down
2 changes: 1 addition & 1 deletion google/cloud/_helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
grpc = None


_NOW = datetime.datetime.utcnow # To be replaced by tests.
_NOW = datetime.datetime.now(datetime.timezone.utc)
UTC = datetime.timezone.utc # Singleton instance to be used throughout.
_EPOCH = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc)

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "2.3.3"
__version__ = "2.4.0rc1"
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def default(session):
)

# Install all test dependencies, then install local packages in-place.
session.install("pytest", "pytest-cov", "grpcio >= 1.0.2", "-c", constraints_path)
session.install("-e", ".", "-c", constraints_path)
session.install("pytest", "pytest-cov", "-c", constraints_path)
session.install("-e", ".[grpc]", "-c", constraints_path)

# Run py.test against the unit tests.
session.run(
Expand Down
9 changes: 9 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[pytest]
filterwarnings =
# treat all warnings as errors
error
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning
# Remove once Release PR https://github.com/googleapis/python-api-common-protos/pull/191 is merged
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@
"google-auth >= 1.25.0, < 3.0dev",
"importlib-metadata > 1.0.0; python_version<'3.8'",
]
extras = {"grpc": "grpcio >= 1.38.0, < 2.0dev"}

extras = {
"grpc": [
"grpcio >= 1.38.0, < 2.0dev",
"grpcio-status >= 1.38.0, < 2.0.dev0",
],
}

# Setup boilerplate below this line.

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test__helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_w_utc_datetime(self):
from google.cloud._helpers import UTC
from google.cloud._helpers import _microseconds_from_datetime

NOW = datetime.datetime.utcnow().replace(tzinfo=UTC)
NOW = datetime.datetime.now().replace(tzinfo=UTC)
NOW_MICROS = _microseconds_from_datetime(NOW)
MILLIS = NOW_MICROS // 1000
result = self._call_fut(NOW)
Expand All @@ -163,7 +163,7 @@ def test_w_naive_datetime(self):
from google.cloud._helpers import UTC
from google.cloud._helpers import _microseconds_from_datetime

NOW = datetime.datetime.utcnow()
NOW = datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None)
UTC_NOW = NOW.replace(tzinfo=UTC)
UTC_NOW_MICROS = _microseconds_from_datetime(UTC_NOW)
MILLIS = UTC_NOW_MICROS // 1000
Expand Down