Skip to content

Update coloredlogs to 15.0.1 #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates coloredlogs from 10.0 to 15.0.1.

Changelog

15.0.1

------------------------------

Bug fix: Restore :class:`.StandardErrorHandler` functionality

The :class:`.StandardErrorHandler` class is responsible for dynamically
resolving (looking up the value of) sys.stderr for each logged message instead
of once when :func:`coloredlogs.install()` is called.

This was unintentionally broken by changes in `release 14.1`_.

.. _Release 15.0.1: https://github.com/xolox/python-coloredlogs/compare/15.0...15.0.1

15.0

----------------------------

Don't enable system logging on MacOS and Windows anymore.

This is backwards incompatible (which is why I'm bumping the major version
number) however the old behavior has been reported to be rather problematic
(see :func:`~coloredlogs.syslog.is_syslog_supported()` for details) so this
seems like the best choice.

.. _Release 15.0: https://github.com/xolox/python-coloredlogs/compare/14.2...15.0

14.3

----------------------------

Merged pull request `89`_ which enhances :func:`coloredlogs.install()` to
preserve the filters on handlers that are replaced by :pypi:`coloredlogs`.

.. _Release 14.3: https://github.com/xolox/python-coloredlogs/compare/14.2...14.3
.. _89: https://github.com/xolox/python-coloredlogs/pull/89

14.2

----------------------------

Honor the ``$NO_COLOR`` environment variable as suggested in issue `88`_.

.. _Release 14.2: https://github.com/xolox/python-coloredlogs/compare/14.1...14.2
.. _88: https://github.com/xolox/python-coloredlogs/issues/88

14.1

----------------------------

**Bug fixes:**

- Don't allow interactive terminal detection to disable colored text when
colored text is being forced by the caller (reported in issue `84`_).

- Automatically disable colored text when logging output is being redirected to
a file in such a way that it actually works 😬 (reported in issue `100`_).

**Other changes:**

- Start testing on PyPy 3 (because why not?)

.. _Release 14.1: https://github.com/xolox/python-coloredlogs/compare/14.0...14.1
.. _84: https://github.com/xolox/python-coloredlogs/issues/84
.. _100: https://github.com/xolox/python-coloredlogs/issues/100

14.0

----------------------------

Integrate native Windows 10 support for ANSI escape sequences (`71`_, `72`_).

Native support for ANSI escape sequences was added to Windows 10 after its
initial release, specifically in release 10.0.14393. I've now updated
:pypi:`coloredlogs` and :pypi:`humanfriendly` to detect and enable this "new"
native support.

Windows 10 seems to comprise the majority of Windows installations worldwide so
in the interest of "looking forward" I've decided to drop the :pypi:`colorama`
requirement, given that it has now become a minority use case.

Hopefully most existing users will not experience any regression because they
previously installed :pypi:`colorama` already, and when available it will still
be used. However new installations on older Windows systems now require users
to install :pypi:`colorama` separately. This has been documented in the readme
in an attempt to minimize resulting confusion.

PS. In case anyone is wondering: I decided that giving a major Windows support
update in :pypi:`coloredlogs` the version 13.0 was asking for trouble, so I
decided not to do that 😇.

.. _Release 14.0: https://github.com/xolox/python-coloredlogs/compare/12.0...14.0
.. _71: https://github.com/xolox/python-coloredlogs/issues/71
.. _72: https://github.com/xolox/python-coloredlogs/pull/72

12.0

----------------------------

Two backwards incompatible changes prompted another major version bump:

- Merged pull request `80`_ that drops support for Python 3.4 which
has gone end-of-life and now represents less than 1% of PyPI downloads.

- Improved compatibility with the Python standard library by changing
the order of positional arguments received by the initializer of the
:class:`~coloredlogs.ColoredFormatter` class (as suggested in `64`_
and `75`_).

.. _Release 12.0: https://github.com/xolox/python-coloredlogs/compare/11.3...12.0
.. _80: https://github.com/xolox/python-coloredlogs/pull/80
.. _64: https://github.com/xolox/python-coloredlogs/issues/64
.. _75: https://github.com/xolox/python-coloredlogs/issues/75

11.3

----------------------------

- Add support for the ``%(username)s`` field (requested in `76`_) and properly
document supported custom fields.

- Consistently use ``console`` highlighting in documentation.

- Fix a broken link in the readme.

.. _Release 11.3: https://github.com/xolox/python-coloredlogs/compare/11.2...11.3
.. _76: https://github.com/xolox/python-coloredlogs/issues/76

11.2

----------------------------

Merge pull request `79`_ which adds support for Python 3.8.

.. _Release 11.2: https://github.com/xolox/python-coloredlogs/compare/11.1...11.2
.. _79: https://github.com/xolox/python-coloredlogs/pull/79

11.1

----------------------------

Starting with the previous release I've resolved to try and tackle the large
number of open issues after an unplanned hiatus from the development and
maintenance of my open source projects, so here are some more bug fixes:

- Fix support for custom log record factories and add a test to avoid
regressions (`47`_, `59`_).

- Change ``make screenshots`` to be Python 3 compatible and document
additional requirements (`65`_).

.. _Release 11.1: https://github.com/xolox/python-coloredlogs/compare/11.0...11.1
.. _59: https://github.com/xolox/python-coloredlogs/issues/59
.. _65: https://github.com/xolox/python-coloredlogs/issues/65

11.0

----------------------------

This is a maintenance release that drops Python 2.6 support, adds Python 3.7
support and merges quite a few minor pull requests. The major version number
was bumped because of the compatibility changes.

**Merged pull requests:**

- `58`_: Don't import :mod:`coloredlogs` if ``$COLOREDLOGS_AUTO_INSTALL`` is
set but empty.

- `60`_: Fix :pypi:`flake8` messages to help stabilize Travis CI builds.

- `61`_: Drop support for Python 2.6 to help stabilize Travis CI builds.

- `62`_: Use SVG badge in README for consistency.

- `69`_: Handle negative-offset timezones in tests.

- `70`_: Use :func:`subprocess.check_call()` in the test suite to ensure that
external commands succeed.

- `74`_: Fix :exc:`~exceptions.TypeError` on MacOS on Python 3 in the
:mod:`~coloredlogs.converter` module.

**Other changes:**

- Start testing on Python 3.7 (and document compatibility).
- Workaround Python 3.7 regression in test suite.
- Update ``Makefile`` to use Python 3 for local development.
- Merge MacOS on Travis CI fixes from :pypi:`humanfriendly`.

.. _Release 11.0: https://github.com/xolox/python-coloredlogs/compare/10.0...11.0
.. _58: https://github.com/xolox/python-coloredlogs/pull/58
.. _60: https://github.com/xolox/python-coloredlogs/pull/60
.. _61: https://github.com/xolox/python-coloredlogs/pull/61
.. _62: https://github.com/xolox/python-coloredlogs/pull/62
.. _69: https://github.com/xolox/python-coloredlogs/pull/69
.. _70: https://github.com/xolox/python-coloredlogs/pull/70
.. _74: https://github.com/xolox/python-coloredlogs/pull/74
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant