- Update to 0.5.0:

* Support for custom serializers with fire.Fire(serializer=your_serializer)
  * Auto-generated help text now shows short arguments (e.g. -a) when
    appropriate
  * Default values are now shown in help for kwonly arguments
  * Completion script fix where previously completions might not show at all
- Refresh python-fire-no-mock.patch
- Add patch support-python-311.patch:
  * Support Python 3.11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=23
This commit is contained in:
2023-02-07 01:06:07 +00:00
committed by Git OBS Bridge
parent 8d5933759e
commit d5ea26c418
6 changed files with 75 additions and 51 deletions

14
support-python-311.patch Normal file
View File

@@ -0,0 +1,14 @@
Index: fire-0.5.0/fire/test_components_py3.py
===================================================================
--- fire-0.5.0.orig/fire/test_components_py3.py
+++ fire-0.5.0/fire/test_components_py3.py
@@ -57,8 +57,7 @@ def lru_cache_decorated(arg1):
class WithAsyncio(object):
- @asyncio.coroutine
- def double(self, count=0):
+ async def double(self, count=0):
return 2 * count