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/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 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