cli2 5.0.0rc13__tar.gz → 5.0.0rc15__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 (52) hide show
  1. {cli2-5.0.0rc13/cli2.egg-info → cli2-5.0.0rc15}/PKG-INFO +5 -1
  2. {cli2-5.0.0rc13 → cli2-5.0.0rc15/cli2.egg-info}/PKG-INFO +5 -1
  3. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2.egg-info/requires.txt +6 -0
  4. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/setup.py +3 -1
  5. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_ansible_variables.py +14 -7
  6. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/MANIFEST.in +0 -0
  7. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/README.rst +0 -0
  8. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/classifiers.txt +0 -0
  9. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/__init__.py +0 -0
  10. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/asyncio.py +0 -0
  11. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/cli.py +0 -0
  12. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/cli2.py +0 -0
  13. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/colors.py +0 -0
  14. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/configuration.py +0 -0
  15. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/decorators.py +0 -0
  16. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/display.py +0 -0
  17. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/__init__.py +0 -0
  18. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/conf.py +0 -0
  19. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/example.py +0 -0
  20. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/example_obj.py +0 -0
  21. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/nesting.py +0 -0
  22. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/obj.py +0 -0
  23. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/obj2.py +0 -0
  24. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/examples/test.py +0 -0
  25. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/lock.py +0 -0
  26. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/log.py +0 -0
  27. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/mask.py +0 -0
  28. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/node.py +0 -0
  29. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/sphinx.py +0 -0
  30. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/table.py +0 -0
  31. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2/test.py +0 -0
  32. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2.egg-info/SOURCES.txt +0 -0
  33. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2.egg-info/dependency_links.txt +0 -0
  34. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2.egg-info/entry_points.txt +0 -0
  35. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/cli2.egg-info/top_level.txt +0 -0
  36. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/setup.cfg +0 -0
  37. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_ansible.py +0 -0
  38. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_asyncio.py +0 -0
  39. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_cli.py +0 -0
  40. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_client.py +0 -0
  41. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_command.py +0 -0
  42. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_configuration.py +0 -0
  43. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_decorators.py +0 -0
  44. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_display.py +0 -0
  45. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_entry_point.py +0 -0
  46. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_group.py +0 -0
  47. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_inject.py +0 -0
  48. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_lock.py +0 -0
  49. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_mask.py +0 -0
  50. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_node.py +0 -0
  51. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_restful.py +0 -0
  52. {cli2-5.0.0rc13 → cli2-5.0.0rc15}/tests/test_table.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cli2
3
- Version: 5.0.0rc13
3
+ Version: 5.0.0rc15
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
@@ -13,6 +13,10 @@ Requires-Dist: docstring_parser
13
13
  Requires-Dist: pyyaml
14
14
  Requires-Dist: pygments
15
15
  Requires-Dist: structlog
16
+ Provides-Extra: httpx
17
+ Requires-Dist: chttpx; extra == "httpx"
18
+ Provides-Extra: ansible
19
+ Requires-Dist: cansible; extra == "ansible"
16
20
  Provides-Extra: test
17
21
  Requires-Dist: freezegun; extra == "test"
18
22
  Requires-Dist: pytest; extra == "test"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cli2
3
- Version: 5.0.0rc13
3
+ Version: 5.0.0rc15
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
@@ -13,6 +13,10 @@ Requires-Dist: docstring_parser
13
13
  Requires-Dist: pyyaml
14
14
  Requires-Dist: pygments
15
15
  Requires-Dist: structlog
16
+ Provides-Extra: httpx
17
+ Requires-Dist: chttpx; extra == "httpx"
18
+ Provides-Extra: ansible
19
+ Requires-Dist: cansible; extra == "ansible"
16
20
  Provides-Extra: test
17
21
  Requires-Dist: freezegun; extra == "test"
18
22
  Requires-Dist: pytest; extra == "test"
@@ -3,6 +3,12 @@ pyyaml
3
3
  pygments
4
4
  structlog
5
5
 
6
+ [ansible]
7
+ cansible
8
+
9
+ [httpx]
10
+ chttpx
11
+
6
12
  [test]
7
13
  freezegun
8
14
  pytest
@@ -44,7 +44,7 @@ from setuptools import setup
44
44
 
45
45
  setup(
46
46
  name='cli2',
47
- version='5.0.0rc13',
47
+ version='5.0.0rc15',
48
48
  setup_requires='setupmeta',
49
49
  packages=['cli2'],
50
50
  install_requires=[
@@ -54,6 +54,8 @@ setup(
54
54
  'structlog',
55
55
  ],
56
56
  extras_require=dict(
57
+ httpx=['chttpx'],
58
+ ansible=['cansible'],
57
59
  test=[
58
60
  'freezegun',
59
61
  'pytest',
@@ -13,27 +13,34 @@ def test_story():
13
13
  assert variables['variables_vault.yml'] == dict(bar='foo')
14
14
 
15
15
 
16
- def test_exceptions():
16
+ def test_unresolvable_path_error():
17
17
  variables = cansible.Variables()
18
- with pytest.raises(Exception) as exc:
18
+ with pytest.raises(cansible.UnresolvablePathError) as exc:
19
19
  variables['variables.yml']
20
20
  assert exc.value.args == (
21
21
  'variables.yml must be absolute if root_path not set',
22
22
  )
23
23
 
24
- with pytest.raises(Exception) as exc:
25
- variables['/variables_vault.yml']
26
- assert exc.value.args == ('/variables_vault.yml does not exist',)
27
24
 
25
+ def test_path_not_found_error():
26
+ variables = cansible.Variables()
27
+ with pytest.raises(cansible.PathNotFoundError) as exc:
28
+ variables['/nonexistent.yml']
29
+ assert exc.value.args == ('/nonexistent.yml does not exist',)
30
+
31
+
32
+ def test_vault_password_required_error():
28
33
  variables = cansible.Variables(root_path=os.path.dirname(__file__))
29
- with pytest.raises(Exception) as exc:
34
+ with pytest.raises(cansible.VaultPasswordFileRequiredError) as exc:
30
35
  variables['variables_vault.yml']
31
36
  assert exc.value.args == ('Vault password required in pass_path',)
32
37
 
38
+
39
+ def test_vault_password_file_not_found_error():
33
40
  variables = cansible.Variables(
34
41
  root_path=os.path.dirname(__file__),
35
42
  pass_path='/does/not/exist',
36
43
  )
37
- with pytest.raises(Exception) as exc:
44
+ with pytest.raises(cansible.VaultPasswordFileNotFoundError) as exc:
38
45
  variables['variables_vault.yml']
39
46
  assert exc.value.args == ('/does/not/exist does not exist',)
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
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