Skip to content

Commit 4ff748f

Browse files
committed
Use standard library, not pytz
1 parent 1ca75ea commit 4ff748f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nextflow/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
2-
import pytz
32
import glob
3+
from zoneinfo import ZoneInfo
44
from datetime import datetime
55

66
def get_file_text(path, io=None):
@@ -31,7 +31,7 @@ def get_file_creation_time(path, timezone=None, io=None):
3131
else:
3232
dt = datetime.fromtimestamp(os.path.getctime(path))
3333
if timezone:
34-
tz = pytz.timezone(timezone)
34+
tz = ZoneInfo(timezone)
3535
dt = dt.astimezone(tz)
3636
dt = dt.replace(tzinfo=None)
3737
return dt

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
],
2929
keywords="nextflow bioinformatics pipeline",
3030
packages=["nextflow"],
31-
python_requires="!=2.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
31+
python_requires="!=2.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.8.*",
3232
install_requires=[]
3333
)

0 commit comments

Comments
 (0)