Skip to content

Releases: byexamples/byexample

9.2.0

24 Jun 15:07
215100a
Compare
Choose a tag to compare

Changes from previous version:

Enhancements

  • new option: +force-echo-filtering, allow the user to force
    the echo filtering needing in some cases. It is an experimental
    feature (see 451b218)

Fixes

  • fix the zone finder for python modules (docstring): now find the
    examples only in docstrings and in the strings at the module level
    (see 6bc53be)

Others

9.1.1

15 Jun 14:00
Compare
Choose a tag to compare

Changes from previous version:

Enhancements

  • Support Python 3.8 and 3.9 (issue #116)

Others

  • Enforce disable cache for Python 3.8 and up. This is an undocumented feature that never left the 'experimental'.

9.1.0

28 Jan 02:07
Compare
Choose a tag to compare

Changes from previous version:

Enhancements

  • new option: +input, allow the user to type input in a running example
    (1070aa4, 72e6cb9) (closes #78)
  • InputPrefixNotFound subclass of Timeout exception (ce3f7a9)
  • new option: +input-prefix-range, control min/max prefix required for
    inputs (bd28195)
  • minor enhancements in the log's comments (20a07ab)

Incompatible changes (lib)

  • _expect_prompt can wait for other things than prompts (3174d48)
  • track remaining time with Countdown (5f995f, 895537f, cc1f475,
    911719e)
  • capture_tag_regexs now returns a namedtuple (5985e6d)
    Others
  • refactor and code relocation of Example/Where/Zone (6935cf9)
  • _exec_and_wait now receive the example as a context (6b862ee)
  • other renames (8278a74)

9.0.1

31 Dec 01:50
Compare
Choose a tag to compare

Changes from previous version:

Enhancements

  • Configure the prompts (and pretty printer) of Python after
    initialized the interpreter (#106)
  • Allow byexample to use Django's manage.py shell (#105)

Others:

  • Reformat the source code to follow the PEP 8 using yapf. Now this is
    part of the automated tests to keep the code in good shape. (f4d2af6,
    d92e601)

9.0.0

08 Dec 20:32
Compare
Choose a tag to compare

This is the point where byexample officially drops support for
Python 2.7.

Changes from previous version:

Fixes

  • Fix recover mechanism (not always worked), still not perfect. (b48c4ae)

Enhancements

  • Allow to wait for a custom prompt during the spawn (84b6d5e)
  • PHP interpreter (experimental) (eedb025)
  • Elixir interpreter (experimental) (8462de1, 1fce7ec)
  • Refactor get output without echoed input (C++ and PHP) (2e4cfd1)
  • Several enhancements in the log systems.

Incompatible changes (examples)

  • Byexample does not longer support Python 2.7 (2.x). Python 2.7 will reach
    to its end of life on January 1st 2020. Due this, having magical code in
    the PythonRunner to mask and hide the difference between Python 2.x's
    str and unicodes and 3.x's bytes and str has little value: the
    str/unicode/bytes marker are not hidden anymore and the "b'" bytes
    marker will be visible again.

Incompatible changes (lib)

  • Remove common.log (API break) (f7bdda6) (#96)
  • Send the formatted logs to Progress; don't format in Progress
    (lib-level incompatible change) (8d34657) (#96)
  • Use clog instead of log (lib-level incompatible change) (b036798)
    (#96)

Others:

  • Specialized Dockerfile to set up an environment with all the
    interpreters supported by byexample, ready to run the tests.
  • Several fixes in the documentation (thanks @matt17r)
  • Several hacks were removed now that we support only one version of
    Python.

8.1.3

03 Aug 13:06
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • The License is packaged with the code (#89)
  • Alternative impl for fcntl in Window envs (#90)
  • Warn if the experimental and hidden RegexCache is used

8.1.2

12 Jul 00:29
Compare
Choose a tag to compare

Changes from previous version:
Enhancements

  • Enhance some messages to the user
  • Update the project url to point to github page and not the repo

8.1.1

24 Jun 02:44
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • Disable edit/readline feature (autocompletion and others) for Bash
    (shell module). (fixes #87)

8.1.0

05 Mar 15:45
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • Fixed typo of class name PexepctMixin, replaced by PexpectMixin
    (57452bd). Backward compatibility layer implemented in 7eafbb3.
  • Fixed undefined sh shell and set to bash (3c3f59b).
  • Default implementation for the __init__ of Concern (de26777).

Enhancements

  • Allow to change the shell with some predefined options: bash, dash,
    ksh (3c3f59b) with the new +shell option.
  • Add better logs for the initial phases of byexample: modules load
    and parsing options (b6b371c, part of issue #66 ).
  • Experimental Conditional Execution (a module) to allow to skip
    or not an example based on a condition (797052f). Introduces
    the +if, +on and +unless options.
  • Restricted the set of possible characters for a tag name to letters,
    numbers, minus and dot symbols; the names must starts with a letter or a
    dot (a5707d4). The : symbol is allowed too but reserved for future
    uses. Related to issue #32 .
  • Auto hide the non-printable replacement in the enhanced diff
    (ec24b30), closes #58.
  • Warn about non-printable char replaced that could be confused
    (add2a0b), closes #30.
  • Improved how the diff are shown (ec24b30, add2a0b).
  • Allow call external diff program (c210b5b). Enable this with
    --diff tool and set the diff command line with --difftool <cmd>.
    Closes #20.

Documentation:

Potential incompatible changes (examples)

  • In Debian/Ubuntu based distros, sh is a symlink to dash. In
    byexample 8.1.0, sh is replaced by bash which it could break
    some examples. See the comments in 3c3f59b for a full explanation.
    In any case the incompatible changes should be easy to fix and if not,
    the user can force to rollback to dash with the option +shell=dash.
    For Red Hat/Fedora based distros, sh is a symlink to bash so
    it should be ok.

8.0.1

19 Feb 13:26
Compare
Choose a tag to compare

Changes from previous version:
Fixes

  • Printing a utf-8 example when byexample's output is redirected to a
    file fails in Python 2.7 (fixes #80)