diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2023-09-17 12:56:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-17 12:56:50 +0200 |
commit | 836e06d246512f286f30c1371b2c54b72c9ecd93 (patch) | |
tree | 1f492da9a5f245b7e96d5a1a45aeb643dd0d1a8d /devscripts/update-version.py | |
parent | 94389b225d9bcf29aa7ba8afaf1bbd7c62204eae (diff) |
[core] Fix support for upcoming Python 3.12 (#8130)
This also adds the following test runners:
- `3.12-dev` on `ubuntu-latest`
- `3.12-dev` on `windows-latest`
- `pypy-3.10` on `ubuntu-latest`
Authored by: Grub4K
Diffstat (limited to 'devscripts/update-version.py')
-rw-r--r-- | devscripts/update-version.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devscripts/update-version.py b/devscripts/update-version.py index c873d10a5..0144bd284 100644 --- a/devscripts/update-version.py +++ b/devscripts/update-version.py @@ -10,14 +10,14 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import argparse import contextlib import sys -from datetime import datetime +from datetime import datetime, timezone from devscripts.utils import read_version, run_process, write_file def get_new_version(version, revision): if not version: - version = datetime.utcnow().strftime('%Y.%m.%d') + version = datetime.now(timezone.utc).strftime('%Y.%m.%d') if revision: assert revision.isdigit(), 'Revision must be a number' |