From d21aa80b441fb46361386c44f92985b4921b9b8b Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Tue, 8 Feb 2022 12:47:09 +0200 Subject: [PATCH 1/2] Add changelog for v2.0.1 --- CHANGELOG.md | 12 ++++++++++++ README.md | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f6e1c6..ba430cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 2.0.1 + +- Improve + - Make bundling easier by using relative imports internally and adding license and copyright notice to source files. + - Make error messages more uniform + - Raise a friendly `TypeError` for wrong file mode + - Allow `parse_float` to return objects having the `append` attr + - Eagerly raise an error if `parse_float` returns an illegal type +- Packaging + - Move from `pytest` testing framework to `unittest` and remove `python-dateutil` test dependency. + Tests now only require Python interpreter. + ## 1.2.3 - Fixed diff --git a/README.md b/README.md index 353f035..2c856b4 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,8 @@ except tomli.TOMLDecodeError: print("Yep, definitely not valid.") ``` -Note that while the `TOMLDecodeError` type is public API, error messages of raised instances of it are not. -Error messages should not be assumed to stay constant across Tomli versions. +Note that error messages are considered informational only. +They should not be assumed to stay constant across Tomli versions. ### Construct `decimal.Decimal`s from TOML floats From 36ef51d6a5a55e0eca077b58695390d041061bd4 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Tue, 8 Feb 2022 12:50:27 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=202.0.0=20=E2=86=92=202.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- pyproject.toml | 2 +- src/tomli/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 911692f..b00d23a 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -2,7 +2,7 @@ commit = True tag = True tag_name = {new_version} -current_version = 2.0.0 +current_version = 2.0.1 [bumpversion:file:pyproject.toml] search = version = "{current_version}" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT diff --git a/pyproject.toml b/pyproject.toml index 9220a69..adcf366 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" [project] name = "tomli" -version = "2.0.0" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +version = "2.0.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT description = "A lil' TOML parser" authors = [ { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" }, diff --git a/src/tomli/__init__.py b/src/tomli/__init__.py index 34b0b40..4c6ec97 100644 --- a/src/tomli/__init__.py +++ b/src/tomli/__init__.py @@ -3,7 +3,7 @@ # Licensed to PSF under a Contributor Agreement. __all__ = ("loads", "load", "TOMLDecodeError") -__version__ = "2.0.0" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +__version__ = "2.0.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT from ._parser import TOMLDecodeError, load, loads