From 40b3f67da3f323339c786e0956d8248a2c7e29ce Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 18 Mar 2024 16:09:03 +0000 Subject: [PATCH 1/2] Update fonttools from 4.49.0 to 4.50.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 33a9792e..504959e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -fonttools[ufo,lxml]==4.49.0 +fonttools[lxml,ufo]==4.50.0 defcon==0.10.3 compreffor==0.5.5 booleanOperations==0.9.0 From 9a7920a2dea1bd3193036f0b182144c122c6a779 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Wed, 20 Mar 2024 13:45:34 +0000 Subject: [PATCH 2/2] Fix DeprecationWarning: datetime.datetime.utcfromtimestamp() --- Lib/ufo2ft/fontInfoData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/ufo2ft/fontInfoData.py b/Lib/ufo2ft/fontInfoData.py index 941c8d33..3373aa65 100644 --- a/Lib/ufo2ft/fontInfoData.py +++ b/Lib/ufo2ft/fontInfoData.py @@ -17,7 +17,7 @@ import os import time import unicodedata -from datetime import datetime +from datetime import datetime, timezone from fontTools import ufoLib from fontTools.misc.fixedTools import otRound @@ -104,7 +104,7 @@ def openTypeHeadCreatedFallback(info): now. """ if "SOURCE_DATE_EPOCH" in os.environ: - t = datetime.utcfromtimestamp(int(os.environ["SOURCE_DATE_EPOCH"])) + t = datetime.fromtimestamp(int(os.environ["SOURCE_DATE_EPOCH"]), timezone.utc) return t.strftime(_date_format) else: return dateStringForNow()