cli2 2.6.2__tar.gz → 2.6.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {cli2-2.6.2/cli2.egg-info → cli2-2.6.3}/PKG-INFO +5 -1
  2. {cli2-2.6.2 → cli2-2.6.3}/cli2/argument.py +1 -1
  3. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_command.py +3 -3
  4. {cli2-2.6.2 → cli2-2.6.3/cli2.egg-info}/PKG-INFO +5 -1
  5. {cli2-2.6.2 → cli2-2.6.3}/setup.py +1 -1
  6. {cli2-2.6.2 → cli2-2.6.3}/MANIFEST.in +0 -0
  7. {cli2-2.6.2 → cli2-2.6.3}/README.rst +0 -0
  8. {cli2-2.6.2 → cli2-2.6.3}/classifiers.txt +0 -0
  9. {cli2-2.6.2 → cli2-2.6.3}/cli2/__init__.py +0 -0
  10. {cli2-2.6.2 → cli2-2.6.3}/cli2/cli.py +0 -0
  11. {cli2-2.6.2 → cli2-2.6.3}/cli2/colors.py +0 -0
  12. {cli2-2.6.2 → cli2-2.6.3}/cli2/command.py +0 -0
  13. {cli2-2.6.2 → cli2-2.6.3}/cli2/decorators.py +0 -0
  14. {cli2-2.6.2 → cli2-2.6.3}/cli2/entry_point.py +0 -0
  15. {cli2-2.6.2 → cli2-2.6.3}/cli2/group.py +0 -0
  16. {cli2-2.6.2 → cli2-2.6.3}/cli2/node.py +0 -0
  17. {cli2-2.6.2 → cli2-2.6.3}/cli2/table.py +0 -0
  18. {cli2-2.6.2 → cli2-2.6.3}/cli2/test.py +0 -0
  19. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_cli.py +0 -0
  20. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_decorators.py +0 -0
  21. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_entrypoint.py +0 -0
  22. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_group.py +0 -0
  23. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_inject.py +0 -0
  24. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_node.py +0 -0
  25. {cli2-2.6.2 → cli2-2.6.3}/cli2/test_table.py +0 -0
  26. {cli2-2.6.2 → cli2-2.6.3}/cli2.egg-info/SOURCES.txt +0 -0
  27. {cli2-2.6.2 → cli2-2.6.3}/cli2.egg-info/dependency_links.txt +0 -0
  28. {cli2-2.6.2 → cli2-2.6.3}/cli2.egg-info/entry_points.txt +0 -0
  29. {cli2-2.6.2 → cli2-2.6.3}/cli2.egg-info/requires.txt +0 -0
  30. {cli2-2.6.2 → cli2-2.6.3}/cli2.egg-info/top_level.txt +0 -0
  31. {cli2-2.6.2 → cli2-2.6.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cli2
3
- Version: 2.6.2
3
+ Version: 2.6.3
4
4
  Summary: image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
5
5
  Home-page: https://yourlabs.io/oss/cli2
6
6
  Author: James Pic
@@ -9,7 +9,11 @@ License: MIT
9
9
  Keywords: cli
10
10
  Requires-Python: >=3.6
11
11
  Description-Content-Type: text/x-rst
12
+ Requires-Dist: docstring_parser==0.7.1
12
13
  Provides-Extra: test
14
+ Requires-Dist: freezegun; extra == "test"
15
+ Requires-Dist: pytest; extra == "test"
16
+ Requires-Dist: pytest-cov; extra == "test"
13
17
 
14
18
  .. image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
15
19
  :target: https://yourlabs.io/oss/cli2/pipelines
@@ -285,7 +285,7 @@ class Argument:
285
285
 
286
286
  def aliasmatch(self, arg):
287
287
  """Return True if the CLI arg matches an alias of this argument."""
288
- if arg == self.negate:
288
+ if arg in self.negates:
289
289
  return True
290
290
  if self.iskw and self.param.annotation == bool and arg in self.alias:
291
291
  return True
@@ -141,12 +141,12 @@ def test_bool_flag():
141
141
 
142
142
 
143
143
  def test_bool_flag_posix():
144
- def foo(hi: bool = None): return hi
144
+ def foo(fuzz=None, hi: bool = None): return hi
145
145
  cmd = Command(foo, posix=True)
146
+ assert cmd('-nh') is False
147
+ assert cmd('--no-hi') is False
146
148
  assert cmd('--hi') is True
147
149
  assert cmd('-h') is True
148
- assert cmd('--no-hi') is False
149
- assert cmd('-nh') is False
150
150
 
151
151
 
152
152
  def test_bool_flag_negate():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cli2
3
- Version: 2.6.2
3
+ Version: 2.6.3
4
4
  Summary: image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
5
5
  Home-page: https://yourlabs.io/oss/cli2
6
6
  Author: James Pic
@@ -9,7 +9,11 @@ License: MIT
9
9
  Keywords: cli
10
10
  Requires-Python: >=3.6
11
11
  Description-Content-Type: text/x-rst
12
+ Requires-Dist: docstring_parser==0.7.1
12
13
  Provides-Extra: test
14
+ Requires-Dist: freezegun; extra == "test"
15
+ Requires-Dist: pytest; extra == "test"
16
+ Requires-Dist: pytest-cov; extra == "test"
13
17
 
14
18
  .. image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
15
19
  :target: https://yourlabs.io/oss/cli2/pipelines
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
 
4
4
  setup(
5
5
  name='cli2',
6
- version='2.6.2',
6
+ version='2.6.3',
7
7
  setup_requires='setupmeta',
8
8
  install_requires=['docstring_parser==0.7.1'],
9
9
  extras_require=dict(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes