Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Bump fire from 0.1.3 to 0.2.1 #1

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

Conversation

dependabot-preview[bot]
Copy link

Bumps fire from 0.1.3 to 0.2.1.

Release notes

Sourced from fire's releases.

v0.2.1

Bug fixes

  • Improves robustness of docstring parser in the face of unexpected format docstrings. #183

v0.2.0

Python Fire v0.2.0

If you're new to Python Fire:

  1. Welcome! 🎉
  2. Fire automatically generates command line interfaces from any Python object you give it. 🔥

e.g. You can call Fire on a function, as in this example (but you can also call Fire on anything else: classes, objects, dicts, etc. -- they all work.)

def hello(name="World"):
  return "Hello %s!" % name

fire.Fire(hello)
hello.py --name=David  # Hello David!

pip install fire to get started.

Improvements in v0.2.0

  • Help and usage screens
    Help screens now have a man-page appearance and are shown with less-style pagination. Usage screens are shown when a user-error is encountered. The help and usage screens are considerably cleaner than the default output in previous versions of Fire.
  • Custom serialization
    If you define a custom __str__ method on an object, that will be used to serialize the object when it is the final result of a Fire command. This means better support for numpy arrays, and better support for custom types.
  • Docstring parsing
    Notably, docstrings are parsed in order to determine the descriptions to use for arguments in the help screens. We largely support (but not fully) Google, numpy, and RST style docstrings. These are the three most common styles of docstring used in Python code.
  • Access --help naturally
    You no longer need to separate --help from your command with an extra --. Simply running command -h or command --help will give help, provided there isn't an argument named help in your component.
  • NamedTuples can be indexed both by their field names and by their indexes.
  • Callable objects can both be called, and their members can be accessed.
    You must use flag syntax to call a callable object; you cannot pass their arguments positionally.
  • Single-hyphen flags are supported
    You can now specify -flag instead of --flag if preferred. Both work.
  • Short-flags are permitted when their use is unambiguous
    E.g. if your function has argument alpha, then you can specify its value with -a.
  • Fish completion support
Commits
  • c1a7e2f Set version to 0.2.1.
  • 0fa5c42 robustify docstring parser to blank lines after section starts. Resolves http...
  • a54ef58 Adds BinaryCanvas as test component.
  • d774539 make pytype happy w/ str feature.
  • 18ba635 Allow custom types to define their own serialization with str.
  • 9629074 Triple double-quotes, not triple single-quotes and linter error for callable...
  • 86e2c35 Set version to 0.2.0.
  • 88f3923 enable test for callable object usage
  • 05080ec Don't show properties on uninstantiated classes outside verbose mode / comple...
  • 8de8836 Support for callable objects in usage test. Refactor of usage text.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [fire](https://github.com/google/python-fire) from 0.1.3 to 0.2.1.
- [Release notes](https://github.com/google/python-fire/releases)
- [Commits](google/python-fire@v0.1.3...v0.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants