From fd56e6973efa68b350132a57d3d51747ae22b5cc Mon Sep 17 00:00:00 2001 From: Stephen Bunn Date: Thu, 7 Jan 2021 12:36:16 -0500 Subject: [PATCH] Release v0.5.0 Signed-off-by: Stephen Bunn --- CHANGELOG.rst | 25 ++++++++++++++++++- ...ing-values-to-string-automatically.feature | 3 --- pyproject.toml | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) delete mode 100644 changes/casting-values-to-string-automatically.feature diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fdf9608..4d8f8c6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,13 +8,36 @@ Changelog .. towncrier release notes start +`0.5.0 `_ (*2021-01-07*) +==================================================================================== + +Features +-------- + +- Automatically casting values applied to :class:`~chalky.chalk.Chalk` to strings. + This will fix issues where the user wants to easily use an instance of some class in a + templated string without having to cast it to a string themselves. + + .. code-block:: python + :linenos: + + from chalky import fg + + class MyObject: + + def __str__(self) -> str: + return f"{self.__class__.__qualname__!s}()" + + print(fg.green | MyObject()) + + `0.4.0 `_ (*2020-12-28*) ==================================================================================== Features -------- -- Consuming the current chain's styles and colors if :method:`~.chain.Chain.chalk` is consumed. +- Consuming the current chain's styles and colors if :meth:`~.chain.Chain.chalk` is consumed. This helps with constructing reusable styles with the chaining syntax: .. code-block:: python diff --git a/changes/casting-values-to-string-automatically.feature b/changes/casting-values-to-string-automatically.feature deleted file mode 100644 index 14c1966..0000000 --- a/changes/casting-values-to-string-automatically.feature +++ /dev/null @@ -1,3 +0,0 @@ -Automatically casting values applied to :class:`~chalky.chalk.Chalk` to strings. -This will fix issues where the user wants to easily use an instance of some class in a -templated string without having to cast it to a string themselves. diff --git a/pyproject.toml b/pyproject.toml index 2be6c98..352b68d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "chalky" -version = "0.4.0" +version = "0.5.0" description = "Simple ANSI terminal text coloring" authors = ["Stephen Bunn "] maintainers = []