Skip to content

Releases: neithere/argh

v0.30.0-alpha

21 Oct 20:20
3cb9261
Compare
Choose a tag to compare
v0.30.0-alpha Pre-release
Pre-release

What's Changed

Full Changelog: v0.29.4...v0.30.0-alpha

v0.29.4

23 Sep 15:49
Compare
Choose a tag to compare

Bugs fixed:

  • Test coverage reported as <100% when argcomplete is installed (#187)

v0.29.3

03 Sep 16:14
Compare
Choose a tag to compare

This is a technical release for packaging purposes.

v0.29.2

03 Sep 15:58
Compare
Choose a tag to compare

This is a technical release for packaging purposes.

v0.29.1

03 Sep 15:49
Compare
Choose a tag to compare

This is a technical release for packaging purposes.

v0.29.0

03 Sep 14:59
4ee7fd5
Compare
Choose a tag to compare

What's Changed

Backwards incompatible changes:

  • Wrapped exceptions now cause dispatching.dispatch() to raise SystemExit(1)
    instead of returning without error. For most users, this means failed commands
    will now exit with a failure status instead of a success (by @ekimekim in #161).

Deprecated:

  • Renamed arguments in add_commands() (#165 / #178):

    • namespacegroup_name
    • namespace_kwargsgroup_kwargs

    The old names are deprecated and will be removed in v.0.30.

Enhancements:

  • Can control exit status (see Backwards Incompatible Changes above) when raising
    CommandError using the code keyword arg.

Bugs fixed:

  • Positional arguments should not lead to removal of short form of keyword argument by @neithere in #181

Other changes:

  • Avoid depending on iocapture by using pytest's built-in feature by @mr-c in #177
  • chore: publishing to prod PyPI by @neithere in #173
  • test: add coverage for action="count" (#127) by @neithere in #183

New Contributors

Full Changelog: v0.28.1...v0.29.0

v0.28.1

16 Feb 13:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.28.0...v0.28.1

Thanks to everyone who reported

v.0.28.0

15 Feb 18:50
2fcdd47
Compare
Choose a tag to compare

A major modernisation and cleanup.

Backward incompatible changes:

  • Dropped support for Python 2.7 and 3.7.

Deprecated features, to be removed in v.0.30:

  • argh.assembling.SUPPORTS_ALIASES.

    • Always True for recent versions of Python.
  • argh.io.safe_input() AKA argh.interaction.safe_input().

    • Not relevant anymore. Please use the built-in input() instead.
  • argument pre_call in dispatch().

    Even though this hack seems to have been used in some projects, it was never part of the official API and never recommended.

    Describing your use case in the discussion about shared arguments (#63) can help improve the library to accomodate it in a proper way.

  • Argument help as annotations.

    • Annotations will only be used for types after v.0.30.
    • Please replace any instance of:
      def func(foo: "Foobar"):
      
      with the following::
      @arg('-f', '--foo', help="Foobar")
      def func(foo):
      
      It will be decided later how to keep this functionality "DRY" (don't repeat yourself) without conflicts with modern conventions and tools.
  • Added deprecation warnings for some arguments deprecated back in v.0.26.

Full Changelog: v0.27.2...v0.28.0

v0.27.2

09 Feb 18:27
Compare
Choose a tag to compare

Minor packaging fix:

  • chore: include file required by tox.ini in the sdist (#155)

v0.27.1

09 Feb 00:55
Compare
Choose a tag to compare

Minor building and packaging fixes:

  • docs: add Read the Docs config (#160)
  • chore: include tox.ini in the sdist (#155)

Contributors:

@mtelka (#155)