Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Jan 20, 2021
1 parent 90d4257 commit efa697c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
------
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
22 changes: 22 additions & 0 deletions create_tag.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion freezegun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit efa697c

Please sign in to comment.