tabcmd 2.0.14__tar.gz → 2.0.18__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 (280) hide show
  1. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/check-coverage.yml +7 -6
  2. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/codeql-analysis.yml +1 -1
  3. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/generate-metadata.yml +1 -1
  4. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/package.yml +23 -20
  5. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/publish-pypi.yml +1 -2
  6. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/python-app.yml +1 -1
  7. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/run-e2-tests.yml +1 -1
  8. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/run-tests.yml +1 -1
  9. {tabcmd-2.0.14 → tabcmd-2.0.18}/.gitignore +4 -0
  10. {tabcmd-2.0.14 → tabcmd-2.0.18}/PKG-INFO +7 -5
  11. {tabcmd-2.0.14 → tabcmd-2.0.18}/README.md +2 -0
  12. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/msgfmt.py +5 -4
  13. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/prop2po.py +18 -11
  14. {tabcmd-2.0.14 → tabcmd-2.0.18}/contributing.md +14 -5
  15. tabcmd-2.0.18/dodo.py +348 -0
  16. {tabcmd-2.0.14 → tabcmd-2.0.18}/pyproject.toml +6 -5
  17. tabcmd-2.0.18/res/metadata.yml +7 -0
  18. tabcmd-2.0.18/tabcmd/__main__.py +17 -0
  19. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/session.py +14 -1
  20. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/constants.py +6 -1
  21. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +55 -16
  22. tabcmd-2.0.18/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +198 -0
  23. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/export_command.py +44 -45
  24. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +39 -110
  25. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/publish_command.py +16 -7
  26. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +1 -1
  27. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/create_extracts_command.py +1 -1
  28. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/refresh_extracts_command.py +5 -10
  29. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/create_group_command.py +1 -1
  30. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/delete_group_command.py +1 -1
  31. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/create_project_command.py +2 -2
  32. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/publish_samples_command.py +4 -2
  33. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/server.py +49 -26
  34. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/list_sites_command.py +2 -3
  35. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/add_users_command.py +1 -1
  36. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/create_site_users.py +2 -2
  37. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/create_users_command.py +3 -3
  38. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/delete_site_users_command.py +1 -1
  39. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/remove_users_command.py +1 -1
  40. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/user_data.py +16 -10
  41. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/global_options.py +9 -6
  42. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/localize.py +10 -9
  43. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/parent_parser.py +10 -1
  44. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/tabcmd_controller.py +13 -9
  45. tabcmd-2.0.18/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
  46. tabcmd-2.0.18/tabcmd/locales/de/extra.properties +23 -0
  47. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/shared_wg_de.properties +219 -171
  48. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/tabcmd_messages_de.properties +170 -133
  49. tabcmd-2.0.18/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
  50. tabcmd-2.0.18/tabcmd/locales/en/extra.properties +22 -0
  51. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/en/shared_wg_en.properties +91 -35
  52. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/en/tabcmd_messages_en.properties +40 -5
  53. tabcmd-2.0.18/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
  54. tabcmd-2.0.18/tabcmd/locales/es/extra.properties +23 -0
  55. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/shared_wg_es.properties +186 -138
  56. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/tabcmd_messages_es.properties +144 -107
  57. tabcmd-2.0.18/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
  58. tabcmd-2.0.18/tabcmd/locales/fr/extra.properties +22 -0
  59. tabcmd-2.0.18/tabcmd/locales/fr/shared_wg_fr.properties +529 -0
  60. tabcmd-2.0.18/tabcmd/locales/fr/tabcmd_messages_fr.properties +439 -0
  61. tabcmd-2.0.18/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
  62. tabcmd-2.0.18/tabcmd/locales/ga/extra.properties +23 -0
  63. tabcmd-2.0.18/tabcmd/locales/ga/shared_wg_ga.properties +529 -0
  64. tabcmd-2.0.18/tabcmd/locales/ga/tabcmd_messages_ga.properties +439 -0
  65. tabcmd-2.0.18/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
  66. tabcmd-2.0.18/tabcmd/locales/it/extra.properties +22 -0
  67. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/shared_wg_it.properties +248 -200
  68. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/tabcmd_messages_it.properties +212 -175
  69. tabcmd-2.0.18/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
  70. tabcmd-2.0.18/tabcmd/locales/ja/extra.properties +22 -0
  71. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/shared_wg_ja.properties +205 -157
  72. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/tabcmd_messages_ja.properties +153 -116
  73. tabcmd-2.0.18/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
  74. tabcmd-2.0.18/tabcmd/locales/ko/extra.properties +23 -0
  75. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/shared_wg_ko.properties +181 -133
  76. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/tabcmd_messages_ko.properties +136 -99
  77. tabcmd-2.0.18/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
  78. tabcmd-2.0.18/tabcmd/locales/pt/extra.properties +23 -0
  79. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/shared_wg_pt.properties +187 -139
  80. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/tabcmd_messages_pt.properties +137 -100
  81. tabcmd-2.0.18/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
  82. tabcmd-2.0.18/tabcmd/locales/sv/extra.properties +22 -0
  83. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/shared_wg_sv.properties +201 -153
  84. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/tabcmd_messages_sv.properties +191 -154
  85. tabcmd-2.0.18/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
  86. tabcmd-2.0.18/tabcmd/locales/zh/extra.properties +23 -0
  87. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/shared_wg_zh.properties +113 -65
  88. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/tabcmd_messages_zh.properties +99 -62
  89. tabcmd-2.0.18/tabcmd-linux.spec +61 -0
  90. tabcmd-2.0.18/tabcmd-mac.spec +60 -0
  91. tabcmd-2.0.18/tabcmd-windows.spec +60 -0
  92. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/PKG-INFO +7 -5
  93. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/SOURCES.txt +13 -44
  94. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/requires.txt +1 -1
  95. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_datasources_and_workbooks_command.py +78 -3
  96. tabcmd-2.0.18/tests/commands/test_geturl_utils.py +448 -0
  97. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_localize.py +0 -7
  98. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_projects_utils.py +5 -1
  99. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_publish_command.py +6 -1
  100. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_run_commands.py +36 -2
  101. tabcmd-2.0.18/tests/commands/test_server.py +113 -0
  102. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_session.py +86 -0
  103. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/online_tests.py +99 -53
  104. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/setup_e2e.py +13 -0
  105. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site_users.py +20 -0
  106. tabcmd-2.0.14/dodo.py +0 -200
  107. tabcmd-2.0.14/res/metadata.yml +0 -7
  108. tabcmd-2.0.14/tabcmd/__main__.py +0 -11
  109. tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/de.po +0 -68
  110. tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/shared_wg_de.po +0 -1789
  111. tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
  112. tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd.po +0 -3275
  113. tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd_messages_de.po +0 -1416
  114. tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/en-US.po +0 -83
  115. tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/shared_wg_en.po +0 -1789
  116. tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
  117. tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd.po +0 -3278
  118. tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd_messages_en.po +0 -1416
  119. tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/es.po +0 -68
  120. tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/shared_wg_es.po +0 -1789
  121. tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
  122. tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd.po +0 -3276
  123. tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd_messages_es.po +0 -1416
  124. tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/fr.po +0 -68
  125. tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/shared_wg_fr.po +0 -1789
  126. tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
  127. tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd.po +0 -3275
  128. tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd_messages_fr.po +0 -1416
  129. tabcmd-2.0.14/tabcmd/locales/fr/shared_wg_fr.properties +0 -481
  130. tabcmd-2.0.14/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -402
  131. tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/ga.po +0 -68
  132. tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/shared_wg_ga.po +0 -1792
  133. tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
  134. tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd.po +0 -3278
  135. tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd_messages_ga.po +0 -1416
  136. tabcmd-2.0.14/tabcmd/locales/ga/shared_wg_ga.properties +0 -481
  137. tabcmd-2.0.14/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -402
  138. tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/it.po +0 -68
  139. tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/shared_wg_it.po +0 -1789
  140. tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
  141. tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd.po +0 -3275
  142. tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd_messages_it.po +0 -1416
  143. tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/ja.po +0 -68
  144. tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/shared_wg_ja.po +0 -1789
  145. tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
  146. tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd.po +0 -3275
  147. tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd_messages_ja.po +0 -1416
  148. tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/ko.po +0 -70
  149. tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/shared_wg_ko.po +0 -1789
  150. tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
  151. tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd.po +0 -3277
  152. tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd_messages_ko.po +0 -1416
  153. tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/pt.po +0 -68
  154. tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/shared_wg_pt.po +0 -1789
  155. tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
  156. tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd.po +0 -3275
  157. tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd_messages_pt.po +0 -1416
  158. tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/shared_wg_sv.po +0 -1789
  159. tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/sv.po +0 -68
  160. tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
  161. tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd.po +0 -3275
  162. tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd_messages_sv.po +0 -1416
  163. tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/shared_wg_zh.po +0 -1789
  164. tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
  165. tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd.po +0 -3275
  166. tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd_messages_zh.po +0 -1416
  167. tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/zh.po +0 -68
  168. tabcmd-2.0.14/tabcmd-linux.spec +0 -49
  169. tabcmd-2.0.14/tabcmd-mac.spec +0 -51
  170. tabcmd-2.0.14/tabcmd-windows.spec +0 -54
  171. tabcmd-2.0.14/tests/commands/test_geturl_utils.py +0 -216
  172. {tabcmd-2.0.14 → tabcmd-2.0.18}/.coverage +0 -0
  173. {tabcmd-2.0.14 → tabcmd-2.0.18}/.coveragerc +0 -0
  174. {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/dependabot.yml +0 -0
  175. {tabcmd-2.0.14 → tabcmd-2.0.18}/LICENSE +0 -0
  176. {tabcmd-2.0.14 → tabcmd-2.0.18}/SECURITY.md +0 -0
  177. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/coverage.sh +0 -0
  178. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/makelocalealias.py +0 -0
  179. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/pygettext.py +0 -0
  180. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/license-checker.py +0 -0
  181. {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/pyinstaller.sh +0 -0
  182. {tabcmd-2.0.14 → tabcmd-2.0.18}/res/README.md +0 -0
  183. {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.icns +0 -0
  184. {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.ico +0 -0
  185. {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.png +0 -0
  186. {tabcmd-2.0.14 → tabcmd-2.0.18}/setup.cfg +0 -0
  187. {tabcmd-2.0.14 → tabcmd-2.0.18}/setup.py +0 -0
  188. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/__init__.py +0 -0
  189. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/__init__.py +0 -0
  190. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/__init__.py +0 -0
  191. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/login_command.py +0 -0
  192. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/logout_command.py +0 -0
  193. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/commands.py +0 -0
  194. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
  195. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/delete_command.py +0 -0
  196. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/__init__.py +0 -0
  197. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/decrypt_extracts_command.py +0 -0
  198. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/delete_extracts_command.py +0 -0
  199. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/encrypt_extracts_command.py +0 -0
  200. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/extracts.py +0 -0
  201. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/reencrypt_extracts_command.py +0 -0
  202. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/__init__.py +0 -0
  203. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/__init__.py +0 -0
  204. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/delete_project_command.py +0 -0
  205. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/__init__.py +0 -0
  206. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/create_site_command.py +0 -0
  207. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/delete_site_command.py +0 -0
  208. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/edit_site_command.py +0 -0
  209. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/list_command.py +0 -0
  210. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/__init__.py +0 -0
  211. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/__init__.py +0 -0
  212. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/_version.py +0 -0
  213. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/logger_config.py +0 -0
  214. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/map_of_commands.py +0 -0
  215. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
  216. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
  217. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
  218. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
  219. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
  220. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
  221. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
  222. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
  223. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
  224. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
  225. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/tabcmd.py +0 -0
  226. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/version.py +0 -0
  227. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/dependency_links.txt +0 -0
  228. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/entry_points.txt +0 -0
  229. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/top_level.txt +0 -0
  230. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.py +0 -0
  231. {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.spec +0 -0
  232. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/__init__.py +0 -0
  233. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/EmbeddedCredentials.twb +0 -0
  234. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/SampleDS.tds +0 -0
  235. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/WorkbookWithExtract.twbx +0 -0
  236. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/WorkbookWithoutExtract.twbx +0 -0
  237. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/World Indicators.tds +0 -0
  238. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/World Indicators.tdsx +0 -0
  239. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/detailed_users.csv +0 -0
  240. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/simple-data.twbx +0 -0
  241. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/usernames.csv +0 -0
  242. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/__init__.py +0 -0
  243. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_credential_file.txt +0 -0
  244. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_execution.py +0 -0
  245. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_listing_commands.py +0 -0
  246. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_server_handler.py +0 -0
  247. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_user_utils.py +0 -0
  248. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/__init__.py +0 -0
  249. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/language_tests.py +0 -0
  250. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/tests.py +0 -0
  251. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/tests_integration.py +0 -0
  252. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/__init__.py +0 -0
  253. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/common_setup.py +0 -0
  254. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_login_parser.py +0 -0
  255. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_logout_parser.py +0 -0
  256. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_add_user.py +0 -0
  257. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_extracts.py +0 -0
  258. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_group.py +0 -0
  259. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_project.py +0 -0
  260. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site.py +0 -0
  261. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_user.py +0 -0
  262. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
  263. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete.py +0 -0
  264. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_extracts.py +0 -0
  265. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_group.py +0 -0
  266. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_project.py +0 -0
  267. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site.py +0 -0
  268. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site_user.py +0 -0
  269. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_edit_site.py +0 -0
  270. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
  271. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_export.py +0 -0
  272. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_get_url.py +0 -0
  273. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_list_sites.py +0 -0
  274. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_login.py +0 -0
  275. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_publish.py +0 -0
  276. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_publish_samples.py +0 -0
  277. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
  278. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_refresh_extracts.py +0 -0
  279. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_remove_user.py +0 -0
  280. {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_runschedule.py +0 -0
@@ -5,6 +5,7 @@ on:
5
5
  pull_request:
6
6
  branches:
7
7
  - development
8
+ workflow_dispatch:
8
9
 
9
10
  jobs:
10
11
  build:
@@ -12,7 +13,7 @@ jobs:
12
13
  fail-fast: false
13
14
  matrix:
14
15
  os: [ubuntu-latest]
15
- python-version: ['3']
16
+ python-version: ['3.12']
16
17
 
17
18
  runs-on: ${{ matrix.os }}
18
19
 
@@ -38,6 +39,10 @@ jobs:
38
39
  - name: Generate coverage report
39
40
  run: pytest --junitxml=pytest.xml --cov=tabcmd tests/ | tee pytest-coverage.txt
40
41
 
42
+ # trying another coverage reporter for PRs/badges
43
+ - name: Coveralls
44
+ uses: coverallsapp/github-action@v2
45
+
41
46
  - name: Comment on pull request with coverage
42
47
  uses: MishaKav/pytest-coverage-comment@main
43
48
  with:
@@ -46,10 +51,6 @@ jobs:
46
51
  # Error: The head commit for this pull_request event is not ahead of the base commit.
47
52
  # Please submit an issue on this action's GitHub repo
48
53
  # report-only-changed-files: true
49
-
50
- # TODO update badge on readme:
51
- # generate badge with https://pypi.org/project/coverage-badge/
52
- # display it with https://github.com/Schneegans/dynamic-badges-action
53
-
54
+
54
55
  # TODO track docstring coverage
55
56
  # https://github.com/marketplace/actions/python-interrogate-check
@@ -48,7 +48,7 @@ jobs:
48
48
  # If you wish to specify custom queries, you can do so here or in a config file.
49
49
  # By default, queries listed here will override any specified in a config file.
50
50
  # Prefix the list here with "+" to use these queries and those in the config file.
51
-
51
+
52
52
  # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
53
  # queries: security-extended,security-and-quality
54
54
 
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Python
17
17
  uses: actions/setup-python@v5
18
18
  with:
19
- python-version: '3.7'
19
+ python-version: '3.12'
20
20
 
21
21
  - name: Install App and Extras
22
22
  run: |
@@ -1,16 +1,17 @@
1
- name: Release-Executable
1
+ name: Package-and-Upload
2
2
 
3
3
  # Pyinstaller requires that executables for each OS are built on that OS
4
- # This action is intended to build on each of the supported OS's: mac, windows, linux.
5
- # and then upload all three files to a new release
4
+ # This action is intended to build on each of the supported OS's: mac (x86 and arm), windows, linux.
5
+ # and then upload all four files to a new release
6
6
 
7
7
  # reference material:
8
8
  # https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions
9
9
  # https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670
10
10
 
11
11
  on:
12
- release:
13
- types: [published]
12
+ push:
13
+ tags:
14
+ - '*'
14
15
  workflow_dispatch:
15
16
 
16
17
  jobs:
@@ -26,21 +27,25 @@ jobs:
26
27
  TARGET: windows
27
28
  CMD_BUILD: >
28
29
  pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
30
+ UPLOAD_FILE_NAME: tabcmd.exe
29
31
  OUT_FILE_NAME: tabcmd.exe
30
32
  ASSET_MIME: application/vnd.microsoft.portable-executable
31
33
  - os: macos-13
32
34
  TARGET: macos
33
35
  CMD_BUILD: >
34
36
  pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
35
- BUNDLE_NAME: tabcmd.app
37
+ # the extension .app is not allowed as an upload by github
38
+ UPLOAD_FILE_NAME: tabcmd-x86.app.tar
39
+ # these two names must match the output defined in tabcmd-mac.spec
36
40
  OUT_FILE_NAME: tabcmd.app
37
41
  APP_BINARY_FILE_NAME: tabcmd
38
42
  ASSET_MIME: application/zip
39
43
  - os: macos-latest
44
+ # This must match the value set in tabcmd-mac.spec for the output folder
40
45
  TARGET: macos
41
46
  CMD_BUILD: >
42
47
  pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
43
- BUNDLE_NAME: tabcmd_arm64.app
48
+ UPLOAD_FILE_NAME: tabcmd_arm64.app.tar
44
49
  OUT_FILE_NAME: tabcmd.app
45
50
  APP_BINARY_FILE_NAME: tabcmd
46
51
  ASSET_MIME: application/zip
@@ -52,13 +57,14 @@ jobs:
52
57
  pyinstaller --clean -y --distpath ./dist/ubuntu tabcmd-linux.spec &&
53
58
  chown -R --reference=. ./dist/ubuntu
54
59
  OUT_FILE_NAME: tabcmd
60
+ UPLOAD_FILE_NAME: tabcmd
55
61
 
56
62
  steps:
57
63
  - uses: actions/checkout@v4
58
64
 
59
65
  - uses: actions/setup-python@v5
60
66
  with:
61
- python-version: 3.8
67
+ python-version: 3.12
62
68
 
63
69
  - name: Install dependencies and build
64
70
  run: |
@@ -86,18 +92,15 @@ jobs:
86
92
  run: |
87
93
  rm -f dist/${{ matrix.TARGET }}/${{ matrix.APP_BINARY_FILE_NAME }}
88
94
  cd dist/${{ matrix.TARGET }}
89
- tar -cvf ${{ matrix.BUNDLE_NAME }}.tar ${{ matrix.OUT_FILE_NAME }}
95
+ tar -cvf ${{ matrix.UPLOAD_FILE_NAME }} ${{ matrix.OUT_FILE_NAME }}
90
96
 
91
- - name: Upload artifact
92
- if: matrix.TARGET != 'macos'
93
- uses: actions/upload-artifact@v4
94
- with:
95
- name: ${{ matrix.OUT_FILE_NAME }}
96
- path: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}
97
97
 
98
- - name: Upload artifact for Mac
99
- if: matrix.TARGET == 'macos'
100
- uses: actions/upload-artifact@v4
98
+ - name: Upload binaries to release for ${{ matrix.TARGET }}
99
+ uses: svenstaro/upload-release-action@v2
101
100
  with:
102
- name: ${{ matrix.BUNDLE_NAME }}
103
- path: ./dist/${{ matrix.TARGET }}/${{ matrix.BUNDLE_NAME }}.tar
101
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
102
+ asset_name: ${{ matrix.UPLOAD_FILE_NAME }}
103
+ file: ./dist/${{ matrix.TARGET }}/${{ matrix.UPLOAD_FILE_NAME }}
104
+ tag: ${{ github.ref_name }}
105
+ overwrite: true
106
+ promote: true
@@ -20,7 +20,7 @@ jobs:
20
20
  fetch-depth: 0
21
21
  - uses: actions/setup-python@v5
22
22
  with:
23
- python-version: 3.8
23
+ python-version: 3.12
24
24
  - name: Build dist files
25
25
  run: |
26
26
  python --version
@@ -41,4 +41,3 @@ jobs:
41
41
  uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
42
42
  with:
43
43
  password: ${{ secrets.PYPI_API_TOKEN }}
44
-
@@ -18,7 +18,7 @@ jobs:
18
18
  fail-fast: false
19
19
  matrix:
20
20
  os: [ubuntu-latest, macos-latest, windows-latest]
21
- python-version: ['3.x']
21
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
22
22
 
23
23
  runs-on: ${{ matrix.os }}
24
24
 
@@ -18,7 +18,7 @@ jobs:
18
18
  fail-fast: true
19
19
  matrix:
20
20
  os: [ubuntu-latest, macos-latest, windows-latest]
21
- python-version: ['3.9', '3.10', '3']
21
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
22
22
 
23
23
  runs-on: ${{ matrix.os }}
24
24
 
@@ -15,7 +15,7 @@ jobs:
15
15
  fail-fast: true
16
16
  matrix:
17
17
  os: [ubuntu-latest, macos-latest, windows-latest]
18
- python-version: ['3.8', '3.9', '3.10', '3']
18
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
19
19
 
20
20
  runs-on: ${{ matrix.os }}
21
21
 
@@ -41,6 +41,9 @@ pytest.xml
41
41
  # doit
42
42
  .doit.*
43
43
 
44
+ # localization intermediate files
45
+ *.po
46
+
44
47
  # venv
45
48
  site-packages
46
49
 
@@ -48,3 +51,4 @@ site-packages
48
51
  tabcmd-dev
49
52
  workon
50
53
  test.junit.xml
54
+ *.out
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: tabcmd
3
- Version: 2.0.14
3
+ Version: 2.0.18
4
4
  Summary: A command line client for working with Tableau Server.
5
5
  Author-email: Tableau <github@tableau.com>
6
6
  License: The MIT License (MIT)
@@ -29,11 +29,12 @@ License: The MIT License (MIT)
29
29
  Project-URL: repository, https://github.com/tableau/tabcmd
30
30
  Classifier: Programming Language :: Python
31
31
  Classifier: Programming Language :: Python :: 3
32
- Classifier: Programming Language :: Python :: 3.8
33
32
  Classifier: Programming Language :: Python :: 3.9
34
33
  Classifier: Programming Language :: Python :: 3.10
35
34
  Classifier: Programming Language :: Python :: 3.11
36
- Requires-Python: >=3.7
35
+ Classifier: Programming Language :: Python :: 3.12
36
+ Classifier: Programming Language :: Python :: 3.13
37
+ Requires-Python: >=3.9
37
38
  Description-Content-Type: text/markdown
38
39
  License-File: LICENSE
39
40
  Requires-Dist: appdirs
@@ -47,7 +48,7 @@ Requires-Dist: types-appdirs
47
48
  Requires-Dist: types-mock
48
49
  Requires-Dist: types-requests
49
50
  Requires-Dist: types-setuptools
50
- Requires-Dist: tableauserverclient==0.31
51
+ Requires-Dist: tableauserverclient==0.37
51
52
  Requires-Dist: urllib3
52
53
  Provides-Extra: test
53
54
  Requires-Dist: black<23,>=22; extra == "test"
@@ -64,6 +65,7 @@ Requires-Dist: ftfy; extra == "localize"
64
65
  Provides-Extra: package
65
66
  Requires-Dist: pyinstaller==5.13; extra == "package"
66
67
  Requires-Dist: doit; extra == "package"
68
+ Dynamic: license-file
67
69
 
68
70
 
69
71
  This program is an executable command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
@@ -1,6 +1,8 @@
1
1
  # Tabcmd
2
2
 
3
3
  [![Tableau Supported](https://img.shields.io/badge/Support%20Level-Tableau%20Supported-53bd92.svg)](https://www.tableau.com/support-levels-it-and-developer-tools)
4
+
5
+ [![Code coverage]([https://coveralls.io/repos/tableau/tabcmd/badge.png])(https://github.com/tableau/tabcmd/actions)
4
6
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
5
7
  [![Python tests](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml/badge.svg)](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml)
6
8
  [![Pypi smoke tests](https://github.com/tableau/tabcmd/actions/workflows/python-app.yml/badge.svg)](https://github.com/tableau/tabcmd/actions/workflows/python-app.yml)
@@ -1,7 +1,8 @@
1
1
  #! /usr/bin/env python3
2
2
  # Written by Martin v. Löwis <loewis@informatik.hu-berlin.de>
3
-
4
- """ Updated to handle utf-8 files and give better error messages
3
+ """
4
+ Fetched from https://github.com/python/cpython/blob/main/Tools/i18n/msgfmt.py
5
+ Updated to handle utf-8 files and give better error messages
5
6
  TODO contribute back?
6
7
  """
7
8
 
@@ -107,7 +108,7 @@ def make(filename, outfile):
107
108
  CTXT = 3
108
109
 
109
110
  encoding = 'utf-8'
110
- print("Assumed encoding", encoding)
111
+ print("msgfmt::Assumed encoding", encoding)
111
112
 
112
113
  # Compute .mo name from .po name and arguments
113
114
  if filename.endswith('.po'):
@@ -195,7 +196,7 @@ def make(filename, outfile):
195
196
  try:
196
197
  l = ast.literal_eval(l)
197
198
  except:
198
- print("ERROR (skipped)", lno, msgid)
199
+ print("\tERROR (skipped)", lno, msgid)
199
200
  pass
200
201
  if section == CTXT:
201
202
  msgctxt += l.encode(encoding)
@@ -5,7 +5,7 @@ TO DO: contribute changes back and go back to installing from pypi
5
5
  """
6
6
 
7
7
  import click
8
-
8
+ from datetime import datetime
9
9
 
10
10
  @click.command()
11
11
  @click.argument('source', type=click.File('rt', encoding='utf-8'))
@@ -13,36 +13,43 @@ import click
13
13
  @click.option('-l', '--language', type=click.STRING, help='The translation language')
14
14
  @click.option('-p', '--project', type=click.STRING, help='The name of the project')
15
15
  @click.option('-e', '--encoding', type=click.STRING, help='The encoding wanted')
16
- def to_po(source, destination, encoding, language, project):
16
+ @click.option('-c', '--copyright', type=click.STRING, help='The person/organization holding copyright')
17
+ def to_po(source, destination, encoding, language, project, copyright):
17
18
  """Converts a property file to a Gettext PO file.
18
19
 
19
20
  SOURCE is the path of the property file to convert.
20
21
 
21
22
  DESTINATION is the path of the Gettext PO file to create
22
23
  """
23
-
24
+ year = datetime.now().strftime('%Y')
24
25
  header = """msgid ""
25
26
  msgstr ""
26
- "MIME-Version: 1.0\\n"
27
- "Content-Type: text/plain; charset={encoding}\\n"
27
+ "MIME-Version: 1.0\\n\\n"
28
+ "Content-Type: text/plain; charset={encoding}\\n\\n"
28
29
  "Content-Transfer-Encoding: 8bit\\n"
29
30
  "X-Generator: prop2po\\n"
30
31
  "Project-Id-Version: {project}\\n"
31
32
  "Language: {language}\\n"
32
- # Copyright (C) YEAR Tableau Software
33
- """
33
+ # Copyright (C) {year} {copyright}
34
+ """
35
+
34
36
  lines = source.readlines()
35
- print(lines)
36
37
  destination.write(header.format(
37
38
  language=language,
38
39
  project=project,
39
- encoding=encoding
40
+ encoding=encoding,
41
+ year=year,
42
+ copyright=copyright
40
43
  ))
41
44
  for line in lines:
42
45
  if not line.isspace():
43
- parts = line.split('=')
46
+ # Split only on the first instance of '=' so that the character can also appear in the string
47
+ parts = line.split('=', 1)
44
48
  # TODO it fails on comments/lines with less than two parts after splitting
45
- destination.write('#:\n' + 'msgid "' + parts[0] + '"\n' 'msgstr "' + parts[1][:-1] + '"\n\n')
49
+ try:
50
+ destination.write('#:\n' + 'msgid "' + parts[0] + '"\n' 'msgstr "' + parts[1][:-1] + '"\n\n')
51
+ except IndexError as e:
52
+ print("FAILED on line{}".format(line))
46
53
 
47
54
 
48
55
  if __name__ == '__main__':
@@ -113,12 +113,15 @@ _(note that running mypy and black with no errors is required before code will b
113
113
  > You can only build an executable for the platform you are running pyinstaller on. The spec for each platform is stored in tabcmd-*platform*.spec and the exact build commands for each platform can be checked in [our packaging script](.github/workflows//package.yml).
114
114
 
115
115
  e.g for Windows
116
- > pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
116
+ > pyinstaller tabcmd-windows.spec --clean --distpath .\dist\windows
117
117
 
118
- produces dist/tabcmd.exe
118
+ produces dist\windows\tabcmd.exe
119
119
  To run the newly created executable, from a console window in the same directory as the file tabcmd.py:
120
120
 
121
- > dist/tabcmd/tabcmd.exe --help
121
+ > dist\windows\tabcmd.exe --help
122
+ > dist\windows\tabcmd.exe publish --country FR --language FR cookie.twbx
123
+
124
+ To investigate what's packaged in the executable, use https://pyinstxtractor-web.netlify.app/
122
125
 
123
126
 
124
127
 
@@ -128,7 +131,9 @@ Strings are stored in /tabcmd/locales/[language]/*.properties by id and referred
128
131
  > string = _("string.id")
129
132
 
130
133
  For runtime execution these files must be converted from .properties -> .po -> .mo files. These .mo files will be bundled in the the package by pyinstaller. The entire conversion action is done by a .doit script:
131
- > doit mo
134
+ > doit properties po mo
135
+ You can also check that there are no malformed/forgotten message keys in the code with
136
+ > doit strings
132
137
 
133
138
  ### Versioning
134
139
 
@@ -149,7 +154,11 @@ The version reflected in the executable (tabcmd -v) is stored in a metadata file
149
154
  - run pyinstaller to create executables
150
155
  - save the executable as an artifact on that job.
151
156
 
152
- 1. Find the artifacts created by this job and manually copy them to the new release. (Beware! of what the file type is, github does something weird with zipping it if you download with curl etc. TODO: automate workflow with a github action)
157
+ 1. Find the artifacts created by this job and manually copy them to the new release.
158
+ - manually download. They will all be returned as zips
159
+ - unzip the windows.exe and mac.app.tar files and upload those
160
+ - do not unzip the linux app, github doesn't like it. upload as tabcmd.zip
161
+ (Pay attention to what the file type is, github also sends it as a zip if you download with curl etc. TODO: automate workflow with a github action)
153
162
 
154
163
  1. To trigger publishing to pypi run the manual workflow on main with 'pypi'. (TODO: automate trigger)
155
164