Skip to content

Commit

Permalink
Release 9.0: Assorted bug fixes & enhancements
Browse files Browse the repository at this point in the history
See the changelog update for details.
This fixes #30, #40 and #43.
  • Loading branch information
xolox committed Dec 1, 2020
1 parent f4323c5 commit 44cbc41
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion humanfriendly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 44cbc41

Please sign in to comment.