Skip to content

Commit

Permalink
Merge branch 'master' into 801-signature-spans
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr authored Jan 14, 2025
2 parents a37b028 + 02063d3 commit 8b24212
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ in development
* The first parameter of classmethods and methods (``cls`` or ``self``) is colored in gray so it's clear that these are not part of the API.
* When pydoctor encounters an invalid signature, it shows (…) as the signature instead of the misleading zero argument signature.

pydoctor 24.11.2
^^^^^^^^^^^^^^^^

* Replace deprecated usage of ``datetime.datetime.utcfromtimestamp()``

pydoctor 24.11.1
^^^^^^^^^^^^^^^^

Expand Down
4 changes: 2 additions & 2 deletions pydoctor/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
version: 2

sphinx:
configuration: docs/source/conf.py
fail_on_warning: false

build:
Expand Down

0 comments on commit 8b24212

Please sign in to comment.