openshift-python-wrapper 4.13.1__tar.gz → 4.13.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 (157) hide show
  1. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/PKG-INFO +5 -7
  2. openshift-python-wrapper-4.13.3/VERSION +1 -0
  3. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/chaos_engine.py +0 -1
  4. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/constants.py +0 -1
  5. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/event.py +0 -1
  6. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/logger.py +0 -1
  7. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_set.py +0 -1
  8. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/migration_policy.py +0 -1
  9. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_attachment_definition.py +0 -1
  10. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_state.py +0 -2
  11. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/resource.py +0 -2
  12. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/role_binding.py +0 -1
  13. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/utils.py +0 -1
  14. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/PKG-INFO +5 -7
  15. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/SOURCES.txt +2 -5
  16. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/top_level.txt +0 -1
  17. openshift-python-wrapper-4.13.3/pyproject.toml +63 -0
  18. openshift-python-wrapper-4.13.3/setup.cfg +4 -0
  19. openshift-python-wrapper-4.13.1/pyproject.toml +0 -2
  20. openshift-python-wrapper-4.13.1/setup.cfg +0 -21
  21. openshift-python-wrapper-4.13.1/setup.py +0 -21
  22. openshift-python-wrapper-4.13.1/tests/__init__.py +0 -0
  23. openshift-python-wrapper-4.13.1/tests/utils.py +0 -45
  24. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/LICENSE +0 -0
  25. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/README.md +0 -0
  26. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/__init__.py +0 -0
  27. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_server.py +0 -0
  28. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/api_service.py +0 -0
  29. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/backup.py +0 -0
  30. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/benchmark.py +0 -0
  31. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/catalog_source.py +0 -0
  32. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/catalog_source_config.py +0 -0
  33. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cdi.py +0 -0
  34. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cdi_config.py +0 -0
  35. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/chaos_result.py +0 -0
  36. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_operator.py +0 -0
  37. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_role.py +0 -0
  38. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_role_binding.py +0 -0
  39. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_service_version.py +0 -0
  40. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/cluster_version.py +0 -0
  41. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/configmap.py +0 -0
  42. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_cli_download.py +0 -0
  43. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_plugin.py +0 -0
  44. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/console_quick_start.py +0 -0
  45. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/controller_revision.py +0 -0
  46. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/csidriver.py +0 -0
  47. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/custom_resource_definition.py +0 -0
  48. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/daemonset.py +0 -0
  49. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/data_import_cron.py +0 -0
  50. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/data_source.py +0 -0
  51. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/datavolume.py +0 -0
  52. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/deployment.py +0 -0
  53. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/destination_rule.py +0 -0
  54. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/endpoints.py +0 -0
  55. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/forklift_controller.py +0 -0
  56. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/gateway.py +0 -0
  57. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hook.py +0 -0
  58. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/host.py +0 -0
  59. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hostpath_provisioner.py +0 -0
  60. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/hyperconverged.py +0 -0
  61. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image.py +0 -0
  62. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image_content_source_policy.py +0 -0
  63. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/image_stream.py +0 -0
  64. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/imagestreamtag.py +0 -0
  65. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/infrastructure.py +0 -0
  66. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/installplan.py +0 -0
  67. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/ip_address_pool.py +0 -0
  68. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/job.py +0 -0
  69. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kube_descheduler.py +0 -0
  70. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt.py +0 -0
  71. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_common_templates_bundle.py +0 -0
  72. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_metrics_aggregation.py +0 -0
  73. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_node_labeller_bundle.py +0 -0
  74. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/kubevirt_template_validaotr.py +0 -0
  75. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/l2_advertisement.py +0 -0
  76. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine.py +0 -0
  77. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_config.py +0 -0
  78. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_config_pool.py +0 -0
  79. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/machine_health_check.py +0 -0
  80. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/metallb.py +0 -0
  81. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/migration.py +0 -0
  82. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/mtv.py +0 -0
  83. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/mutating_webhook_config.py +0 -0
  84. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/namespace.py +0 -0
  85. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network.py +0 -0
  86. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_addons_config.py +0 -0
  87. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_map.py +0 -0
  88. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/network_policy.py +0 -0
  89. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/nmstate.py +0 -0
  90. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node.py +0 -0
  91. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_health_check.py +0 -0
  92. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_maintenance.py +0 -0
  93. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_configuration_enactment.py +0 -0
  94. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/node_network_configuration_policy.py +0 -0
  95. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/oauth.py +0 -0
  96. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_condition.py +0 -0
  97. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_group.py +0 -0
  98. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_hub.py +0 -0
  99. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/operator_source.py +0 -0
  100. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/package_manifest.py +0 -0
  101. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/peer_authentication.py +0 -0
  102. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/persistent_volume.py +0 -0
  103. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/persistent_volume_claim.py +0 -0
  104. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pipelineruns.py +0 -0
  105. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/plan.py +0 -0
  106. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pod.py +0 -0
  107. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/pod_disruption_budget.py +0 -0
  108. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/priority_class.py +0 -0
  109. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/project.py +0 -0
  110. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus.py +0 -0
  111. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/prometheus_rule.py +0 -0
  112. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/provider.py +0 -0
  113. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/replicaset.py +0 -0
  114. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/restore.py +0 -0
  115. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/role.py +0 -0
  116. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/route.py +0 -0
  117. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/scheduler.py +0 -0
  118. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/secret.py +0 -0
  119. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/security_context_constraints.py +0 -0
  120. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service.py +0 -0
  121. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_account.py +0 -0
  122. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_mesh_control_plane.py +0 -0
  123. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_mesh_member_roll.py +0 -0
  124. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/service_monitor.py +0 -0
  125. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network.py +0 -0
  126. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network_node_policy.py +0 -0
  127. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/sriov_network_node_state.py +0 -0
  128. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/ssp.py +0 -0
  129. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_class.py +0 -0
  130. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_map.py +0 -0
  131. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/storage_profile.py +0 -0
  132. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/subscription.py +0 -0
  133. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/tekton_tasks.py +0 -0
  134. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/template.py +0 -0
  135. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/upload_token_request.py +0 -0
  136. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/validating_webhook_config.py +0 -0
  137. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine.py +0 -0
  138. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_Instance_replica_set.py +0 -0
  139. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_cluster_instance_types.py +0 -0
  140. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_cluster_preferences.py +0 -0
  141. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_export.py +0 -0
  142. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_import.py +0 -0
  143. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance.py +0 -0
  144. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_migration.py +0 -0
  145. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_preset.py +0 -0
  146. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_instance_types.py +0 -0
  147. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_preferences.py +0 -0
  148. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_restore.py +0 -0
  149. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_machine_snapshot.py +0 -0
  150. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/virtual_service.py +0 -0
  151. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/vm_import_config.py +0 -0
  152. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/volume_snapshot.py +0 -0
  153. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/ocp_resources/volume_snapshot_class.py +0 -0
  154. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/dependency_links.txt +0 -0
  155. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/openshift_python_wrapper.egg-info/requires.txt +0 -0
  156. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/tests/test_resources.py +0 -0
  157. {openshift-python-wrapper-4.13.1 → openshift-python-wrapper-4.13.3}/tests/test_validate_resources.py +0 -0
@@ -1,18 +1,16 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openshift-python-wrapper
3
- Version: 4.13.1
3
+ Version: 4.13.3
4
4
  Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
5
- Home-page: https://github.com/RedHatQE/openshift-python-wrapper
6
- Download-URL: https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/v4.13.1.tar.gz
7
- Author: Meni Yakove, Ruth Netser
8
- Author-email: myakove@redhat.com
9
- License: apache-2.0
5
+ Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
6
+ Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
7
+ Project-URL: Download, https://pypi.org/project/openshift-python-wrapper/
10
8
  Project-URL: Bug Tracker, https://github.com/RedHatQE/openshift-python-wrapper/issues
11
9
  Project-URL: Documentation, https://openshift-python-wrapper.readthedocs.io/en/latest/
12
10
  Keywords: Openshift,Kubevirt,CNV
13
11
  Classifier: Programming Language :: Python :: 3
14
12
  Classifier: Operating System :: OS Independent
15
- Requires-Python: >=3.6
13
+ Requires-Python: >=3.7
16
14
  Description-Content-Type: text/markdown
17
15
  License-File: LICENSE
18
16
 
@@ -0,0 +1 @@
1
+ 4.13.3
@@ -4,7 +4,6 @@ from ocp_resources.resource import NamespacedResource
4
4
 
5
5
 
6
6
  class ChaosEngine(NamespacedResource):
7
-
8
7
  api_group = NamespacedResource.ApiGroup.LITMUS_IO
9
8
 
10
9
  class EngineStatus:
@@ -6,7 +6,6 @@ from openshift.dynamic.exceptions import (
6
6
  )
7
7
  from urllib3.exceptions import MaxRetryError, ProtocolError
8
8
 
9
-
10
9
  DEFAULT_CLUSTER_RETRY_EXCEPTIONS = {
11
10
  MaxRetryError: [],
12
11
  ConnectionAbortedError: [],
@@ -1,6 +1,5 @@
1
1
  from ocp_resources.logger import get_logger
2
2
 
3
-
4
3
  LOGGER = get_logger(name=__name__)
5
4
 
6
5
 
@@ -5,7 +5,6 @@ from logging.handlers import RotatingFileHandler
5
5
 
6
6
  from colorlog import ColoredFormatter
7
7
 
8
-
9
8
  LOGGER = logging.getLogger(__name__)
10
9
  LOGGERS = {}
11
10
 
@@ -2,7 +2,6 @@ from ocp_resources.constants import TIMEOUT_4MINUTES
2
2
  from ocp_resources.resource import NamespacedResource
3
3
  from ocp_resources.utils import TimeoutExpiredError, TimeoutSampler
4
4
 
5
-
6
5
  TIMEOUT_5MINUTES = 300
7
6
 
8
7
 
@@ -2,7 +2,6 @@ from ocp_resources.resource import Resource
2
2
 
3
3
 
4
4
  class MigrationPolicy(Resource):
5
-
6
5
  api_group = Resource.ApiGroup.MIGRATIONS_KUBEVIRT_IO
7
6
 
8
7
  def __init__(
@@ -2,7 +2,6 @@ import json
2
2
 
3
3
  from ocp_resources.resource import NamespacedResource
4
4
 
5
-
6
5
  DEFAULT_CNI_VERSION = "0.3.1"
7
6
 
8
7
 
@@ -6,7 +6,6 @@ from ocp_resources.constants import TIMEOUT_4MINUTES
6
6
  from ocp_resources.resource import Resource
7
7
  from ocp_resources.utils import TimeoutSampler
8
8
 
9
-
10
9
  SLEEP = 1
11
10
 
12
11
 
@@ -34,7 +33,6 @@ class NodeNetworkState(Resource):
34
33
  self.desired_state = status.get("desiredState", {"interfaces": []})
35
34
 
36
35
  def set_interface(self, interface):
37
-
38
36
  # First drop the interface is's already in the list
39
37
  interfaces = [
40
38
  iface
@@ -29,7 +29,6 @@ from ocp_resources.utils import (
29
29
  skip_existing_resource_creation_teardown,
30
30
  )
31
31
 
32
-
33
32
  LOGGER = get_logger(__name__)
34
33
  MAX_SUPPORTED_API_VERSION = "v2"
35
34
 
@@ -752,7 +751,6 @@ class Resource:
752
751
  def retry_cluster_exceptions(
753
752
  func, exceptions_dict=DEFAULT_CLUSTER_RETRY_EXCEPTIONS, **kwargs
754
753
  ):
755
-
756
754
  sampler = TimeoutSampler(
757
755
  wait_timeout=10,
758
756
  sleep=1,
@@ -26,7 +26,6 @@ class RoleBinding(NamespacedResource):
26
26
  delete_timeout=TIMEOUT_4MINUTES,
27
27
  **kwargs,
28
28
  ):
29
-
30
29
  super().__init__(
31
30
  name=name,
32
31
  namespace=namespace,
@@ -4,7 +4,6 @@ import yaml
4
4
 
5
5
  from ocp_resources.logger import get_logger
6
6
 
7
-
8
7
  LOGGER = get_logger(name=__name__)
9
8
 
10
9
 
@@ -1,18 +1,16 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openshift-python-wrapper
3
- Version: 4.13.1
3
+ Version: 4.13.3
4
4
  Summary: Wrapper around https://github.com/openshift/openshift-restclient-python
5
- Home-page: https://github.com/RedHatQE/openshift-python-wrapper
6
- Download-URL: https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/v4.13.1.tar.gz
7
- Author: Meni Yakove, Ruth Netser
8
- Author-email: myakove@redhat.com
9
- License: apache-2.0
5
+ Author-email: Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>
6
+ Project-URL: Homepage, https://github.com/RedHatQE/openshift-python-wrapper
7
+ Project-URL: Download, https://pypi.org/project/openshift-python-wrapper/
10
8
  Project-URL: Bug Tracker, https://github.com/RedHatQE/openshift-python-wrapper/issues
11
9
  Project-URL: Documentation, https://openshift-python-wrapper.readthedocs.io/en/latest/
12
10
  Keywords: Openshift,Kubevirt,CNV
13
11
  Classifier: Programming Language :: Python :: 3
14
12
  Classifier: Operating System :: OS Independent
15
- Requires-Python: >=3.6
13
+ Requires-Python: >=3.7
16
14
  Description-Content-Type: text/markdown
17
15
  License-File: LICENSE
18
16
 
@@ -1,8 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
+ VERSION
3
4
  pyproject.toml
4
- setup.cfg
5
- setup.py
6
5
  ocp_resources/__init__.py
7
6
  ocp_resources/api_server.py
8
7
  ocp_resources/api_service.py
@@ -147,7 +146,5 @@ openshift_python_wrapper.egg-info/SOURCES.txt
147
146
  openshift_python_wrapper.egg-info/dependency_links.txt
148
147
  openshift_python_wrapper.egg-info/requires.txt
149
148
  openshift_python_wrapper.egg-info/top_level.txt
150
- tests/__init__.py
151
149
  tests/test_resources.py
152
- tests/test_validate_resources.py
153
- tests/utils.py
150
+ tests/test_validate_resources.py
@@ -0,0 +1,63 @@
1
+ [tool.black]
2
+ line-length = 88
3
+ target_version = ['py37', 'py38', 'py39', 'py310', "py311"]
4
+ exclude = '''
5
+ (
6
+ /(
7
+ | \.git
8
+ | \.venv
9
+ | \.mypy_cache
10
+ | \.tox
11
+ )/
12
+ )
13
+ '''
14
+
15
+ [tool.isort]
16
+ line_length = 88
17
+ profile = "black"
18
+
19
+
20
+ [build-system]
21
+ requires = ["setuptools>=61.2"]
22
+ build-backend = "setuptools.build_meta"
23
+
24
+ [project]
25
+ name = "openshift-python-wrapper"
26
+ authors = [
27
+ {name = "Meni Yakove", email = "myakove@gmail.com"},
28
+ {name = "Ruth Netser", email = "rnetser@gmail.com"}
29
+ ]
30
+ description = "Wrapper around https://github.com/openshift/openshift-restclient-python"
31
+ classifiers = [
32
+ "Programming Language :: Python :: 3",
33
+ "Operating System :: OS Independent",
34
+ ]
35
+ requires-python = ">=3.7"
36
+ keywords = ["Openshift", "Kubevirt", "CNV"]
37
+ dependencies = [
38
+ "openshift",
39
+ "xmltodict",
40
+ "urllib3",
41
+ "colorlog",
42
+ "packaging",
43
+ ]
44
+ dynamic = ["version"]
45
+ # ...
46
+ [tool.setuptools.dynamic]
47
+ version = {file = "VERSION"}
48
+
49
+ [project.readme]
50
+ file = "README.md"
51
+ content-type = "text/markdown"
52
+
53
+ [project.urls]
54
+ Homepage = "https://github.com/RedHatQE/openshift-python-wrapper"
55
+ Download = "https://pypi.org/project/openshift-python-wrapper/"
56
+ "Bug Tracker" = "https://github.com/RedHatQE/openshift-python-wrapper/issues"
57
+ Documentation = "https://openshift-python-wrapper.readthedocs.io/en/latest/"
58
+
59
+ [tool.setuptools]
60
+ include-package-data = true
61
+
62
+ [tool.setuptools.packages.find]
63
+ include = ["ocp_resources"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,2 +0,0 @@
1
- [tool.black]
2
- line-length = 88
@@ -1,21 +0,0 @@
1
- [metadata]
2
- name = openshift-python-wrapper
3
- version = 4.13.1
4
- author = Meni Yakove, Ruth Netser
5
- author_email = myakove@redhat.com
6
- description = Wrapper around https://github.com/openshift/openshift-restclient-python
7
- long_description = file: README.md
8
- long_description_content_type = text/markdown
9
- url = https://github.com/RedHatQE/openshift-python-wrapper
10
- download_url = https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/v4.13.1.tar.gz
11
- project_urls =
12
- Bug Tracker = https://github.com/RedHatQE/openshift-python-wrapper/issues
13
- Documentation = https://openshift-python-wrapper.readthedocs.io/en/latest/
14
- classifiers =
15
- Programming Language :: Python :: 3
16
- Operating System :: OS Independent
17
-
18
- [egg_info]
19
- tag_build =
20
- tag_date = 0
21
-
@@ -1,21 +0,0 @@
1
- #! /usr/bin/python
2
- # -*- coding: utf-8 -*-
3
-
4
- from setuptools import find_packages, setup
5
-
6
-
7
- setup(
8
- name="openshift-python-wrapper",
9
- license="apache-2.0",
10
- keywords=["Openshift", "Kubevirt", "CNV"],
11
- packages=find_packages(),
12
- include_package_data=True,
13
- install_requires=[
14
- "openshift",
15
- "xmltodict",
16
- "urllib3",
17
- "colorlog",
18
- "packaging",
19
- ],
20
- python_requires=">=3.6",
21
- )
File without changes
@@ -1,45 +0,0 @@
1
- import re
2
-
3
- import jinja2
4
- import yaml
5
-
6
-
7
- class MissingTemplateVariables(Exception):
8
- def __init__(self, var, template):
9
- self.var = var
10
- self.template = template
11
-
12
- def __str__(self):
13
- return f"Missing variables {self.var} for template {self.template}"
14
-
15
-
16
- def generate_yaml_from_template(**kwargs):
17
- """
18
- Generate JSON from yaml file_
19
-
20
- Keyword Args:
21
- name (str):
22
- image (str):
23
-
24
- Returns:
25
- dict: Generated from template file
26
-
27
- Raises:
28
- MissingTemplateVariables: If not all template variables exists
29
-
30
- Examples:
31
- generate_yaml_from_template(file_='path/to/file/name', name='vm-name-1')
32
- """
33
- file_ = "tests/manifests/vm.yaml"
34
- with open(file_, "r") as stream:
35
- data = stream.read()
36
-
37
- # Find all template variables
38
- template_vars = [i.split()[1] for i in re.findall(r"{{ .* }}", data)]
39
- for var in template_vars:
40
- if var not in kwargs.keys():
41
- raise MissingTemplateVariables(var=var, template=file_)
42
-
43
- template = jinja2.Template(source=data)
44
- out = template.render(**kwargs)
45
- return yaml.safe_load(stream=out)