Skip to content

Commit f0d1e99

Browse files
LaunchDarklyReleaseBoteli-darklyLaunchDarklyReleaseBotcharukiewiczkeelerm84
authored
prepare 9.0.1 release (#230)
## [9.0.1] - 2023-10-27 ### Fixed: - Replace deprecated `utcfromtimestamp` usage. --------- Co-authored-by: Eli Bishop <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: charukiewicz <[email protected]> Co-authored-by: Christian Charukiewicz <[email protected]> Co-authored-by: Matthew M. Keeler <[email protected]> Co-authored-by: Matthew M. Keeler <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: Gavin Whelan <[email protected]> Co-authored-by: Elliot <[email protected]> Co-authored-by: Gabor Angeli <[email protected]> Co-authored-by: Elliot <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: hroederld <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: prpnmac <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Daniel Fritz <[email protected]>
1 parent 4b440bd commit f0d1e99

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22

3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "3.8"
7+
38
python:
4-
version: 3.8
59
install:
610
- requirements: docs/requirements.txt
711
- requirements: requirements.txt

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the LaunchDarkly Python SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [8.2.1] - 2023-10-23
6+
### Fixed:
7+
- Replace deprecated `utcfromtimestamp` usage.
8+
59
## [9.0.0] - 2023-10-17
610
The latest version of this SDK supports the ability to manage migrations or modernizations, using migration flags. You might use this functionality if you are optimizing queries, upgrading to new tech stacks, migrating from one database to another, or other similar technology changes. Migration flags are part of LaunchDarkly's Early Access Program. This feature is available to all LaunchDarkly customers but may undergo additional changes before it is finalized.
711

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# LaunchDarkly Server-side SDK for Python
22

33
[![Circle CI](https://img.shields.io/circleci/project/launchdarkly/python-server-sdk.png)](https://circleci.com/gh/launchdarkly/python-server-sdk)
4+
[![readthedocs](https://readthedocs.org/projects/launchdarkly-python-sdk/badge/)](https://launchdarkly-python-sdk.readthedocs.io/en/latest/)
45

56
[![PyPI](https://img.shields.io/pypi/v/launchdarkly-server-sdk.svg?maxAge=2592000)](https://pypi.python.org/pypi/launchdarkly-server-sdk)
67
[![PyPI](https://img.shields.io/pypi/pyversions/launchdarkly-server-sdk.svg)](https://pypi.python.org/pypi/launchdarkly-server-sdk)

ldclient/impl/model/value_parsing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import re
22
from re import Pattern
33
from semver import VersionInfo
4-
from datetime import tzinfo, timedelta, datetime
4+
from datetime import tzinfo, timedelta, datetime, timezone
55
from numbers import Number
66
from typing import Any, Optional
77

88
import pyrfc3339
99

1010
_ZERO = timedelta(0)
1111

12-
# A UTC class.
1312

13+
# A UTC class.
1414
class _UTC(tzinfo):
1515
"""UTC"""
1616

@@ -23,7 +23,8 @@ def tzname(self, dt):
2323
def dst(self, dt):
2424
return _ZERO
2525

26-
_epoch = datetime.utcfromtimestamp(0).replace(tzinfo=_UTC())
26+
27+
_epoch = datetime.fromtimestamp(0, timezone.utc)
2728

2829

2930
def is_number(input: Any) -> bool:

0 commit comments

Comments
 (0)