tabcmd 2.0.21__tar.gz → 2.0.34__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.21 → tabcmd-2.0.34}/.github/dependabot.yml +4 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/check-coverage.yml +6 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/check-strings.yml +2 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/codeql-analysis.yml +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/generate-metadata.yml +4 -2
- tabcmd-2.0.34/.github/workflows/package.yml +244 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/publish-pypi.yml +7 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/python-app.yml +5 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/release-on-merge.yml +4 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/run-e2-tests.yml +4 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.github/workflows/run-tests.yml +4 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.gitignore +11 -2
- tabcmd-2.0.34/MANIFEST.in +2 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/PKG-INFO +9 -7
- tabcmd-2.0.34/bin/i18n/README.md +36 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/check_strings.py +52 -49
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/prop2po.py +5 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/contributing.md +32 -13
- {tabcmd-2.0.21 → tabcmd-2.0.34}/dodo.py +157 -116
- {tabcmd-2.0.21 → tabcmd-2.0.34}/pyproject.toml +8 -8
- tabcmd-2.0.34/tabcmd/__main__.py +21 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/_version.py +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/auth/session.py +116 -20
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/constants.py +4 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +65 -16
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/delete_command.py +20 -6
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/export_command.py +28 -11
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +8 -6
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/publish_command.py +24 -6
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +2 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/extracts.py +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/refresh_extracts_command.py +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/group/delete_group_command.py +2 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/project/create_project_command.py +1 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/project/delete_project_command.py +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/project/publish_samples_command.py +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/server.py +1 -1
- tabcmd-2.0.34/tabcmd/commands/site/edit_site_command.py +112 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/site/list_command.py +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/site/list_sites_command.py +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/add_users_command.py +1 -1
- tabcmd-2.0.34/tabcmd/commands/user/create_site_users.py +184 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/create_users_command.py +8 -4
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/remove_users_command.py +2 -2
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/user_data.py +45 -17
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/global_options.py +167 -6
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/localize.py +7 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/logger_config.py +53 -10
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/parent_parser.py +3 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/tabcmd_controller.py +3 -6
- tabcmd-2.0.34/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/de/shared_wg_de.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/de/tabcmd_messages_de.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/en/shared_wg_en.properties +23 -0
- tabcmd-2.0.34/tabcmd/locales/en/tabcmd_messages_en.properties +260 -0
- tabcmd-2.0.34/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/es/shared_wg_es.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/es/tabcmd_messages_es.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/fr/shared_wg_fr.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/fr/tabcmd_messages_fr.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/ga/shared_wg_ga.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/ga/tabcmd_messages_ga.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/it/shared_wg_it.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/it/tabcmd_messages_it.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/ja/shared_wg_ja.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/ja/tabcmd_messages_ja.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/ko/shared_wg_ko.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/ko/tabcmd_messages_ko.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/pt/shared_wg_pt.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/pt/tabcmd_messages_pt.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/sv/shared_wg_sv.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/sv/tabcmd_messages_sv.properties +169 -0
- tabcmd-2.0.34/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.34/tabcmd/locales/zh/shared_wg_zh.properties +20 -0
- tabcmd-2.0.34/tabcmd/locales/zh/tabcmd_messages_zh.properties +169 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/version.py +3 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd-linux.spec +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd-mac.spec +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd-windows.spec +1 -1
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/PKG-INFO +9 -7
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/SOURCES.txt +7 -11
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/requires.txt +8 -6
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/scm_file_list.json +166 -181
- tabcmd-2.0.34/tabcmd.egg-info/scm_version.json +8 -0
- tabcmd-2.0.34/tests/assets/createsiteusers_job_with_errors.xml +26 -0
- tabcmd-2.0.34/tests/assets/filter_test_data.csv +33 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/mock_data.py +1 -0
- tabcmd-2.0.34/tests/assets/users_csvimport_bugs_1811.csv +2 -0
- tabcmd-2.0.34/tests/commands/test_create_site_users.py +262 -0
- tabcmd-2.0.34/tests/commands/test_datasources_and_workbooks_command.py +416 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_geturl_utils.py +25 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_listing_commands.py +1 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_localize.py +21 -0
- tabcmd-2.0.34/tests/commands/test_logger_config.py +188 -0
- tabcmd-2.0.34/tests/commands/test_publish_command.py +282 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_run_commands.py +3 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_session.py +464 -3
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_user_utils.py +76 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/e2e/online_tests.py +102 -14
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_extracts.py +59 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_site_users.py +23 -0
- tabcmd-2.0.34/tests/parsers/test_parser_delete.py +91 -0
- tabcmd-2.0.34/tests/parsers/test_parser_edit_site.py +257 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_export.py +14 -0
- tabcmd-2.0.34/tests/parsers/test_parser_login.py +0 -0
- tabcmd-2.0.34/tests/test_main.py +77 -0
- tabcmd-2.0.21/.github/workflows/package.yml +0 -114
- tabcmd-2.0.21/bin/i18n/README.md +0 -21
- tabcmd-2.0.21/tabcmd/__main__.py +0 -17
- tabcmd-2.0.21/tabcmd/commands/site/edit_site_command.py +0 -50
- tabcmd-2.0.21/tabcmd/commands/user/create_site_users.py +0 -73
- tabcmd-2.0.21/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/de/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/de/shared_wg_de.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/de/tabcmd_messages_de.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/en/extra.properties +0 -22
- tabcmd-2.0.21/tabcmd/locales/en/shared_wg_en.properties +0 -95
- tabcmd-2.0.21/tabcmd/locales/en/tabcmd_messages_en.properties +0 -394
- tabcmd-2.0.21/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/es/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/es/shared_wg_es.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/es/tabcmd_messages_es.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/fr/extra.properties +0 -22
- tabcmd-2.0.21/tabcmd/locales/fr/shared_wg_fr.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/ga/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/ga/shared_wg_ga.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/it/extra.properties +0 -22
- tabcmd-2.0.21/tabcmd/locales/it/shared_wg_it.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/it/tabcmd_messages_it.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/ja/extra.properties +0 -22
- tabcmd-2.0.21/tabcmd/locales/ja/shared_wg_ja.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/ja/tabcmd_messages_ja.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/ko/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/ko/shared_wg_ko.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/ko/tabcmd_messages_ko.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/pt/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/pt/shared_wg_pt.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/pt/tabcmd_messages_pt.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/sv/extra.properties +0 -22
- tabcmd-2.0.21/tabcmd/locales/sv/shared_wg_sv.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/sv/tabcmd_messages_sv.properties +0 -439
- tabcmd-2.0.21/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.21/tabcmd/locales/zh/extra.properties +0 -23
- tabcmd-2.0.21/tabcmd/locales/zh/shared_wg_zh.properties +0 -529
- tabcmd-2.0.21/tabcmd/locales/zh/tabcmd_messages_zh.properties +0 -439
- tabcmd-2.0.21/tabcmd.egg-info/scm_version.json +0 -8
- tabcmd-2.0.21/tests/commands/test_datasources_and_workbooks_command.py +0 -209
- tabcmd-2.0.21/tests/commands/test_logger_config.py +0 -43
- tabcmd-2.0.21/tests/commands/test_publish_command.py +0 -127
- tabcmd-2.0.21/tests/parsers/test_parser_delete.py +0 -28
- tabcmd-2.0.21/tests/parsers/test_parser_edit_site.py +0 -61
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.coverage +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/.coveragerc +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/CODEOWNERS +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/LICENSE +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/README.md +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/SECURITY.md +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/WorldIndicators.tdsx +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/coverage.sh +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/makelocalealias.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/msgfmt.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/i18n/pygettext.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/license-checker.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/bin/pyinstaller.sh +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/res/README.md +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/res/metadata.yml +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/res/tabcmd.icns +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/res/tabcmd.ico +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/res/tabcmd.png +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/setup.cfg +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/setup.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/auth/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/auth/login_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/auth/logout_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/commands.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/create_extracts_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/decrypt_extracts_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/delete_extracts_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/encrypt_extracts_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/extracts/reencrypt_extracts_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/group/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/group/create_group_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/project/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/site/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/site/create_site_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/site/delete_site_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/commands/user/delete_site_users_command.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/_version.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/execution/map_of_commands.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/es → tabcmd-2.0.34/tabcmd/locales/en}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/fr → tabcmd-2.0.34/tabcmd/locales/es}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/ga → tabcmd-2.0.34/tabcmd/locales/fr}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/it → tabcmd-2.0.34/tabcmd/locales/ga}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/ja → tabcmd-2.0.34/tabcmd/locales/it}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/ko → tabcmd-2.0.34/tabcmd/locales/ja}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/pt → tabcmd-2.0.34/tabcmd/locales/ko}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/sv → tabcmd-2.0.34/tabcmd/locales/pt}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21/tabcmd/locales/zh → tabcmd-2.0.34/tabcmd/locales/sv}/LC_MESSAGES/.gitkeep +0 -0
- tabcmd-2.0.21/tests/__init__.py → tabcmd-2.0.34/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd/tabcmd.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/dependency_links.txt +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/entry_points.txt +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.egg-info/top_level.txt +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tabcmd.spec +0 -0
- {tabcmd-2.0.21/tests/commands → tabcmd-2.0.34/tests}/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/EmbeddedCredentials.twb +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/SampleDS.tds +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/WorkbookWithExtract.twbx +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/WorkbookWithoutExtract.twbx +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/WorldIndicators.tds +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/WorldIndicators.tdsx +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/detailed_users.csv +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/live_mysql.tds +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/assets/usernames.csv +0 -0
- {tabcmd-2.0.21/tests/e2e → tabcmd-2.0.34/tests/commands}/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_credential_file.txt +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_execution.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_projects_utils.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_server.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_server_handler.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_server_item_selection.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/commands/test_version.py +0 -0
- {tabcmd-2.0.21/tests/parsers → tabcmd-2.0.34/tests/e2e}/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/e2e/language_tests.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/e2e/setup_e2e.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/e2e/tests.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/e2e/tests_integration.py +1 -1
- /tabcmd-2.0.21/tests/parsers/test_parser_login.py → /tabcmd-2.0.34/tests/parsers/__init__.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/common_setup.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_login_parser.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_logout_parser.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_add_user.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_group.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_project.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_site.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_create_user.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_extracts.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_group.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_project.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_site.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_site_user.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_get_url.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_list_sites.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_publish.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_publish_samples.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_refresh_extracts.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_remove_user.py +0 -0
- {tabcmd-2.0.21 → tabcmd-2.0.34}/tests/parsers/test_parser_runschedule.py +0 -0
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
version: 2
|
|
9
9
|
updates:
|
|
10
|
-
- package-ecosystem: "pip"
|
|
11
|
-
directory: "/"
|
|
12
|
-
|
|
13
|
-
target-branch: "develop"
|
|
10
|
+
- package-ecosystem: "pip"
|
|
11
|
+
directory: "/"
|
|
12
|
+
target-branch: "development"
|
|
14
13
|
schedule:
|
|
15
14
|
interval: "weekly"
|
|
16
15
|
|
|
17
16
|
- package-ecosystem: "github-actions"
|
|
18
17
|
directory: "/"
|
|
18
|
+
target-branch: "development"
|
|
19
19
|
schedule:
|
|
20
20
|
interval: "weekly"
|
|
@@ -18,10 +18,10 @@ jobs:
|
|
|
18
18
|
runs-on: ${{ matrix.os }}
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@v7
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
|
|
23
23
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
24
|
-
uses: actions/setup-python@
|
|
24
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
25
25
|
with:
|
|
26
26
|
python-version: ${{ matrix.python-version }}
|
|
27
27
|
|
|
@@ -32,6 +32,8 @@ jobs:
|
|
|
32
32
|
python -m pip install --upgrade build
|
|
33
33
|
pip install .[versioning]
|
|
34
34
|
doit version
|
|
35
|
+
pip install .[localize]
|
|
36
|
+
doit localize
|
|
35
37
|
pip install .
|
|
36
38
|
python -m build
|
|
37
39
|
pip install .[test]
|
|
@@ -42,10 +44,10 @@ jobs:
|
|
|
42
44
|
|
|
43
45
|
# trying another coverage reporter for PRs/badges
|
|
44
46
|
- name: Coveralls
|
|
45
|
-
uses: coverallsapp/github-action@v2
|
|
47
|
+
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
|
|
46
48
|
|
|
47
49
|
- name: Comment on pull request with coverage
|
|
48
|
-
uses: MishaKav/pytest-coverage-comment@main
|
|
50
|
+
uses: MishaKav/pytest-coverage-comment@4cfb48edc8f875ac019afdcfd97c48d78ad2b723 # v1.13.1 (was @main)
|
|
49
51
|
continue-on-error: true
|
|
50
52
|
with:
|
|
51
53
|
pytest-coverage-path: ./pytest-coverage.txt
|
|
@@ -15,10 +15,10 @@ jobs:
|
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
19
|
|
|
20
20
|
- name: Set up Python
|
|
21
|
-
uses: actions/setup-python@
|
|
21
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
22
22
|
with:
|
|
23
23
|
python-version: '3.12'
|
|
24
24
|
|
|
@@ -38,11 +38,11 @@ jobs:
|
|
|
38
38
|
|
|
39
39
|
steps:
|
|
40
40
|
- name: Checkout repository
|
|
41
|
-
uses: actions/checkout@v7
|
|
41
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
42
42
|
|
|
43
43
|
# Initializes the CodeQL tools for scanning.
|
|
44
44
|
- name: Initialize CodeQL
|
|
45
|
-
uses: github/codeql-action/init@v4
|
|
45
|
+
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
|
46
46
|
with:
|
|
47
47
|
languages: ${{ matrix.language }}
|
|
48
48
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
@@ -53,6 +53,6 @@ jobs:
|
|
|
53
53
|
# queries: security-extended,security-and-quality
|
|
54
54
|
|
|
55
55
|
- name: Perform CodeQL Analysis
|
|
56
|
-
uses: github/codeql-action/analyze@v4
|
|
56
|
+
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
|
57
57
|
with:
|
|
58
58
|
category: "/language:${{matrix.language}}"
|
|
@@ -11,10 +11,10 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@v7
|
|
14
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
15
15
|
|
|
16
16
|
- name: Set up Python
|
|
17
|
-
uses: actions/setup-python@
|
|
17
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
18
18
|
with:
|
|
19
19
|
python-version: '3.12'
|
|
20
20
|
|
|
@@ -25,6 +25,8 @@ jobs:
|
|
|
25
25
|
python -m pip install --upgrade build
|
|
26
26
|
pip install .[versioning]
|
|
27
27
|
doit version
|
|
28
|
+
pip install .[localize]
|
|
29
|
+
doit localize
|
|
28
30
|
pip install .
|
|
29
31
|
python -m build
|
|
30
32
|
pip install .[test]
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
name: Package-and-Upload
|
|
2
|
+
|
|
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 (x86 and arm), windows, linux.
|
|
5
|
+
# and then upload all four files to a new release
|
|
6
|
+
|
|
7
|
+
# reference material:
|
|
8
|
+
# https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions
|
|
9
|
+
# https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
# Manual repair path for a published release. The release tag is resolved from
|
|
15
|
+
# the release event, then inputs.release_tag, then github.ref_name when
|
|
16
|
+
# dispatched at a tag ref. Don't dispatch for a draft release: the upload step
|
|
17
|
+
# finds the release by tag, drafts can't be found that way, and the action then
|
|
18
|
+
# creates a second release for the same tag.
|
|
19
|
+
# There is deliberately no `push: tags` trigger: release-on-merge.yml pushes a
|
|
20
|
+
# tag on every merge to main, and a build should only run once a release is published.
|
|
21
|
+
workflow_dispatch:
|
|
22
|
+
inputs:
|
|
23
|
+
release_tag:
|
|
24
|
+
description: 'Release tag to attach binaries to. Required when dispatching from a branch rather than a tag ref.'
|
|
25
|
+
required: false
|
|
26
|
+
type: string
|
|
27
|
+
|
|
28
|
+
concurrency:
|
|
29
|
+
group: package-${{ github.event.release.tag_name || inputs.release_tag || github.ref_name }}
|
|
30
|
+
cancel-in-progress: false
|
|
31
|
+
|
|
32
|
+
jobs:
|
|
33
|
+
|
|
34
|
+
buildexe:
|
|
35
|
+
name: Build executables
|
|
36
|
+
runs-on: ${{ matrix.os }}
|
|
37
|
+
permissions:
|
|
38
|
+
contents: read
|
|
39
|
+
strategy:
|
|
40
|
+
fail-fast: false
|
|
41
|
+
matrix:
|
|
42
|
+
include:
|
|
43
|
+
- os: windows-latest
|
|
44
|
+
TARGET: windows
|
|
45
|
+
CMD_BUILD: >
|
|
46
|
+
pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
|
|
47
|
+
UPLOAD_FILE_NAME: tabcmd.exe
|
|
48
|
+
OUT_FILE_NAME: tabcmd.exe
|
|
49
|
+
ASSET_MIME: application/vnd.microsoft.portable-executable
|
|
50
|
+
- os: macos-15-large
|
|
51
|
+
# This builds for x86
|
|
52
|
+
TARGET: macos
|
|
53
|
+
CMD_BUILD: >
|
|
54
|
+
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
|
|
55
|
+
# the extension .app is not allowed as an upload by github
|
|
56
|
+
UPLOAD_FILE_NAME: tabcmd-x86.app.tar
|
|
57
|
+
# these two names must match the output defined in tabcmd-mac.spec
|
|
58
|
+
OUT_FILE_NAME: tabcmd.app
|
|
59
|
+
APP_BINARY_FILE_NAME: tabcmd
|
|
60
|
+
ASSET_MIME: application/zip
|
|
61
|
+
- os: macos-latest
|
|
62
|
+
# This must match the value set in tabcmd-mac.spec for the output folder
|
|
63
|
+
TARGET: macos
|
|
64
|
+
CMD_BUILD: >
|
|
65
|
+
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
|
|
66
|
+
UPLOAD_FILE_NAME: tabcmd_arm64.app.tar
|
|
67
|
+
OUT_FILE_NAME: tabcmd.app
|
|
68
|
+
APP_BINARY_FILE_NAME: tabcmd
|
|
69
|
+
ASSET_MIME: application/zip
|
|
70
|
+
- os: ubuntu-latest
|
|
71
|
+
TARGET: ubuntu
|
|
72
|
+
# https://stackoverflow.com/questions/31259856
|
|
73
|
+
# /how-to-create-an-executable-file-for-linux-machine-using-pyinstaller
|
|
74
|
+
CMD_BUILD: >
|
|
75
|
+
pyinstaller --clean -y --distpath ./dist/ubuntu tabcmd-linux.spec &&
|
|
76
|
+
chown -R --reference=. ./dist/ubuntu
|
|
77
|
+
OUT_FILE_NAME: tabcmd
|
|
78
|
+
UPLOAD_FILE_NAME: tabcmd
|
|
79
|
+
|
|
80
|
+
steps:
|
|
81
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
82
|
+
|
|
83
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
84
|
+
with:
|
|
85
|
+
python-version: 3.12
|
|
86
|
+
|
|
87
|
+
- name: Install dependencies and build
|
|
88
|
+
run: |
|
|
89
|
+
python --version
|
|
90
|
+
python -m pip install --upgrade pip
|
|
91
|
+
python -m pip install --upgrade build
|
|
92
|
+
pip install .[versioning]
|
|
93
|
+
doit version
|
|
94
|
+
pip install .[localize]
|
|
95
|
+
doit localize
|
|
96
|
+
pip install .
|
|
97
|
+
python -m build
|
|
98
|
+
pip install .[package]
|
|
99
|
+
|
|
100
|
+
- name: Package with pyinstaller for ${{matrix.TARGET}}
|
|
101
|
+
run: ${{matrix.CMD_BUILD}}
|
|
102
|
+
|
|
103
|
+
- name: Validate package for ${{matrix.TARGET}}
|
|
104
|
+
if: matrix.TARGET != 'macos'
|
|
105
|
+
run: ./dist/${{ matrix.TARGET }}/${{matrix.OUT_FILE_NAME}}
|
|
106
|
+
|
|
107
|
+
- name: Validate package for Mac
|
|
108
|
+
if: matrix.TARGET == 'macos'
|
|
109
|
+
run: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/${{ matrix.APP_BINARY_FILE_NAME }}
|
|
110
|
+
|
|
111
|
+
# -v checks the bundled version file. The login probe checks that requests/urllib3/certifi are bundled:
|
|
112
|
+
# a closed port must fail with a connection error, not an import error.
|
|
113
|
+
- name: Smoke test package for ${{matrix.TARGET}}
|
|
114
|
+
shell: bash
|
|
115
|
+
env:
|
|
116
|
+
TARGET: ${{ matrix.TARGET }}
|
|
117
|
+
OUT_FILE_NAME: ${{ matrix.OUT_FILE_NAME }}
|
|
118
|
+
APP_BINARY_FILE_NAME: ${{ matrix.APP_BINARY_FILE_NAME }}
|
|
119
|
+
run: |
|
|
120
|
+
case "$TARGET" in
|
|
121
|
+
macos) BIN="./dist/macos/$OUT_FILE_NAME/Contents/MacOS/$APP_BINARY_FILE_NAME" ;;
|
|
122
|
+
*) BIN="./dist/$TARGET/$OUT_FILE_NAME" ;;
|
|
123
|
+
esac
|
|
124
|
+
"$BIN" -v
|
|
125
|
+
if out=$("$BIN" login -s https://localhost:1 -u a -p b --no-certcheck 2>&1); then
|
|
126
|
+
echo "$out"
|
|
127
|
+
echo "login to a closed port unexpectedly succeeded"
|
|
128
|
+
exit 1
|
|
129
|
+
fi
|
|
130
|
+
echo "$out"
|
|
131
|
+
if echo "$out" | grep -Eq "ImportError|ModuleNotFoundError|Unhandled exception"; then
|
|
132
|
+
echo "packaged binary failed with an import error"
|
|
133
|
+
exit 1
|
|
134
|
+
fi
|
|
135
|
+
echo "$out" | grep -q "Max retries exceeded" || { echo "expected a connection error from requests"; exit 1; }
|
|
136
|
+
|
|
137
|
+
- name: Tar app bundle for Mac
|
|
138
|
+
if: matrix.TARGET == 'macos'
|
|
139
|
+
run: |
|
|
140
|
+
rm -f dist/${{ matrix.TARGET }}/${{ matrix.APP_BINARY_FILE_NAME }}
|
|
141
|
+
cd dist/${{ matrix.TARGET }}
|
|
142
|
+
tar -cvf ${{ matrix.UPLOAD_FILE_NAME }} ${{ matrix.OUT_FILE_NAME }}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# UPLOAD_FILE_NAME distinguishes the two macOS artifacts (x86 vs arm64);
|
|
146
|
+
# the shared artifact name `tabcmd-macos` would otherwise collide and each
|
|
147
|
+
# upload would clobber the other in the artifact store.
|
|
148
|
+
- name: Upload build artifact for ${{ matrix.TARGET }}
|
|
149
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
150
|
+
with:
|
|
151
|
+
name: ${{ matrix.UPLOAD_FILE_NAME }}
|
|
152
|
+
path: ./dist/${{ matrix.TARGET }}/${{ matrix.UPLOAD_FILE_NAME }}
|
|
153
|
+
|
|
154
|
+
# Attach the built binaries to the target GitHub release. Split into its own
|
|
155
|
+
# job so we can gate it behind the `release` environment: a required-reviewer
|
|
156
|
+
# protection on that environment means publishing a release triggers a build,
|
|
157
|
+
# but only an approved reviewer can actually attach binaries to that release.
|
|
158
|
+
# The workflow pauses at this job until a reviewer clicks Approve.
|
|
159
|
+
#
|
|
160
|
+
# `needs: buildexe` waits for ALL matrix legs to succeed. If any leg fails
|
|
161
|
+
# this job is skipped (default behavior with no `if: always()`), so a partial
|
|
162
|
+
# release upload where e.g. macOS is missing is never possible.
|
|
163
|
+
upload_to_release:
|
|
164
|
+
name: Attach build artifacts to release
|
|
165
|
+
needs: buildexe
|
|
166
|
+
runs-on: ubuntu-latest
|
|
167
|
+
environment: release
|
|
168
|
+
permissions:
|
|
169
|
+
contents: write
|
|
170
|
+
steps:
|
|
171
|
+
# download-artifact versions independently of upload-artifact; v7 reads the
|
|
172
|
+
# zipped artifacts that upload-artifact@v7 produces by default
|
|
173
|
+
- name: Download all build artifacts
|
|
174
|
+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
|
175
|
+
with:
|
|
176
|
+
path: artifacts/
|
|
177
|
+
|
|
178
|
+
# Resolve the release tag, in order of preference: the release event's
|
|
179
|
+
# tag_name, the workflow_dispatch release_tag input, then github.ref_name
|
|
180
|
+
# when the run was dispatched from a tag ref. A dispatch from a branch
|
|
181
|
+
# with no release_tag fails fast rather than treating the branch name as
|
|
182
|
+
# a tag, and an empty result never reaches the upload steps.
|
|
183
|
+
- name: Resolve release tag
|
|
184
|
+
id: tag
|
|
185
|
+
env:
|
|
186
|
+
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
|
187
|
+
INPUT_TAG: ${{ inputs.release_tag }}
|
|
188
|
+
REF_NAME: ${{ github.ref_name }}
|
|
189
|
+
REF_TYPE: ${{ github.ref_type }}
|
|
190
|
+
EVENT_NAME: ${{ github.event_name }}
|
|
191
|
+
run: |
|
|
192
|
+
TAG="$RELEASE_TAG"
|
|
193
|
+
if [ -z "$TAG" ]; then
|
|
194
|
+
TAG="$INPUT_TAG"
|
|
195
|
+
fi
|
|
196
|
+
if [ -z "$TAG" ] && [ "$REF_TYPE" = "tag" ]; then
|
|
197
|
+
TAG="$REF_NAME"
|
|
198
|
+
fi
|
|
199
|
+
if [ -z "$TAG" ] && [ "$EVENT_NAME" = "workflow_dispatch" ]; then
|
|
200
|
+
echo "::error::workflow_dispatch from $REF_TYPE '$REF_NAME' has no release_tag input; pass -f release_tag=<tag> or dispatch with --ref <tag>"
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
if [ -z "$TAG" ]; then
|
|
204
|
+
echo "::error::No release tag resolvable (event=$EVENT_NAME, release.tag_name empty, release_tag input empty, ref_type=$REF_TYPE)"
|
|
205
|
+
exit 1
|
|
206
|
+
fi
|
|
207
|
+
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
|
|
208
|
+
echo "Resolved release tag: $TAG"
|
|
209
|
+
|
|
210
|
+
- name: Upload tabcmd.exe (Windows) to release
|
|
211
|
+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
|
|
212
|
+
with:
|
|
213
|
+
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
214
|
+
asset_name: tabcmd.exe
|
|
215
|
+
file: artifacts/tabcmd.exe/tabcmd.exe
|
|
216
|
+
tag: ${{ steps.tag.outputs.tag }}
|
|
217
|
+
overwrite: true
|
|
218
|
+
|
|
219
|
+
- name: Upload tabcmd (Ubuntu) to release
|
|
220
|
+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
|
|
221
|
+
with:
|
|
222
|
+
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
223
|
+
asset_name: tabcmd
|
|
224
|
+
file: artifacts/tabcmd/tabcmd
|
|
225
|
+
tag: ${{ steps.tag.outputs.tag }}
|
|
226
|
+
overwrite: true
|
|
227
|
+
|
|
228
|
+
- name: Upload tabcmd-x86.app.tar (macOS x86) to release
|
|
229
|
+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
|
|
230
|
+
with:
|
|
231
|
+
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
232
|
+
asset_name: tabcmd-x86.app.tar
|
|
233
|
+
file: artifacts/tabcmd-x86.app.tar/tabcmd-x86.app.tar
|
|
234
|
+
tag: ${{ steps.tag.outputs.tag }}
|
|
235
|
+
overwrite: true
|
|
236
|
+
|
|
237
|
+
- name: Upload tabcmd_arm64.app.tar (macOS ARM64) to release
|
|
238
|
+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
|
|
239
|
+
with:
|
|
240
|
+
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
241
|
+
asset_name: tabcmd_arm64.app.tar
|
|
242
|
+
file: artifacts/tabcmd_arm64.app.tar/tabcmd_arm64.app.tar
|
|
243
|
+
tag: ${{ steps.tag.outputs.tag }}
|
|
244
|
+
overwrite: true
|
|
@@ -14,11 +14,12 @@ jobs:
|
|
|
14
14
|
build-n-publish:
|
|
15
15
|
name: Build dist files for PyPi
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
|
+
environment: pypi
|
|
17
18
|
steps:
|
|
18
|
-
- uses: actions/checkout@v7
|
|
19
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
20
|
with:
|
|
20
21
|
fetch-depth: 0
|
|
21
|
-
- uses: actions/setup-python@
|
|
22
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
22
23
|
with:
|
|
23
24
|
python-version: 3.12
|
|
24
25
|
- name: Build dist files
|
|
@@ -28,17 +29,19 @@ jobs:
|
|
|
28
29
|
python -m pip install --upgrade build
|
|
29
30
|
pip install .[versioning]
|
|
30
31
|
doit version
|
|
32
|
+
pip install .[localize]
|
|
33
|
+
doit localize
|
|
31
34
|
pip install .
|
|
32
35
|
python -m build
|
|
33
36
|
|
|
34
37
|
- name: Publish distribution 📦 to Test PyPI
|
|
35
38
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.is_draft == true }}
|
|
36
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
39
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 (was @release/v1), license BSD-2
|
|
37
40
|
with:
|
|
38
41
|
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
39
42
|
repository_url: https://test.pypi.org/legacy/
|
|
40
43
|
- name: Publish distribution 📦 to PyPI
|
|
41
44
|
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.is_draft != true) }}
|
|
42
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
45
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 (was @release/v1), license BSD-2
|
|
43
46
|
with:
|
|
44
47
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
name: Pypi smoke tests
|
|
5
5
|
|
|
6
|
-
# maybe we want this triggered after the publish-pypi workflow?
|
|
7
6
|
on:
|
|
8
7
|
workflow_dispatch:
|
|
9
8
|
schedule:
|
|
10
9
|
- cron: 0 11 * * * # Every day at 11AM UTC (7AM EST)
|
|
10
|
+
workflow_run:
|
|
11
|
+
workflows: ["Publish to PyPi"]
|
|
12
|
+
types: [completed]
|
|
11
13
|
|
|
12
14
|
permissions:
|
|
13
15
|
contents: read
|
|
14
16
|
|
|
15
17
|
jobs:
|
|
16
18
|
build:
|
|
19
|
+
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
|
17
20
|
strategy:
|
|
18
21
|
fail-fast: false
|
|
19
22
|
matrix:
|
|
@@ -24,7 +27,7 @@ jobs:
|
|
|
24
27
|
|
|
25
28
|
steps:
|
|
26
29
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
27
|
-
uses: actions/setup-python@
|
|
30
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
28
31
|
with:
|
|
29
32
|
python-version: ${{ matrix.python-version }}
|
|
30
33
|
- name: pip install Tabcmd
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
name: Draft release on merge to main
|
|
2
2
|
|
|
3
3
|
# Triggers when a PR is merged into main (push to main covers all merge strategies).
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
4
|
+
# Pushes the next patch version tag and creates a draft GitHub release with auto-generated notes.
|
|
5
|
+
# Nothing is built here. When you publish the draft release, package.yml builds and attaches
|
|
6
|
+
# the binaries and publish-pypi.yml uploads to PyPI.
|
|
7
7
|
|
|
8
8
|
on:
|
|
9
9
|
push:
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
name: Create draft release
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@v7
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 0
|
|
24
24
|
|
|
@@ -77,10 +77,10 @@ jobs:
|
|
|
77
77
|
runs-on: ${{ matrix.os }}
|
|
78
78
|
|
|
79
79
|
steps:
|
|
80
|
-
- uses: actions/checkout@v7
|
|
80
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
81
81
|
|
|
82
82
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
83
|
-
uses: actions/setup-python@
|
|
83
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
84
84
|
with:
|
|
85
85
|
python-version: ${{ matrix.python-version }}
|
|
86
86
|
|
|
@@ -91,6 +91,8 @@ jobs:
|
|
|
91
91
|
python -m pip install --upgrade build
|
|
92
92
|
pip install .[versioning]
|
|
93
93
|
doit version
|
|
94
|
+
pip install .[localize]
|
|
95
|
+
doit localize
|
|
94
96
|
pip install .
|
|
95
97
|
python -m build
|
|
96
98
|
pip install .[test]
|
|
@@ -20,10 +20,10 @@ jobs:
|
|
|
20
20
|
runs-on: ${{ matrix.os }}
|
|
21
21
|
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@v7
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
|
|
25
25
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
26
|
-
uses: actions/setup-python@
|
|
26
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
27
27
|
with:
|
|
28
28
|
python-version: ${{ matrix.python-version }}
|
|
29
29
|
|
|
@@ -34,6 +34,8 @@ jobs:
|
|
|
34
34
|
python -m pip install --upgrade build
|
|
35
35
|
pip install .[versioning]
|
|
36
36
|
doit version
|
|
37
|
+
pip install .[localize]
|
|
38
|
+
doit localize
|
|
37
39
|
pip install .
|
|
38
40
|
python -m build
|
|
39
41
|
pip install .[test]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# general dev/ide files
|
|
2
2
|
*.log
|
|
3
|
+
*.log.*
|
|
3
4
|
*.vscode
|
|
4
5
|
.idea
|
|
5
6
|
*.DS_Store
|
|
@@ -28,16 +29,21 @@ workon/
|
|
|
28
29
|
pytest.xml
|
|
29
30
|
|
|
30
31
|
*.txt
|
|
32
|
+
|
|
33
|
+
# e2e test output
|
|
34
|
+
test-output/
|
|
35
|
+
|
|
31
36
|
# content
|
|
32
37
|
# todo probably want to add a workbook and ds in /res for getting started easily
|
|
33
38
|
*.pdf
|
|
34
39
|
*.png
|
|
35
40
|
*.html
|
|
36
|
-
|
|
41
|
+
*.csv
|
|
42
|
+
*.twbx
|
|
43
|
+
*.tdsx
|
|
37
44
|
# *.hyper
|
|
38
45
|
# *.twb
|
|
39
46
|
# *.twbr
|
|
40
|
-
# *.tdsx
|
|
41
47
|
**/credentials.py
|
|
42
48
|
# exceptions
|
|
43
49
|
!tests/assets/
|
|
@@ -47,6 +53,9 @@ pytest.xml
|
|
|
47
53
|
|
|
48
54
|
# localization intermediate files
|
|
49
55
|
*.po
|
|
56
|
+
tabcmd/locales/**/combined.tmp
|
|
57
|
+
tabcmd/locales/**/*.mo
|
|
58
|
+
tabcmd/locales/codestrings.tmp
|
|
50
59
|
|
|
51
60
|
# venv
|
|
52
61
|
site-packages
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tabcmd
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.34
|
|
4
4
|
Summary: A command line client for working with Tableau Server.
|
|
5
5
|
Author-email: Tableau <github@tableau.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -16,14 +16,15 @@ Requires-Python: >=3.10
|
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Requires-Dist: appdirs
|
|
19
|
+
Requires-Dist: certifi>=2026.10.19
|
|
19
20
|
Requires-Dist: requests<3.0,>=2.25
|
|
20
21
|
Requires-Dist: setuptools
|
|
21
|
-
Requires-Dist: tableauserverclient==0.
|
|
22
|
-
Requires-Dist: urllib3
|
|
22
|
+
Requires-Dist: tableauserverclient==0.42
|
|
23
|
+
Requires-Dist: urllib3<3,>=2.6.0
|
|
23
24
|
Provides-Extra: test
|
|
24
|
-
Requires-Dist: black
|
|
25
|
+
Requires-Dist: black==26.5.1; extra == "test"
|
|
25
26
|
Requires-Dist: mock; extra == "test"
|
|
26
|
-
Requires-Dist: mypy; extra == "test"
|
|
27
|
+
Requires-Dist: mypy==2.3.0; extra == "test"
|
|
27
28
|
Requires-Dist: pytest>=7.0; extra == "test"
|
|
28
29
|
Requires-Dist: pytest-cov; extra == "test"
|
|
29
30
|
Requires-Dist: pytest-order; extra == "test"
|
|
@@ -36,10 +37,11 @@ Requires-Dist: types-setuptools; extra == "test"
|
|
|
36
37
|
Provides-Extra: localize
|
|
37
38
|
Requires-Dist: doit; extra == "localize"
|
|
38
39
|
Requires-Dist: ftfy; extra == "localize"
|
|
40
|
+
Requires-Dist: click; extra == "localize"
|
|
39
41
|
Provides-Extra: package
|
|
40
42
|
Requires-Dist: doit; extra == "package"
|
|
41
|
-
Requires-Dist: pyinstaller==
|
|
42
|
-
Requires-Dist: setuptools==
|
|
43
|
+
Requires-Dist: pyinstaller==6.22.3; extra == "package"
|
|
44
|
+
Requires-Dist: setuptools==83.0.0; extra == "package"
|
|
43
45
|
Provides-Extra: versioning
|
|
44
46
|
Requires-Dist: doit; extra == "versioning"
|
|
45
47
|
Requires-Dist: pyinstaller_versionfile; extra == "versioning"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
### Strings and localization
|
|
3
|
+
|
|
4
|
+
New text should not be hardcoded into the python, but added to `tabcmd/locales/en/extra.properties` (or directly to `tabcmd/locales/en/tabcmd_messages_en.properties`). The English properties file is given to the translation team, and they return a translated copy for each supported locale. Until translations return, non-English users automatically see the English string via per-key fallback in gettext (see `tabcmd/execution/localize.py`).
|
|
5
|
+
|
|
6
|
+
To handle localizing text we use the python standard library tool [gettext](https://docs.python.org/3/library/gettext.html). This expects .mo files. There is no direct .properties -> .mo tool so we go through .po format.
|
|
7
|
+
(FYI: to read .mo files for debugging use https://poedit.net/download)
|
|
8
|
+
|
|
9
|
+
Missing string keys are validated on every PR by `.github/workflows/check-strings.yml`, which runs `python bin/i18n/check_strings.py`. Run it locally the same way before pushing.
|
|
10
|
+
|
|
11
|
+
## Regenerating .mo bundles
|
|
12
|
+
|
|
13
|
+
The .mo files are generated and are not committed. CI and packaging run `doit localize` before building. Run it locally after changing a .properties file or before running tabcmd from a checkout.
|
|
14
|
+
|
|
15
|
+
Run these when properties files change. Each step is idempotent and will overwrite the existing output. More details about implementation are in the script code at `dodo.py`.
|
|
16
|
+
|
|
17
|
+
Or run the full pipeline in one command:
|
|
18
|
+
> python -m doit localize
|
|
19
|
+
|
|
20
|
+
Individual steps:
|
|
21
|
+
|
|
22
|
+
1. Combine .properties files into a single per-locale `combined.tmp`. Discards strings not present in code and normalizes curly quotes.
|
|
23
|
+
> python -m doit properties
|
|
24
|
+
|
|
25
|
+
2. Convert each `combined.tmp` into a human-readable .po file:
|
|
26
|
+
> python -m doit po
|
|
27
|
+
|
|
28
|
+
3. Convert the .po files into binary .mo files. Also validates each .mo by loading it with gettext:
|
|
29
|
+
> python -m doit mo
|
|
30
|
+
|
|
31
|
+
## Optional reorganization task
|
|
32
|
+
|
|
33
|
+
Move all strings from `extra.properties` to the bottom of `tabcmd_messages_xx.properties`:
|
|
34
|
+
> python -m doit move_tabcmd_strings
|
|
35
|
+
|
|
36
|
+
This consolidates all strings into the main tabcmd_messages files and clears the extra.properties files.
|