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 <eli@launchdarkly.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: charukiewicz <charukiewicz@protonmail.com> Co-authored-by: Christian Charukiewicz <christian@foxhound.systems> Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com> Co-authored-by: Matthew M. Keeler <mkeeler@launchdarkly.com> Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com> Co-authored-by: Ember Stevens <79482775+ember-stevens@users.noreply.github.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com> Co-authored-by: Elliot <35050275+Apache-HB@users.noreply.github.com> Co-authored-by: Gabor Angeli <gabor@squareup.com> Co-authored-by: Elliot <apachehaisley@gmail.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: LaunchDarklyCI <LaunchDarklyCI@users.noreply.github.com> Co-authored-by: hroederld <hroeder@launchdarkly.com> Co-authored-by: Robert J. Neal <rneal@launchdarkly.com> Co-authored-by: Robert J. Neal <robertjneal@users.noreply.github.com> Co-authored-by: Louis Chan <lchan@launchdarkly.com> Co-authored-by: prpnmac <95777763+prpnmac@users.noreply.github.com> Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Co-authored-by: Daniel Fritz <dfritz@indigoag.com>
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)