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.
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/check-coverage.yml +7 -6
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/codeql-analysis.yml +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/generate-metadata.yml +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/package.yml +23 -20
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/publish-pypi.yml +1 -2
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/python-app.yml +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/run-e2-tests.yml +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/workflows/run-tests.yml +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.gitignore +4 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/PKG-INFO +7 -5
- {tabcmd-2.0.14 → tabcmd-2.0.18}/README.md +2 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/msgfmt.py +5 -4
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/prop2po.py +18 -11
- {tabcmd-2.0.14 → tabcmd-2.0.18}/contributing.md +14 -5
- tabcmd-2.0.18/dodo.py +348 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/pyproject.toml +6 -5
- tabcmd-2.0.18/res/metadata.yml +7 -0
- tabcmd-2.0.18/tabcmd/__main__.py +17 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/session.py +14 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/constants.py +6 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +55 -16
- tabcmd-2.0.18/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +198 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/export_command.py +44 -45
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +39 -110
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/publish_command.py +16 -7
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/create_extracts_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/refresh_extracts_command.py +5 -10
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/create_group_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/delete_group_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/create_project_command.py +2 -2
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/publish_samples_command.py +4 -2
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/server.py +49 -26
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/list_sites_command.py +2 -3
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/add_users_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/create_site_users.py +2 -2
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/create_users_command.py +3 -3
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/delete_site_users_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/remove_users_command.py +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/user_data.py +16 -10
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/global_options.py +9 -6
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/localize.py +10 -9
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/parent_parser.py +10 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/tabcmd_controller.py +13 -9
- tabcmd-2.0.18/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/de/extra.properties +23 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/shared_wg_de.properties +219 -171
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/tabcmd_messages_de.properties +170 -133
- tabcmd-2.0.18/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/en/extra.properties +22 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/en/shared_wg_en.properties +91 -35
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/en/tabcmd_messages_en.properties +40 -5
- tabcmd-2.0.18/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/es/extra.properties +23 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/shared_wg_es.properties +186 -138
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/tabcmd_messages_es.properties +144 -107
- tabcmd-2.0.18/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/fr/extra.properties +22 -0
- tabcmd-2.0.18/tabcmd/locales/fr/shared_wg_fr.properties +529 -0
- tabcmd-2.0.18/tabcmd/locales/fr/tabcmd_messages_fr.properties +439 -0
- tabcmd-2.0.18/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ga/extra.properties +23 -0
- tabcmd-2.0.18/tabcmd/locales/ga/shared_wg_ga.properties +529 -0
- tabcmd-2.0.18/tabcmd/locales/ga/tabcmd_messages_ga.properties +439 -0
- tabcmd-2.0.18/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/it/extra.properties +22 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/shared_wg_it.properties +248 -200
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/tabcmd_messages_it.properties +212 -175
- tabcmd-2.0.18/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ja/extra.properties +22 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/shared_wg_ja.properties +205 -157
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/tabcmd_messages_ja.properties +153 -116
- tabcmd-2.0.18/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ko/extra.properties +23 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/shared_wg_ko.properties +181 -133
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/tabcmd_messages_ko.properties +136 -99
- tabcmd-2.0.18/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/pt/extra.properties +23 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/shared_wg_pt.properties +187 -139
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/tabcmd_messages_pt.properties +137 -100
- tabcmd-2.0.18/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/sv/extra.properties +22 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/shared_wg_sv.properties +201 -153
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/tabcmd_messages_sv.properties +191 -154
- tabcmd-2.0.18/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/zh/extra.properties +23 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/shared_wg_zh.properties +113 -65
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/tabcmd_messages_zh.properties +99 -62
- tabcmd-2.0.18/tabcmd-linux.spec +61 -0
- tabcmd-2.0.18/tabcmd-mac.spec +60 -0
- tabcmd-2.0.18/tabcmd-windows.spec +60 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/PKG-INFO +7 -5
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/SOURCES.txt +13 -44
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/requires.txt +1 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_datasources_and_workbooks_command.py +78 -3
- tabcmd-2.0.18/tests/commands/test_geturl_utils.py +448 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_localize.py +0 -7
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_projects_utils.py +5 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_publish_command.py +6 -1
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_run_commands.py +36 -2
- tabcmd-2.0.18/tests/commands/test_server.py +113 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_session.py +86 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/online_tests.py +99 -53
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/setup_e2e.py +13 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site_users.py +20 -0
- tabcmd-2.0.14/dodo.py +0 -200
- tabcmd-2.0.14/res/metadata.yml +0 -7
- tabcmd-2.0.14/tabcmd/__main__.py +0 -11
- tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/de.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/shared_wg_de.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/de/LC_MESSAGES/tabcmd_messages_de.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/en-US.po +0 -83
- tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/shared_wg_en.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd.po +0 -3278
- tabcmd-2.0.14/tabcmd/locales/en/LC_MESSAGES/tabcmd_messages_en.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/es.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/shared_wg_es.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd.po +0 -3276
- tabcmd-2.0.14/tabcmd/locales/es/LC_MESSAGES/tabcmd_messages_es.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/fr.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/shared_wg_fr.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/fr/LC_MESSAGES/tabcmd_messages_fr.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/fr/shared_wg_fr.properties +0 -481
- tabcmd-2.0.14/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -402
- tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/ga.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/shared_wg_ga.po +0 -1792
- tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd.po +0 -3278
- tabcmd-2.0.14/tabcmd/locales/ga/LC_MESSAGES/tabcmd_messages_ga.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/ga/shared_wg_ga.properties +0 -481
- tabcmd-2.0.14/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -402
- tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/it.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/shared_wg_it.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/it/LC_MESSAGES/tabcmd_messages_it.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/ja.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/shared_wg_ja.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/ja/LC_MESSAGES/tabcmd_messages_ja.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/ko.po +0 -70
- tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/shared_wg_ko.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd.po +0 -3277
- tabcmd-2.0.14/tabcmd/locales/ko/LC_MESSAGES/tabcmd_messages_ko.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/pt.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/shared_wg_pt.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/pt/LC_MESSAGES/tabcmd_messages_pt.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/shared_wg_sv.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/sv.po +0 -68
- tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/sv/LC_MESSAGES/tabcmd_messages_sv.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/shared_wg_zh.po +0 -1789
- tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/tabcmd_messages_zh.po +0 -1416
- tabcmd-2.0.14/tabcmd/locales/zh/LC_MESSAGES/zh.po +0 -68
- tabcmd-2.0.14/tabcmd-linux.spec +0 -49
- tabcmd-2.0.14/tabcmd-mac.spec +0 -51
- tabcmd-2.0.14/tabcmd-windows.spec +0 -54
- tabcmd-2.0.14/tests/commands/test_geturl_utils.py +0 -216
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.coverage +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.coveragerc +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/.github/dependabot.yml +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/LICENSE +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/SECURITY.md +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/coverage.sh +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/makelocalealias.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/i18n/pygettext.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/license-checker.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/bin/pyinstaller.sh +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/res/README.md +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.icns +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.ico +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/res/tabcmd.png +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/setup.cfg +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/setup.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/login_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/auth/logout_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/commands.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/delete_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/decrypt_extracts_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/delete_extracts_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/encrypt_extracts_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/extracts/reencrypt_extracts_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/group/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/project/delete_project_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/create_site_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/delete_site_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/edit_site_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/site/list_command.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/commands/user/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/_version.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/logger_config.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/execution/map_of_commands.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/tabcmd.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd/version.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/dependency_links.txt +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/entry_points.txt +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.egg-info/top_level.txt +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tabcmd.spec +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/EmbeddedCredentials.twb +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/SampleDS.tds +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/WorkbookWithExtract.twbx +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/WorkbookWithoutExtract.twbx +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/World Indicators.tds +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/World Indicators.tdsx +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/detailed_users.csv +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/simple-data.twbx +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/assets/usernames.csv +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_credential_file.txt +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_execution.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_listing_commands.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_server_handler.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/commands/test_user_utils.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/language_tests.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/tests.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/e2e/tests_integration.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/__init__.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/common_setup.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_login_parser.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_logout_parser.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_add_user.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_group.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_project.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_create_user.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_group.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_project.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site_user.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_edit_site.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_export.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_get_url.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_list_sites.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_login.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_publish.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_publish_samples.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_refresh_extracts.py +0 -0
- {tabcmd-2.0.14 → tabcmd-2.0.18}/tests/parsers/test_parser_remove_user.py +0 -0
- {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
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
name:
|
|
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
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
|
99
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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.
|
|
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
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: tabcmd
|
|
3
|
-
Version: 2.0.
|
|
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
|
-
|
|
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.
|
|
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
|
[](https://www.tableau.com/support-levels-it-and-developer-tools)
|
|
4
|
+
|
|
5
|
+
[(https://github.com/tableau/tabcmd/actions)
|
|
4
6
|
[](https://github.com/psf/black)
|
|
5
7
|
[](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml)
|
|
6
8
|
[](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
|
-
|
|
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("
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 --
|
|
116
|
+
> pyinstaller tabcmd-windows.spec --clean --distpath .\dist\windows
|
|
117
117
|
|
|
118
|
-
produces dist
|
|
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
|
|
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.
|
|
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
|
|