Skip to content

Commit

Permalink
update, fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed May 9, 2024
1 parent d229ff3 commit 980c755
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Changelog

[Unreleased] - TBD
## [Unreleased] - TBD

## Changed
### Changed

* switch from `fastapi` to `fastapi-slim` to avoid installing unwanted dependencies. ([#687](https://github.com/stac-utils/stac-fastapi/pull/687))
* replace Enum with `Literal` for `FilterLang`. ([#686](https://github.com/stac-utils/stac-fastapi/pull/686))

### Removed

* switch from `fastapi` to `fastapi-slim` to avoid installing unwanted dependencies
* replace Enum with `Literal` for `FilterLang`
* Pystac as it was just used for a datetime to string function. ([#690](https://github.com/stac-utils/stac-fastapi/pull/690))

## [3.0.0a0] - 2024-05-06

Expand Down
3 changes: 1 addition & 2 deletions stac_fastapi/types/stac_fastapi/types/rfc3339.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
]


# Borrowed from pystac - https://github.com/stac-utils/pystac/blob/main/pystac/utils.py#L370C1-L394C21
def datetime_to_str(dt: datetime, timespec: str = "auto") -> str:
"""Converts a :class:`datetime.datetime` instance to an ISO8601 string in the
`RFC 3339, section 5.6
<https://datatracker.ietf.org/doc/html/rfc3339#section-5.6>`__ format required by
the :stac-spec:`STAC Spec <master/item-spec/common-metadata.md#date-and-time>`.
Borrowed from pystac - https://github.com/stac-utils/pystac/blob/main/pystac/utils.py#L370C1-L394C21
Args:
dt : The datetime to convert.
timespec: An optional argument that specifies the number of additional
Expand Down

0 comments on commit 980c755

Please sign in to comment.