diff --git a/README.rst b/README.rst index 8486c9190..f62980cf6 100644 --- a/README.rst +++ b/README.rst @@ -79,6 +79,11 @@ in development for valid types extending ``typing.Generic`` as well as other generic classes. +pydoctor 24.11.2 +^^^^^^^^^^^^^^^^ + +* Replace deprecated usage of ``datetime.datetime.utcfromtimestamp()`` + pydoctor 24.11.1 ^^^^^^^^^^^^^^^^ diff --git a/pydoctor/driver.py b/pydoctor/driver.py index 221d7de52..a396ff3f5 100644 --- a/pydoctor/driver.py +++ b/pydoctor/driver.py @@ -35,8 +35,8 @@ def get_system(options: model.Options) -> model.System: # Support source date epoch: # https://reproducible-builds.org/specs/source-date-epoch/ try: - system.buildtime = datetime.datetime.utcfromtimestamp( - int(os.environ['SOURCE_DATE_EPOCH'])) + system.buildtime = datetime.datetime.fromtimestamp( + int(os.environ['SOURCE_DATE_EPOCH']), datetime.UTC) except ValueError as e: error(str(e)) except KeyError: diff --git a/readthedocs.yml b/readthedocs.yml index 1a1beb95b..4c4644631 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -2,6 +2,7 @@ version: 2 sphinx: + configuration: docs/source/conf.py fail_on_warning: false build: