Skip to content

Commit

Permalink
Merge pull request #6 from dandi/py3.12
Browse files Browse the repository at this point in the history
Test against Python 3.12
  • Loading branch information
jwodder authored Dec 4, 2023
2 parents 8fd2186 + 59f0b67 commit d378bcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
python-version:
- '3.10'
- '3.11'
- '3.12'
toxenv: [py]
include:
- python-version: '3.10'
Expand Down
5 changes: 3 additions & 2 deletions src/backups2datalad/datasetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections.abc import AsyncGenerator, Sequence
from contextlib import aclosing
from dataclasses import dataclass, field
from datetime import datetime
from datetime import datetime, timezone
from functools import partial
import json
import logging
Expand Down Expand Up @@ -542,7 +542,8 @@ async def debug_logfile(self, quiet_debug: bool) -> None:
await self.ensure_superdataset()
logdir = self.config.dandiset_root / ".git" / "dandi" / "backups2datalad"
logdir.mkdir(exist_ok=True, parents=True)
filename = f"{datetime.utcnow():%Y.%m.%d.%H.%M.%SZ}.log"
ts = datetime.now(timezone.utc)
filename = f"{ts:%Y.%m.%d.%H.%M.%SZ}.log"
self.logfile = logdir / filename
handler = logging.FileHandler(self.logfile, encoding="utf-8")
handler.setLevel(logging.DEBUG)
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ filterwarnings =
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:the imp module is deprecated:DeprecationWarning
ignore:'cgi' is deprecated:DeprecationWarning
# <https://github.com/dateutil/dateutil/issues/1284>
ignore:.*utcfromtimestamp.* is deprecated:DeprecationWarning:dateutil

[coverage:run]
branch = True
Expand Down

0 comments on commit d378bcd

Please sign in to comment.