ciocore 5.1.1__py2.py3-none-any.whl → 10.0.0b3__py2.py3-none-any.whl

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 (126) hide show
  1. ciocore/VERSION +1 -1
  2. ciocore/__init__.py +23 -1
  3. ciocore/api_client.py +655 -160
  4. ciocore/auth/__init__.py +5 -3
  5. ciocore/cli.py +501 -0
  6. ciocore/common.py +15 -13
  7. ciocore/conductor_submit.py +77 -60
  8. ciocore/config.py +127 -13
  9. ciocore/data.py +162 -77
  10. ciocore/docsite/404.html +746 -0
  11. ciocore/docsite/apidoc/api_client/index.html +3605 -0
  12. ciocore/docsite/apidoc/apidoc/index.html +909 -0
  13. ciocore/docsite/apidoc/config/index.html +1652 -0
  14. ciocore/docsite/apidoc/data/index.html +1553 -0
  15. ciocore/docsite/apidoc/hardware_set/index.html +2460 -0
  16. ciocore/docsite/apidoc/package_environment/index.html +1507 -0
  17. ciocore/docsite/apidoc/package_tree/index.html +2386 -0
  18. ciocore/docsite/assets/_mkdocstrings.css +16 -0
  19. ciocore/docsite/assets/images/favicon.png +0 -0
  20. ciocore/docsite/assets/javascripts/bundle.471ce7a9.min.js +29 -0
  21. ciocore/docsite/assets/javascripts/bundle.471ce7a9.min.js.map +7 -0
  22. ciocore/docsite/assets/javascripts/lunr/min/lunr.ar.min.js +1 -0
  23. ciocore/docsite/assets/javascripts/lunr/min/lunr.da.min.js +18 -0
  24. ciocore/docsite/assets/javascripts/lunr/min/lunr.de.min.js +18 -0
  25. ciocore/docsite/assets/javascripts/lunr/min/lunr.du.min.js +18 -0
  26. ciocore/docsite/assets/javascripts/lunr/min/lunr.el.min.js +1 -0
  27. ciocore/docsite/assets/javascripts/lunr/min/lunr.es.min.js +18 -0
  28. ciocore/docsite/assets/javascripts/lunr/min/lunr.fi.min.js +18 -0
  29. ciocore/docsite/assets/javascripts/lunr/min/lunr.fr.min.js +18 -0
  30. ciocore/docsite/assets/javascripts/lunr/min/lunr.he.min.js +1 -0
  31. ciocore/docsite/assets/javascripts/lunr/min/lunr.hi.min.js +1 -0
  32. ciocore/docsite/assets/javascripts/lunr/min/lunr.hu.min.js +18 -0
  33. ciocore/docsite/assets/javascripts/lunr/min/lunr.hy.min.js +1 -0
  34. ciocore/docsite/assets/javascripts/lunr/min/lunr.it.min.js +18 -0
  35. ciocore/docsite/assets/javascripts/lunr/min/lunr.ja.min.js +1 -0
  36. ciocore/docsite/assets/javascripts/lunr/min/lunr.jp.min.js +1 -0
  37. ciocore/docsite/assets/javascripts/lunr/min/lunr.kn.min.js +1 -0
  38. ciocore/docsite/assets/javascripts/lunr/min/lunr.ko.min.js +1 -0
  39. ciocore/docsite/assets/javascripts/lunr/min/lunr.multi.min.js +1 -0
  40. ciocore/docsite/assets/javascripts/lunr/min/lunr.nl.min.js +18 -0
  41. ciocore/docsite/assets/javascripts/lunr/min/lunr.no.min.js +18 -0
  42. ciocore/docsite/assets/javascripts/lunr/min/lunr.pt.min.js +18 -0
  43. ciocore/docsite/assets/javascripts/lunr/min/lunr.ro.min.js +18 -0
  44. ciocore/docsite/assets/javascripts/lunr/min/lunr.ru.min.js +18 -0
  45. ciocore/docsite/assets/javascripts/lunr/min/lunr.sa.min.js +1 -0
  46. ciocore/docsite/assets/javascripts/lunr/min/lunr.stemmer.support.min.js +1 -0
  47. ciocore/docsite/assets/javascripts/lunr/min/lunr.sv.min.js +18 -0
  48. ciocore/docsite/assets/javascripts/lunr/min/lunr.ta.min.js +1 -0
  49. ciocore/docsite/assets/javascripts/lunr/min/lunr.te.min.js +1 -0
  50. ciocore/docsite/assets/javascripts/lunr/min/lunr.th.min.js +1 -0
  51. ciocore/docsite/assets/javascripts/lunr/min/lunr.tr.min.js +18 -0
  52. ciocore/docsite/assets/javascripts/lunr/min/lunr.vi.min.js +1 -0
  53. ciocore/docsite/assets/javascripts/lunr/min/lunr.zh.min.js +1 -0
  54. ciocore/docsite/assets/javascripts/lunr/tinyseg.js +206 -0
  55. ciocore/docsite/assets/javascripts/lunr/wordcut.js +6708 -0
  56. ciocore/docsite/assets/javascripts/workers/search.b8dbb3d2.min.js +42 -0
  57. ciocore/docsite/assets/javascripts/workers/search.b8dbb3d2.min.js.map +7 -0
  58. ciocore/docsite/assets/stylesheets/main.3cba04c6.min.css +1 -0
  59. ciocore/docsite/assets/stylesheets/main.3cba04c6.min.css.map +1 -0
  60. ciocore/docsite/assets/stylesheets/palette.06af60db.min.css +1 -0
  61. ciocore/docsite/assets/stylesheets/palette.06af60db.min.css.map +1 -0
  62. ciocore/docsite/cmdline/docs/index.html +871 -0
  63. ciocore/docsite/cmdline/downloader/index.html +934 -0
  64. ciocore/docsite/cmdline/packages/index.html +878 -0
  65. ciocore/docsite/cmdline/uploader/index.html +995 -0
  66. ciocore/docsite/how-to-guides/index.html +869 -0
  67. ciocore/docsite/index.html +895 -0
  68. ciocore/docsite/logo.png +0 -0
  69. ciocore/docsite/objects.inv +0 -0
  70. ciocore/docsite/search/search_index.json +1 -0
  71. ciocore/docsite/sitemap.xml +3 -0
  72. ciocore/docsite/sitemap.xml.gz +0 -0
  73. ciocore/docsite/stylesheets/extra.css +26 -0
  74. ciocore/docsite/stylesheets/tables.css +167 -0
  75. ciocore/downloader/base_downloader.py +644 -0
  76. ciocore/downloader/download_runner_base.py +47 -0
  77. ciocore/downloader/job_downloader.py +119 -0
  78. ciocore/{downloader.py → downloader/legacy_downloader.py} +12 -9
  79. ciocore/downloader/log.py +73 -0
  80. ciocore/downloader/logging_download_runner.py +87 -0
  81. ciocore/downloader/perpetual_downloader.py +63 -0
  82. ciocore/downloader/registry.py +97 -0
  83. ciocore/downloader/reporter.py +135 -0
  84. ciocore/exceptions.py +8 -2
  85. ciocore/file_utils.py +51 -50
  86. ciocore/hardware_set.py +449 -0
  87. ciocore/loggeria.py +89 -20
  88. ciocore/package_environment.py +110 -48
  89. ciocore/package_query.py +182 -0
  90. ciocore/package_tree.py +319 -258
  91. ciocore/retry.py +0 -0
  92. ciocore/uploader/_uploader.py +547 -364
  93. ciocore/uploader/thread_queue_job.py +176 -0
  94. ciocore/uploader/upload_stats/__init__.py +3 -4
  95. ciocore/uploader/upload_stats/stats_formats.py +10 -4
  96. ciocore/validator.py +34 -2
  97. ciocore/worker.py +174 -151
  98. ciocore-10.0.0b3.dist-info/METADATA +928 -0
  99. ciocore-10.0.0b3.dist-info/RECORD +128 -0
  100. {ciocore-5.1.1.dist-info → ciocore-10.0.0b3.dist-info}/WHEEL +1 -1
  101. ciocore-10.0.0b3.dist-info/entry_points.txt +2 -0
  102. tests/instance_type_fixtures.py +175 -0
  103. tests/package_fixtures.py +205 -0
  104. tests/test_api_client.py +297 -12
  105. tests/test_base_downloader.py +104 -0
  106. tests/test_cli.py +149 -0
  107. tests/test_common.py +1 -7
  108. tests/test_config.py +40 -18
  109. tests/test_data.py +162 -173
  110. tests/test_downloader.py +118 -0
  111. tests/test_hardware_set.py +139 -0
  112. tests/test_job_downloader.py +213 -0
  113. tests/test_package_query.py +38 -0
  114. tests/test_package_tree.py +91 -291
  115. tests/test_submit.py +44 -18
  116. tests/test_uploader.py +1 -4
  117. ciocore/__about__.py +0 -10
  118. ciocore/cli/conductor.py +0 -191
  119. ciocore/compat.py +0 -15
  120. ciocore-5.1.1.data/scripts/conductor +0 -19
  121. ciocore-5.1.1.data/scripts/conductor.bat +0 -13
  122. ciocore-5.1.1.dist-info/METADATA +0 -408
  123. ciocore-5.1.1.dist-info/RECORD +0 -47
  124. tests/mocks/api_client_mock.py +0 -51
  125. /ciocore/{cli → downloader}/__init__.py +0 -0
  126. {ciocore-5.1.1.dist-info → ciocore-10.0.0b3.dist-info}/top_level.txt +0 -0
@@ -1,47 +0,0 @@
1
- ciocore/VERSION,sha256=TM7D_UfuUWKWKARCDUtTyO5ez8gn95_9IeZ5swV0IAM,5
2
- ciocore/__about__.py,sha256=nTb4Xx0r9QtGROSFKgwDZ-Mr2LKjm2wVt1OkMQAkRAQ,241
3
- ciocore/__init__.py,sha256=zB_e7gBW2QloqbrGzcvccfpZhOhd6o9KACnScrwylm8,25
4
- ciocore/api_client.py,sha256=BSnAPA4nVbem9aJgY8XQJJCoAxDfmfngPvysKGKeM6c,17857
5
- ciocore/client_db.py,sha256=tTz3bl2xeDPPcYSDS3g3QgV_xYihJMx0Kj6OeN2klK0,12978
6
- ciocore/common.py,sha256=JD28IPF6x21w50ut9vNDvCEwdt_EUkbrN4o7qC5rbs4,14865
7
- ciocore/compat.py,sha256=5uEXPSog_jxsDMaHBswAKEtfyXT25VgU6WNGIhz9PHU,256
8
- ciocore/conductor_submit.py,sha256=9DBy3vqg6fyLFf7ibesVKRE0EaF39SIyo6SVUW0FhXw,9141
9
- ciocore/config.py,sha256=Hha0LSy1gbRcsaQAB4B8q9SbRVZQ86fqd2Lvq9K1mmw,3764
10
- ciocore/data.py,sha256=06B3BYHCL9s0bhkDN2bzeMTjgJfnVok8-iEudG8Qnm8,3457
11
- ciocore/downloader.py,sha256=gmwEUujqKzXxHpGHXdqd0xhupVBLe3ScLjCwB0apcis,51146
12
- ciocore/exceptions.py,sha256=c1K48hWcD8VOORfNoSf5qlQkLLEqwjryH8FUwUYAYU4,1431
13
- ciocore/file_utils.py,sha256=Ij6KAQt-yI_BUUbMIaoSr4qGeGPecCOK8lT-RQFQ1AM,17193
14
- ciocore/loggeria.py,sha256=dKKJC8ZtRZdghqD5R5XrA6eDoy8gKacfeTA-zNzXvDE,13482
15
- ciocore/package_environment.py,sha256=37w26XWMH_meIXfgfj5YWSoh2P49-ZF-nA-rvrCa5Nk,4027
16
- ciocore/package_tree.py,sha256=65qdc2dysKfx0OiYzwuAlBU-cE5aFQlKRYuvwo3NTzg,12053
17
- ciocore/post_install.py,sha256=zu5Ctz2ANbKD-f5G2ODLIhKkWENBi4F3UKKu50OEWrg,1000
18
- ciocore/validator.py,sha256=hwTxP6YDfwO3SKLQS-eDZ5CZggp34FqY4tlFeCselKk,1222
19
- ciocore/worker.py,sha256=CntTPiGpF0xClhENpi7fILi1OcASfTMcnnnoEhPRt4A,21583
20
- ciocore/auth/__init__.py,sha256=SHyaKpsRwTOzeDdUDpG-0KO8oYr0UTvGbsWhEXyJEm8,502
21
- ciocore/auth/server.py,sha256=8btX9-EokUl6q55V8muDmEV2tvvbTBD0BHeWFbwkzUc,3892
22
- ciocore/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- ciocore/cli/conductor.py,sha256=vwuM8wYv1qVIViHbaMxHOfUqJcUQi7t4Qpz6eTtorvA,10097
24
- ciocore/uploader/__init__.py,sha256=hxRFJf5Lo86rtRObFXSjjot8nybQd-SebSfYCbgZwow,24
25
- ciocore/uploader/_uploader.py,sha256=h0VQ8KRnXX6arjKNDDf0p0fS3T2p6WWnzQRnN8irADU,33833
26
- ciocore/uploader/upload_stats/__init__.py,sha256=lMIeMC6Z5ihzDEFb8sJWHBINyjp6mHxun_exoI85pjo,5437
27
- ciocore/uploader/upload_stats/stats_formats.py,sha256=JlSKRhjTBT2lRmdpksCUEN4eWiI0_ICghKPNvoXfWh8,2099
28
- ciocore-5.1.1.data/scripts/conductor,sha256=Nk3QsLQqbUUrtaKDp4b5mr9__4tz-xnssENpQe5vuIo,409
29
- ciocore-5.1.1.data/scripts/conductor.bat,sha256=T1_9ByheubBczgQZn8_LwfvMtWgE7Bt64EsEScnSXMs,447
30
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- tests/test_api_client.py,sha256=9zeVy2iLLlryUAXJNGk5tp8meE88JIRcF38Nqd57N0A,1377
32
- tests/test_common.py,sha256=lJpzRdL-7u4McXFbLuwPQQoUnuEOnCVQtZEt6e_dIYs,638
33
- tests/test_config.py,sha256=nSmpinX2SmDNAprIcxs9UHdB0VakJB0snXaZmAoKJSc,12863
34
- tests/test_data.py,sha256=YPm7OjA4m8UugJbW609_dYoOPv0nDJynxqEkjrSBJDw,5444
35
- tests/test_imports_2and3.py,sha256=ehqpRYPVY7djBcb8OT_cnh86iCJJ9wuMWnfSR9RHxmY,507
36
- tests/test_package_environment.py,sha256=CdiC2PDVSnbcwTb4fsDTWqGYSzs1n5ca2KMoyISckGA,5893
37
- tests/test_package_tree.py,sha256=8Gf6sDksCxaF5BLNhgmhU0C7sqin45q2JECJECNeMno,13131
38
- tests/test_submit.py,sha256=L3pkjLUEfDf8olJgLVjnczvy1fFuOtglx4GHw3uAyqg,4842
39
- tests/test_uploader.py,sha256=B1llTJt_fqR6e_V_Jxfw9z73QgkFlEPU87xLYGzt-TQ,2914
40
- tests/test_validator.py,sha256=2fY66ayNc08PGyj2vTI-V_1yeCWJDngkj2zkUM5TTCI,1526
41
- tests/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- tests/mocks/api_client_mock.py,sha256=biB85tUapJ2IMjn_dT583L1hzdV2T-eLqVJD6O7cGqA,1383
43
- tests/mocks/glob.py,sha256=J2MH7nqi6NJOHuGdVWxhfeBd700_Ckj6cLh_8jSNkfg,215
44
- ciocore-5.1.1.dist-info/METADATA,sha256=-JJdqb0gK7trpmzOkTjlG3ooH8FtVLJLmqBGOteIxzo,13023
45
- ciocore-5.1.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
46
- ciocore-5.1.1.dist-info/top_level.txt,sha256=SvlM5JlqULzAz00JZWfiUhfjhqDzYzSWssA87zdJl0o,14
47
- ciocore-5.1.1.dist-info/RECORD,,
@@ -1,51 +0,0 @@
1
- """Mock ApiClient for requests to get packages and projects.
2
-
3
- ApiClientNoHost includes an incompatible version of Houdini (to my
4
- current setup) and is useful for testing behaviour of software /
5
- autodetect etc.
6
- """
7
- import json
8
- import os
9
-
10
- PROJECTS_RESPONSE = {"data": [
11
- {"id": "123|deadpool", "name": "Deadpool",
12
- "status": "active"},
13
- {"id": "456|harrypotter", "name": "Harry Potter & the chamber of secrets",
14
- "status": "active"},
15
- {"id": "789|corelli", "name": "Captain Corelli's Mandolin",
16
- "status": "active"},
17
- {"id": "000|gwtw", "name": "Gone with the Wind",
18
- "status": "inactive"}
19
- ]}
20
-
21
-
22
- def _read(fixture):
23
- filename = os.path.join(
24
- os.path.dirname(__file__),
25
- "..",
26
- "fixtures",
27
- fixture)
28
- with open(filename, 'r') as content:
29
- return [content.read(), 200]
30
-
31
-
32
- class ApiClientMock(object):
33
- JSON = "sw_packages.json"
34
- def make_request(self, **kw):
35
- path = kw.get("uri_path", "")
36
-
37
- print("Using mock %s call to %s" % (self.__class__.__name__, path))
38
-
39
- if path.startswith("api/v1/projects"):
40
- return [json.dumps(PROJECTS_RESPONSE), 200]
41
-
42
- if path.startswith("api/v1/ee/packages"):
43
- return _read(self.JSON)
44
-
45
-
46
- class ApiClient(ApiClientMock):
47
- JSON = "sw_packages.json"
48
-
49
-
50
- class ApiClientNoHost(ApiClientMock):
51
- JSON = "sw_packages_no_exact_host.json"
File without changes