Commit Graph

6 Commits

Author SHA256 Message Date
Tomáš Chvátal
dcca492ebe - Update to 0.2.1:
* Improves robustness of docstring parser in the face of unexpected format docstrings. #183

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=11
2019-09-13 07:45:30 +00:00
Tomáš Chvátal
de4a206ce0 Accepting request 719771 from home:pgajdos
- version update to 0.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
- deleted patches
  - fix-issue-164.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/719771
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=9
2019-07-30 08:13:31 +00:00
91ed5f98a2 Accepting request 682932 from home:mcepl:branches:devel:languages:python
- Add fix-issue-164.patch patch to fix gh#google/python-fire#164
  and we can run whole test suite.

OBS-URL: https://build.opensuse.org/request/show/682932
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=7
2019-03-08 23:35:04 +00:00
0213cd3dad Accepting request 676204 from home:mcepl:branches:devel:languages:python
- Switch of tests testFireKeywordArgs, testFireObjectWithDict,
  testHelpStringBuiltin, and testGetFullArgSpecFromBuiltin
  gh#google/python-fire#164

OBS-URL: https://build.opensuse.org/request/show/676204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=5
2019-02-14 17:44:32 +00:00
Tomáš Chvátal
dda58c6ff3 - Simplify the tests call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=3
2019-01-02 12:50:38 +00:00
Todd R
66c7d33593 Accepting request 652719 from home:TheBlackCat:branches:devel:languages:python:misc
Required by python-fastTSNE

OBS-URL: https://build.opensuse.org/request/show/652719
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=1
2018-11-29 21:14:27 +00:00