datetime patch

This commit is contained in:
Carolin Sachgau 2019-10-08 11:47:01 +02:00
parent 25c296be6f
commit a77feab830
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,12 @@ import glob
import datetime as dt
import subprocess
from IPython import embed
try:
iso = dt.date.fromisoformat
except AttributeError:
from backports.datetime_fromisoformat import MonkeyPatch
MonkeyPatch.patch_fromisoformat()
def read_info_file(file_name):

View File

@ -8,5 +8,5 @@ setup(name='fishbook',
packages=find_packages(exclude=['contrib', 'doc', 'tests*']),
description='Database providing an overview of the electrophysiological data recorded in the group.',
author='Jan Grewe',
requires=['datajoint', 'nixio', 'numpy', 'PyYAML']
requires=['datajoint', 'nixio', 'numpy', 'PyYAML', 'backports-datetime-fromisoformat']
)