Skip to content
Merged
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
27 changes: 6 additions & 21 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,16 @@

## Summary

This release removes the `timezonefinder` dependency to significantly reduce package size by 66M+ and enable ARM platform support.

> [!WARNING]
> This is a **breaking change** shipped in a patch release because this feature has no known users.
<!-- Here goes a general summary of what this release is about -->

## Upgrading

The `Location.timezone` field no longer performs automatic timezone lookup from latitude/longitude coordinates.
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->

```python
# Automatic timezone lookup (no longer works)
location = Location(latitude=52.52, longitude=13.405)
print(location.timezone) # Previously: ZoneInfo('Europe/Berlin'), now None
```
## New Features

If you need timezone lookup from coordinates, install [`timezonefinder`](https://pypi.org/project/timezonefinder/) separately and implement manual lookup:
<!-- Here goes the main new features and examples or instructions on how to use them -->

```python
# Install: pip install timezonefinder
from timezonefinder import TimezoneFinder
from zoneinfo import ZoneInfo
from frequenz.client.microgrid import Location
## Bug Fixes

tf = TimezoneFinder()
tz_name = tf.timezone_at(lat=52.52, lng=13.405)
timezone = ZoneInfo(tz_name) if tz_name else None
location = Location(latitude=52.52, longitude=13.405, timezone=timezone)
```
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->