JakobGM / astrality

Astrality - A modular and dynamic configuration file manager
https://astrality.readthedocs.io
MIT License
98 stars 3 forks source link

Update humanfriendly to 4.17 #121

Closed pyup-bot closed 5 years ago

pyup-bot commented 5 years ago

This PR updates humanfriendly from 4.12.1 to 4.17.

Changelog ### 4.17 ``` ---------------------------- - Add Python 3.7 to versions tested on Travis CI and using ``tox`` and document compatibility with Python 3.7. - Add rudimentary caching decorator for functions: Over the years I've used several variations on this function in multiple projects and I'd like to consolidate all of those implementations into a single one that's properly tested and documented. Due to the simplicity and lack of external dependencies it seemed kind of fitting to include this in the ``humanfriendly`` package, which has become a form of extended standard library for my Python projects πŸ˜‡. .. _Release 4.17: https://github.com/xolox/python-humanfriendly/compare/4.16.1...4.17 ``` ### 4.16.1 ``` ------------------------------ Yet another ANSI to HTML improvement: Emit an ANSI reset code before emitting ANSI escape sequences that change styles, so that previously activated styles don't inappropriately "leak through" to the text that follows. .. _Release 4.16.1: https://github.com/xolox/python-humanfriendly/compare/4.16...4.16.1 ``` ### 4.16 ``` ---------------------------- More HTML to ANSI improvements: - Added ``humanfriendly.text.compact_empty_lines()`` function. - Enable optional ``html_to_ansi(data[, callback])`` argument. - Added a code sample and screenshot to the ``HTMLConverter`` documentation. - Emit vertical whitespace for block tags like ``<div>``, ``<p>`` and ``<pre>`` and post-process the generated output in ``__call__()`` to compact empty lines. - Don't pre-process preformatted text using the user defined text callback. - Improve robustness against malformed HTML (previously an ``IndexError`` would be raised when a closing ``</a>`` tag was encountered without a corresponding opening ``<a>`` tag). - Emit an ANSI reset code when ``HTMLConverter.close()`` is called and a style is still active (improves robustness against malformed HTML). .. _Release 4.16: https://github.com/xolox/python-humanfriendly/compare/4.15.1...4.16 ``` ### 4.15.1 ``` ------------------------------ Bug fixes for HTML to ANSI conversion. HTML entities were being omitted from conversion because I had neglected to define the ``handle_charref()`` and ``handle_entityref()`` methods (whose definitions are so conveniently given in the documentation of the ``HTMLParser`` class πŸ˜‡). .. _Release 4.15.1: https://github.com/xolox/python-humanfriendly/compare/4.15...4.15.1 ``` ### 4.15 ``` ---------------------------- Added the ``ansi_to_html()`` function which is a shortcut for the ``HTMLConverter`` class that's based on ``html.parser.HTMLParser``. This new functionality converts HTML with simple text formatting tags like ``<b>`` for bold, ``<i>`` for italic, ``<u>`` for underline, ``<span>`` for colors, etc. to text with ANSI escape sequences. I'm still working on that awesome new project (update: see chat-archive_), this functionality was born there but seemed like a useful addition to the ``humanfriendly`` package, given the flexibility that this provides πŸ˜‡. .. _Release 4.15: https://github.com/xolox/python-humanfriendly/compare/4.14...4.15 ``` ### 4.14 ``` ---------------------------- Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color. .. _Release 4.14: https://github.com/xolox/python-humanfriendly/compare/4.13...4.14 ``` ### 4.13 ``` ---------------------------- Support for *italic* text rendering on the terminal. I'm working on an awesome new project (update: see chat-archive_) that's almost ready to publish, but then I noticed that I couldn't render italic text on the terminal using the humanfriendly package. I checked and sure enough my terminal supported it just fine, so I didn't see any reason not to fix this now πŸ˜‡. .. _Release 4.13: https://github.com/xolox/python-humanfriendly/compare/4.12.1...4.13 .. _chat-archive: https://chat-archive.readthedocs.io/ ```
Links - PyPI: https://pypi.org/project/humanfriendly - Changelog: https://pyup.io/changelogs/humanfriendly/ - Docs: https://humanfriendly.readthedocs.io
coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 744


Files with Coverage Reduction New Missed Lines %
astrality/module.py 3 97.38%
<!-- Total: 3 -->
Totals Coverage Status
Change from base Build 553: -0.07%
Covered Lines: 4405
Relevant Lines: 4500

πŸ’› - Coveralls