Skip to content

Releases: int-brain-lab/tycmd-wrapper

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 19:36
Immutable release. Only release title and notes can be modified.
a085132

What's Changed

  • Pin the upstream rygel commit for the bundled tycmd binary by @bimac in #22
  • Pin CI dependencies and harden the tycmd build by @bimac in #23
  • Publish with provenance attestations on PyPI and GitHub Releases by @bimac in #25

Full Changelog: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 17:43
01b110c

Added

  • TycmdError, a subprocess.CalledProcessError raised whenever tycmd fails - its message is
    tycmd's own error message
  • Board type for the entries returned by list_boards(), and Capability, BoardAction and
    RtcMode type aliases
  • warnings from tycmd are logged as they occur, and requests to press the board's button are
    always logged as warnings, regardless of log_level

Changed

  • breaking: options of upload() and reset() are keyword-only, and upload()'s
    reset_board and rtc_mode arguments are renamed to reset and rtc
  • breaking: failing tycmd calls raise TycmdError instead of ChildProcessError
  • breaking: identify() raises ValueError if tycmd can't load the firmware file
  • breaking: version() raises RuntimeError if the version can't be determined
  • breaking: upload() raises ValueError for an invalid rtc value
  • breaking: only the tycmd binary bundled with tycmd-wrapper is used - there is no fallback to
    a tycmd on the PATH anymore
  • list_boards() always includes serial and description, set to None if a board doesn't
    report them
  • FileNotFoundError and IsADirectoryError for firmware files carry errno and filename
  • tycmd's output is decoded as UTF-8, independent of the system's locale
  • tycmd is killed if a call is interrupted (e.g. by KeyboardInterrupt) instead of being waited
    for
  • tycmd-wrapper is a package (tycmd/) instead of a single module
  • improved typehints
  • simplified workflow for publishing to PyPI

Removed

  • support for .ehex firmware files, which the bundled tycmd 0.9.9 can't load

Fixed

  • version() returns the complete version string, including suffixes such as -beta.2
  • board tags are stripped from every line of tycmd's output, including tags of boards without a
    serial number, of secondary interfaces and of generic boards
  • identify() handles backslashes, tabs and newlines in firmware filenames
  • type checkers now pick up the py.typed marker

Full Changelog: v0.3.1...v0.4.0

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 27 Sep 15:11
63b344d

Changed

  • dropped platform whitelist from the build script

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@bimac bimac released this 27 Sep 14:30
846d8b0

Changed

  • macOS now ships as two separate, correctly-tagged wheels (macosx_11_0_arm64 and macosx_11_0_x86_64) instead of a single x86_64-only wheel, fixing installation on Apple Silicon
  • Linux arm64 is now a published wheel target
  • the tycmd binary is no longer committed to the repository; it's built from source during CI (and on demand for local installs) instead

Full Changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@bimac bimac released this 06 Aug 12:47
7c3a004

Changed

  • changed default log-level for reset() and upload() to INFO
  • added a few examples to README.md

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@bimac bimac released this 06 Aug 10:09
85dd12d

Added

  • upload() method for uploading firmware file
  • status messages will be sent to log

Changed

  • moved 'port' kwarg ahead of 'serial'
  • raise ChildProcessError instead of RuntimeError

Full Changelog: v0.1.2...v0.2.0

v0.1.2

v0.1.2 Pre-release
Pre-release

Choose a tag to compare

@bimac bimac released this 11 Jul 20:36
eacc82f

Changed

  • dropped 'verbose' argument from list_boards()
  • dropped 'full' argument from version()

Full Changelog: v0.1.1...v0.1.2

v0.1.1

v0.1.1 Pre-release
Pre-release

Choose a tag to compare

@bimac bimac released this 11 Jul 20:36
3fc8022

Added

  • identify() method for identifying a firmware file

Full Changelog: v0.1.0...v0.1.1

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@bimac bimac released this 11 Jul 20:35