Skip to content

Releases: Rockhopper-Technologies/enlighten

1.12.4

25 Dec 21:42
Compare
Choose a tag to compare

Bug Fixes

  • Resize handler crashes when window height is reduced and manager has no counters #64

Changes

  • Resize handler now does line feeds when height is increased when not threaded
    • Previously only did when threaded
  • A warning is raised when closing a previously closed counter
    • Previously raised a non-specific error in some conditions
    • If the counter would normally be refreshed before closing, it will only refresh if still attached to manager, i.e. leave=True

Housekeeping

  • Pin Pip version in Tox to support older Python versions

1.12.3

13 Dec 23:36
Compare
Choose a tag to compare

Housekeeping

  • Fix API links in Read The Docs

1.12.2

28 Oct 14:13
Compare
Choose a tag to compare

Housekeeping

1.12.1

28 Oct 14:09
Compare
Choose a tag to compare

Bug Fixes

  • Minor doc fixes
    • Improved context manager example
    • Remove unexpected reference to enlighten.counter in example

Changes

  • Improved colors in multiprocessing example
  • Added error handling to multiprocessing example

1.12.0

24 Sep 20:55
Compare
Choose a tag to compare

Bugfixes

  • Elapsed time continued to increment after counter was closed #62
    • Elapsed time is now pinned to last time count changed if counter is stopped or count matches total
    • Thanks to @bedaberner for reporting
  • Seconds occasionally rounded up to 00:60 vs 01:00

Changes

  • Counter positions are now recalculated when a counter is removed
  • Color resolution is now cached
  • Direct use of Counter class now redirects to Manager.counter()
    • This allows the behavior to be consistant
    • Thanks to @ngriffiths13 for inspiration
  • Direct use of Counter class removed from documentation
    • Direct use of Counter class be refactored or removed in version 2.0
  • Counters and status bars can now be coerced to strings
    • Output is same as Counter.format() with default values
    • Does not apply to subcounters
  • Python 3.12 support added to metadata
  • Dropped support for Python 3.4
    • No code changes, but metadata and tests removed

Housekeeping

  • Minor code tweaks
  • Minor test cleanup
  • Demo gif updated
  • Specialist Tox environment added
  • Basic ASV benchmark script added

1.11.2

28 Jan 18:24
Compare
Choose a tag to compare

Bugfixes

  • NotebookManager raised exception if there were no counters when stop() was called #53

Changes

  • Python 3.11 support added to metadata

Housekeeping

  • Update tests for Prefixed 0.6.0
    • '!' flag now adds space after number even if there is no prefix added
  • Make Python 3.11 the base version for tests

1.11.1

10 Oct 18:26
Compare
Choose a tag to compare

Bugfixes

  • Wrong stream referenced in tests
  • Multiple bug fixes for utility classes used by NotebookManager
    • HTMLConverter: Don't test blink if not listed as supported on platform
    • HTMLConverter: Did not handle when term.normal was a single termcap
    • HTMLConverter: Friendly color names depended on the platform
      • Now friendly color names are always used for class names when available
    • HTMLConverter: Tests attempted to use a different term kind than other tests
    • Lookahead raised exception when iterator was empty

Changes

  • HTMLConverter: Termcap parsing is now cached to improve performance for multiple lookups.

1.11.0

29 Sep 13:05
Compare
Choose a tag to compare

Changes

  • Default to sys.__stdout__ instead of sys.stdout
    • For most this will be a no-op change since sys.stdout, by default, references sys.__stdout__
    • Should increase compatibility on platforms where stdout has been redirected such as #49

Housekeeping

  • Code tweaks and linting fixes

1.10.2

12 Dec 14:06
Compare
Choose a tag to compare

Changes

  • Curly braces in field names no longer have to be escaped #45

Bugfixes

  • Bytecode for examples and tests no longer included in sdist
  • companion_stream tests did not provide coverage in some test environments
  • TestManager.test_autorefresh failed on macOS #44

Housekeeping

  • Switched to GitHub Actions for testing
  • Fixes for Pylint changes

1.10.1

14 May 02:29
Compare
Choose a tag to compare

Bugfixes

  • Jupyter output order reversed
  • Special characters in Jupyter output not escaped
  • Demo example imports break depending on how it's called
  • Whitespace missing on PyPI readme