From efa697c35fc05021377d1bb0819305fe111d7572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Wed, 20 Jan 2021 08:36:23 +0100 Subject: [PATCH] 1.1.0 --- CHANGELOG | 11 +++++++++-- Makefile | 3 +++ create_tag.py | 22 ++++++++++++++++++++++ freezegun/__init__.py | 2 +- 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 create_tag.py diff --git a/CHANGELOG b/CHANGELOG index 974b3c84..9a4f624d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,15 @@ Freezegun Changelog =================== -Latest ------- +1.1.0 +----- + +* Add support for `time.monotonic` (and `…_ns`) + +* Allow to configure default ignore list, and also to just extend the default + +* Fixed when accessing from thread after stop() + 1.0.0 ------ diff --git a/Makefile b/Makefile index fb362e38..53245d5f 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ travis: tdaemon: tdaemon -t nose ./tests/ --custom-args="--with-growl" +tag: + python create_tag.py + publish: rm -rf dist python -m pep517.build --source --binary . diff --git a/create_tag.py b/create_tag.py new file mode 100644 index 00000000..16e2dfa5 --- /dev/null +++ b/create_tag.py @@ -0,0 +1,22 @@ +import os +import re + + +def read_version(): + with open(os.path.join('freezegun', '__init__.py')) as f: + m = re.search(r'''__version__\s*=\s*['"]([^'"]*)['"]''', f.read()) + if m: + return m.group(1) + raise ValueError("couldn't find version") + + +def create_tag(): + from subprocess import call + version = read_version() + errno = call(['git', 'tag', '--annotate', version, '--message', 'Version %s' % version]) + if errno == 0: + print("Added tag for version %s" % version) + + +if __name__ == '__main__': + create_tag() diff --git a/freezegun/__init__.py b/freezegun/__init__.py index d3511b88..70110932 100644 --- a/freezegun/__init__.py +++ b/freezegun/__init__.py @@ -10,7 +10,7 @@ from .config import configure __title__ = 'freezegun' -__version__ = '1.0.0' +__version__ = '1.1.0' __author__ = 'Steve Pulec' __license__ = 'Apache License 2.0' __copyright__ = 'Copyright 2012 Steve Pulec'