Skip to content

Commit

Permalink
Merge branch 'master' into 846-typing-Generic-in-MRO
Browse files Browse the repository at this point in the history
tristanlatr authored Jan 14, 2025

Unverified

No user is associated with the committer email.
2 parents 0f32429 + 02063d3 commit 63a2044
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
@@ -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
^^^^^^^^^^^^^^^^

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

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

build:

0 comments on commit 63a2044

Please sign in to comment.