From 44cbc418c4b53c06ad5428d225254590e4e68aff Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Tue, 1 Dec 2020 01:05:27 +0100 Subject: [PATCH] Release 9.0: Assorted bug fixes & enhancements See the changelog update for details. This fixes #30, #40 and #43. --- CHANGELOG.rst | 29 +++++++++++++++++++++++++++++ humanfriendly/__init__.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d63c173..a687a1b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,35 @@ Changelog`_. This project adheres to `semantic versioning`_. .. _Keep a Changelog: http://keepachangelog.com/ .. _semantic versioning: http://semver.org/ +`Release 9.0`_ (2020-12-01) +--------------------------- + +The major version number was bumped because the bug fix for +:func:`~humanfriendly.text.pluralize()` is backwards incompatible +and (even though this seems like very "cosmetic" functionality) +version numbers are cheap, so who cares 😉. + +**Bug fixes:** + +- Changed :func:`~humanfriendly.format_number()` to properly support negative + numbers (as suggested in `issue #40`_). + +- Changed :func:`~humanfriendly.text.pluralize()` to generate "1.5 seconds" + instead of "1.5 second" (as suggested in `issue #43`_). + +**Enhancements:** + +- Enhanced :func:`~humanfriendly.text.concatenate()` to support ``conjunction`` + and ``serial_comma`` keyword arguments (as suggested in `issue #30`_). + +- Added :func:`~humanfriendly.text.pluralize_raw()` to select singular or + plural form without prefixing the count to the text that is returned. + +.. _Release 9.0: https://github.com/xolox/python-humanfriendly/compare/8.2...9.0 +.. _issue #30: https://github.com/xolox/python-humanfriendly/issues/30 +.. _issue #40: https://github.com/xolox/python-humanfriendly/issues/40 +.. _issue #43: https://github.com/xolox/python-humanfriendly/issues/43 + `Release 8.2`_ (2020-04-19) --------------------------- diff --git a/humanfriendly/__init__.py b/humanfriendly/__init__.py index 3a04c64..d6d6e71 100644 --- a/humanfriendly/__init__.py +++ b/humanfriendly/__init__.py @@ -51,7 +51,7 @@ ) # Semi-standard module versioning. -__version__ = '8.2' +__version__ = '9.0' # Named tuples to define units of size. SizeUnit = collections.namedtuple('SizeUnit', 'divider, symbol, name')