tabcmd 2.0.18__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.18 → tabcmd-2.0.34}/.github/dependabot.yml +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/check-coverage.yml +10 -6
- tabcmd-2.0.34/.github/workflows/check-strings.yml +28 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/codeql-analysis.yml +3 -3
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/generate-metadata.yml +7 -4
- tabcmd-2.0.34/.github/workflows/package.yml +244 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/publish-pypi.yml +14 -10
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/python-app.yml +6 -3
- tabcmd-2.0.34/.github/workflows/release-on-merge.yml +60 -0
- tabcmd-2.0.34/.github/workflows/run-e2-tests.yml +112 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.github/workflows/run-tests.yml +8 -5
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.gitignore +15 -2
- tabcmd-2.0.34/CODEOWNERS +1 -0
- tabcmd-2.0.34/MANIFEST.in +2 -0
- tabcmd-2.0.34/PKG-INFO +55 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/README.md +1 -1
- tabcmd-2.0.34/WorldIndicators.tdsx +0 -0
- tabcmd-2.0.34/bin/i18n/README.md +36 -0
- tabcmd-2.0.34/bin/i18n/__init__.py +25 -0
- tabcmd-2.0.34/bin/i18n/check_strings.py +381 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/i18n/prop2po.py +5 -1
- tabcmd-2.0.34/bin/license-checker.py +75 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/contributing.md +58 -25
- tabcmd-2.0.34/dodo.py +481 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/pyproject.toml +28 -23
- tabcmd-2.0.34/tabcmd/__main__.py +21 -0
- tabcmd-2.0.34/tabcmd/_version.py +24 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/auth/login_command.py +3 -3
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/auth/logout_command.py +3 -3
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/auth/session.py +165 -53
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/constants.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +80 -20
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +23 -17
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/delete_command.py +27 -12
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/export_command.py +37 -17
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +12 -10
- tabcmd-2.0.34/tabcmd/commands/datasources_and_workbooks/publish_command.py +217 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +5 -5
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/create_extracts_command.py +8 -7
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/decrypt_extracts_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/delete_extracts_command.py +7 -6
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/encrypt_extracts_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/extracts.py +4 -5
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/reencrypt_extracts_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/refresh_extracts_command.py +11 -10
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/group/create_group_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/group/delete_group_command.py +5 -5
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/project/create_project_command.py +7 -8
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/project/delete_project_command.py +6 -6
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/project/publish_samples_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/server.py +27 -6
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/site/create_site_command.py +4 -4
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/site/delete_site_command.py +7 -16
- tabcmd-2.0.34/tabcmd/commands/site/edit_site_command.py +112 -0
- tabcmd-2.0.34/tabcmd/commands/site/list_command.py +113 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/site/list_sites_command.py +7 -7
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/add_users_command.py +12 -5
- tabcmd-2.0.34/tabcmd/commands/user/create_site_users.py +184 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/create_users_command.py +12 -8
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/delete_site_users_command.py +3 -3
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/remove_users_command.py +5 -5
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/user_data.py +45 -17
- tabcmd-2.0.34/tabcmd/execution/global_options.py +525 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/execution/localize.py +8 -8
- tabcmd-2.0.34/tabcmd/execution/logger_config.py +121 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/execution/parent_parser.py +27 -50
- {tabcmd-2.0.18 → 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.18 → tabcmd-2.0.34}/tabcmd/tabcmd.py +4 -1
- tabcmd-2.0.34/tabcmd/version.py +14 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd-linux.spec +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd-mac.spec +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd-windows.spec +1 -1
- tabcmd-2.0.34/tabcmd.egg-info/PKG-INFO +55 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.egg-info/SOURCES.txt +24 -14
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.egg-info/requires.txt +18 -14
- tabcmd-2.0.34/tabcmd.egg-info/scm_file_list.json +206 -0
- 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.34/tests/assets/live_mysql.tds +878 -0
- tabcmd-2.0.34/tests/assets/mock_data.py +124 -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.18 → tabcmd-2.0.34}/tests/commands/test_geturl_utils.py +72 -1
- tabcmd-2.0.34/tests/commands/test_listing_commands.py +240 -0
- {tabcmd-2.0.18 → 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.18 → tabcmd-2.0.34}/tests/commands/test_projects_utils.py +0 -1
- tabcmd-2.0.34/tests/commands/test_publish_command.py +282 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_run_commands.py +39 -5
- tabcmd-2.0.34/tests/commands/test_server_item_selection.py +96 -0
- tabcmd-2.0.34/tests/commands/test_session.py +1143 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_user_utils.py +81 -3
- tabcmd-2.0.34/tests/commands/test_version.py +33 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/e2e/language_tests.py +6 -0
- tabcmd-2.0.34/tests/e2e/online_tests.py +679 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/e2e/setup_e2e.py +21 -10
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/e2e/tests_integration.py +2 -2
- tabcmd-2.0.34/tests/parsers/common_setup.py +43 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_login_parser.py +2 -2
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_logout_parser.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_add_user.py +3 -3
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_extracts.py +60 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_group.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_project.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_site.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_site_users.py +24 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_create_user.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_decrypt_extracts.py +1 -1
- tabcmd-2.0.34/tests/parsers/test_parser_delete.py +91 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_extracts.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_group.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_project.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_site.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_delete_site_user.py +1 -1
- tabcmd-2.0.34/tests/parsers/test_parser_edit_site.py +257 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_encrypt_extracts.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_export.py +15 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_get_url.py +2 -2
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_list_sites.py +1 -1
- tabcmd-2.0.34/tests/parsers/test_parser_login.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_publish.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_publish_samples.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_reencrypt_extracts.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_refresh_extracts.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_remove_user.py +1 -1
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/parsers/test_parser_runschedule.py +1 -1
- tabcmd-2.0.34/tests/test_main.py +77 -0
- tabcmd-2.0.18/.github/workflows/package.yml +0 -106
- tabcmd-2.0.18/.github/workflows/run-e2-tests.yml +0 -46
- tabcmd-2.0.18/PKG-INFO +0 -74
- tabcmd-2.0.18/bin/license-checker.py +0 -54
- tabcmd-2.0.18/dodo.py +0 -348
- tabcmd-2.0.18/tabcmd/__main__.py +0 -17
- tabcmd-2.0.18/tabcmd/commands/datasources_and_workbooks/publish_command.py +0 -137
- tabcmd-2.0.18/tabcmd/commands/site/edit_site_command.py +0 -50
- tabcmd-2.0.18/tabcmd/commands/site/list_command.py +0 -66
- tabcmd-2.0.18/tabcmd/commands/user/create_site_users.py +0 -72
- tabcmd-2.0.18/tabcmd/execution/global_options.py +0 -484
- tabcmd-2.0.18/tabcmd/execution/logger_config.py +0 -65
- tabcmd-2.0.18/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/de/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/de/shared_wg_de.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/de/tabcmd_messages_de.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/en/extra.properties +0 -22
- tabcmd-2.0.18/tabcmd/locales/en/shared_wg_en.properties +0 -537
- tabcmd-2.0.18/tabcmd/locales/en/tabcmd_messages_en.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/es/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/es/shared_wg_es.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/es/tabcmd_messages_es.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/fr/extra.properties +0 -22
- tabcmd-2.0.18/tabcmd/locales/fr/shared_wg_fr.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ga/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/ga/shared_wg_ga.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/it/extra.properties +0 -22
- tabcmd-2.0.18/tabcmd/locales/it/shared_wg_it.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/it/tabcmd_messages_it.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ja/extra.properties +0 -22
- tabcmd-2.0.18/tabcmd/locales/ja/shared_wg_ja.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/ja/tabcmd_messages_ja.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/ko/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/ko/shared_wg_ko.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/ko/tabcmd_messages_ko.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/pt/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/pt/shared_wg_pt.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/pt/tabcmd_messages_pt.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/sv/extra.properties +0 -22
- tabcmd-2.0.18/tabcmd/locales/sv/shared_wg_sv.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/sv/tabcmd_messages_sv.properties +0 -439
- tabcmd-2.0.18/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.18/tabcmd/locales/zh/extra.properties +0 -23
- tabcmd-2.0.18/tabcmd/locales/zh/shared_wg_zh.properties +0 -529
- tabcmd-2.0.18/tabcmd/locales/zh/tabcmd_messages_zh.properties +0 -439
- tabcmd-2.0.18/tabcmd/version.py +0 -9
- tabcmd-2.0.18/tabcmd.egg-info/PKG-INFO +0 -74
- tabcmd-2.0.18/tests/assets/simple-data.twbx +0 -0
- tabcmd-2.0.18/tests/commands/test_datasources_and_workbooks_command.py +0 -168
- tabcmd-2.0.18/tests/commands/test_listing_commands.py +0 -58
- tabcmd-2.0.18/tests/commands/test_publish_command.py +0 -97
- tabcmd-2.0.18/tests/commands/test_session.py +0 -568
- tabcmd-2.0.18/tests/e2e/online_tests.py +0 -523
- tabcmd-2.0.18/tests/parsers/common_setup.py +0 -33
- tabcmd-2.0.18/tests/parsers/test_parser_delete.py +0 -28
- tabcmd-2.0.18/tests/parsers/test_parser_edit_site.py +0 -61
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.coverage +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/.coveragerc +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/LICENSE +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/SECURITY.md +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/coverage.sh +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/i18n/makelocalealias.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/i18n/msgfmt.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/i18n/pygettext.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/bin/pyinstaller.sh +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/res/README.md +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/res/metadata.yml +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/res/tabcmd.icns +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/res/tabcmd.ico +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/res/tabcmd.png +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/setup.cfg +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/setup.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/auth/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/commands.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/extracts/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/group/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/project/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/site/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/commands/user/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/execution/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/execution/_version.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/execution/map_of_commands.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/es → tabcmd-2.0.34/tabcmd/locales/en}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/fr → tabcmd-2.0.34/tabcmd/locales/es}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/ga → tabcmd-2.0.34/tabcmd/locales/fr}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/it → tabcmd-2.0.34/tabcmd/locales/ga}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/ja → tabcmd-2.0.34/tabcmd/locales/it}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/ko → tabcmd-2.0.34/tabcmd/locales/ja}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/pt → tabcmd-2.0.34/tabcmd/locales/ko}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/sv → tabcmd-2.0.34/tabcmd/locales/pt}/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18/tabcmd/locales/zh → tabcmd-2.0.34/tabcmd/locales/sv}/LC_MESSAGES/.gitkeep +0 -0
- /tabcmd-2.0.18/tests/__init__.py → /tabcmd-2.0.34/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.egg-info/dependency_links.txt +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.egg-info/entry_points.txt +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.egg-info/top_level.txt +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tabcmd.spec +0 -0
- {tabcmd-2.0.18/tests/commands → tabcmd-2.0.34/tests}/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/EmbeddedCredentials.twb +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/SampleDS.tds +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/WorkbookWithExtract.twbx +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/WorkbookWithoutExtract.twbx +0 -0
- /tabcmd-2.0.18/tests/assets/World Indicators.tds → /tabcmd-2.0.34/tests/assets/WorldIndicators.tds +0 -0
- /tabcmd-2.0.18/tests/assets/World Indicators.tdsx → /tabcmd-2.0.34/tests/assets/WorldIndicators.tdsx +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/detailed_users.csv +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/assets/usernames.csv +0 -0
- {tabcmd-2.0.18/tests/e2e → tabcmd-2.0.34/tests/commands}/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_credential_file.txt +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_execution.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_server.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/commands/test_server_handler.py +0 -0
- {tabcmd-2.0.18/tests/parsers → tabcmd-2.0.34/tests/e2e}/__init__.py +0 -0
- {tabcmd-2.0.18 → tabcmd-2.0.34}/tests/e2e/tests.py +0 -0
- /tabcmd-2.0.18/tests/parsers/test_parser_login.py → /tabcmd-2.0.34/tests/parsers/__init__.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@
|
|
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
|
|
|
@@ -30,10 +30,13 @@ jobs:
|
|
|
30
30
|
python --version
|
|
31
31
|
python -m pip install --upgrade pip
|
|
32
32
|
python -m pip install --upgrade build
|
|
33
|
-
pip install .
|
|
34
|
-
pip install .[test]
|
|
33
|
+
pip install .[versioning]
|
|
35
34
|
doit version
|
|
35
|
+
pip install .[localize]
|
|
36
|
+
doit localize
|
|
37
|
+
pip install .
|
|
36
38
|
python -m build
|
|
39
|
+
pip install .[test]
|
|
37
40
|
|
|
38
41
|
# https://github.com/marketplace/actions/pytest-coverage-comment
|
|
39
42
|
- name: Generate coverage report
|
|
@@ -41,10 +44,11 @@ jobs:
|
|
|
41
44
|
|
|
42
45
|
# trying another coverage reporter for PRs/badges
|
|
43
46
|
- name: Coveralls
|
|
44
|
-
uses: coverallsapp/github-action@v2
|
|
47
|
+
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
|
|
45
48
|
|
|
46
49
|
- name: Comment on pull request with coverage
|
|
47
|
-
uses: MishaKav/pytest-coverage-comment@main
|
|
50
|
+
uses: MishaKav/pytest-coverage-comment@4cfb48edc8f875ac019afdcfd97c48d78ad2b723 # v1.13.1 (was @main)
|
|
51
|
+
continue-on-error: true
|
|
48
52
|
with:
|
|
49
53
|
pytest-coverage-path: ./pytest-coverage.txt
|
|
50
54
|
# TODO: check if this has been fixed
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Check i18n strings
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
branches:
|
|
7
|
+
- development
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
check-strings:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
22
|
+
with:
|
|
23
|
+
python-version: '3.12'
|
|
24
|
+
|
|
25
|
+
# Note: check_strings.py uses regex matching and will not catch dynamic keys
|
|
26
|
+
# (f-strings, variables, concatenation). This is a best-effort check.
|
|
27
|
+
- name: Check for missing i18n string keys
|
|
28
|
+
run: python bin/i18n/check_strings.py
|
|
@@ -38,11 +38,11 @@ jobs:
|
|
|
38
38
|
|
|
39
39
|
steps:
|
|
40
40
|
- name: Checkout repository
|
|
41
|
-
uses: actions/checkout@
|
|
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@
|
|
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@
|
|
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@
|
|
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
|
|
|
@@ -23,10 +23,13 @@ jobs:
|
|
|
23
23
|
python --version
|
|
24
24
|
python -m pip install --upgrade pip
|
|
25
25
|
python -m pip install --upgrade build
|
|
26
|
-
pip install .
|
|
27
|
-
pip install .[test]
|
|
26
|
+
pip install .[versioning]
|
|
28
27
|
doit version
|
|
28
|
+
pip install .[localize]
|
|
29
|
+
doit localize
|
|
30
|
+
pip install .
|
|
29
31
|
python -m build
|
|
32
|
+
pip install .[test]
|
|
30
33
|
|
|
31
34
|
- name: Run license check
|
|
32
35
|
run: python bin/license-checker.py
|
|
@@ -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
|
|
@@ -7,18 +7,19 @@ on:
|
|
|
7
7
|
description: 'Test PyPi'
|
|
8
8
|
required: true
|
|
9
9
|
type: boolean
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
12
|
|
|
13
13
|
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@
|
|
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
|
|
@@ -26,18 +27,21 @@ jobs:
|
|
|
26
27
|
python --version
|
|
27
28
|
python -m pip install --upgrade pip
|
|
28
29
|
python -m pip install --upgrade build
|
|
29
|
-
pip install .
|
|
30
|
-
pip install .[package]
|
|
30
|
+
pip install .[versioning]
|
|
31
31
|
doit version
|
|
32
|
+
pip install .[localize]
|
|
33
|
+
doit localize
|
|
34
|
+
pip install .
|
|
32
35
|
python -m build
|
|
36
|
+
|
|
33
37
|
- name: Publish distribution 📦 to Test PyPI
|
|
34
|
-
if: ${{ inputs.is_draft }}
|
|
35
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
38
|
+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.is_draft == true }}
|
|
39
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 (was @release/v1), license BSD-2
|
|
36
40
|
with:
|
|
37
41
|
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
38
42
|
repository_url: https://test.pypi.org/legacy/
|
|
39
43
|
- name: Publish distribution 📦 to PyPI
|
|
40
|
-
if: ${{
|
|
41
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
44
|
+
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.is_draft != true) }}
|
|
45
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 (was @release/v1), license BSD-2
|
|
42
46
|
with:
|
|
43
47
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -3,28 +3,31 @@
|
|
|
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:
|
|
20
23
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
21
|
-
python-version: ['3.
|
|
24
|
+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
|
22
25
|
|
|
23
26
|
runs-on: ${{ matrix.os }}
|
|
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
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Draft release on merge to main
|
|
2
|
+
|
|
3
|
+
# Triggers when a PR is merged into main (push to main covers all merge strategies).
|
|
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
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
draft-release:
|
|
18
|
+
name: Create draft release
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Compute next patch version
|
|
26
|
+
id: version
|
|
27
|
+
run: |
|
|
28
|
+
LAST_TAG=$(git tag --list | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)
|
|
29
|
+
if [ -z "$LAST_TAG" ]; then
|
|
30
|
+
echo "No prior semver tag found; cannot auto-increment version." >&2
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
BASE="${LAST_TAG#v}"
|
|
34
|
+
MAJOR=$(echo "$BASE" | cut -d. -f1)
|
|
35
|
+
MINOR=$(echo "$BASE" | cut -d. -f2)
|
|
36
|
+
PATCH=$(echo "$BASE" | cut -d. -f3)
|
|
37
|
+
NEXT="v${MAJOR}.${MINOR}.$((PATCH + 1))"
|
|
38
|
+
echo "tag=$NEXT" >> "$GITHUB_OUTPUT"
|
|
39
|
+
echo "last_tag=$LAST_TAG" >> "$GITHUB_OUTPUT"
|
|
40
|
+
|
|
41
|
+
- name: Push version tag
|
|
42
|
+
env:
|
|
43
|
+
TAG: ${{ steps.version.outputs.tag }}
|
|
44
|
+
run: |
|
|
45
|
+
git config user.name "github-actions[bot]"
|
|
46
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
47
|
+
git tag "$TAG"
|
|
48
|
+
git push origin "$TAG"
|
|
49
|
+
|
|
50
|
+
- name: Create draft release with auto-generated notes
|
|
51
|
+
env:
|
|
52
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
TAG: ${{ steps.version.outputs.tag }}
|
|
54
|
+
LAST_TAG: ${{ steps.version.outputs.last_tag }}
|
|
55
|
+
run: |
|
|
56
|
+
gh release create "$TAG" \
|
|
57
|
+
--draft \
|
|
58
|
+
--title "$TAG" \
|
|
59
|
+
--generate-notes \
|
|
60
|
+
--notes-start-tag "$LAST_TAG"
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
name: e2e tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
server:
|
|
7
|
+
required: true
|
|
8
|
+
site:
|
|
9
|
+
required: true
|
|
10
|
+
patname:
|
|
11
|
+
required: true
|
|
12
|
+
pat:
|
|
13
|
+
required: true
|
|
14
|
+
server_admin:
|
|
15
|
+
description: 'Account has server admin role'
|
|
16
|
+
required: false
|
|
17
|
+
default: 'false'
|
|
18
|
+
type: choice
|
|
19
|
+
options: ['false', 'true']
|
|
20
|
+
site_admin:
|
|
21
|
+
description: 'Account has site admin role'
|
|
22
|
+
required: false
|
|
23
|
+
default: 'false'
|
|
24
|
+
type: choice
|
|
25
|
+
options: ['false', 'true']
|
|
26
|
+
project_admin:
|
|
27
|
+
description: 'Account has project admin role'
|
|
28
|
+
required: false
|
|
29
|
+
default: 'false'
|
|
30
|
+
type: choice
|
|
31
|
+
options: ['false', 'true']
|
|
32
|
+
extract_encryption_enabled:
|
|
33
|
+
description: 'Site has extract encryption enabled'
|
|
34
|
+
required: false
|
|
35
|
+
default: 'false'
|
|
36
|
+
type: choice
|
|
37
|
+
options: ['false', 'true']
|
|
38
|
+
workflow_call:
|
|
39
|
+
inputs:
|
|
40
|
+
server:
|
|
41
|
+
required: true
|
|
42
|
+
type: string
|
|
43
|
+
site:
|
|
44
|
+
required: true
|
|
45
|
+
type: string
|
|
46
|
+
patname:
|
|
47
|
+
required: true
|
|
48
|
+
type: string
|
|
49
|
+
server_admin:
|
|
50
|
+
required: false
|
|
51
|
+
type: boolean
|
|
52
|
+
default: false
|
|
53
|
+
site_admin:
|
|
54
|
+
required: false
|
|
55
|
+
type: boolean
|
|
56
|
+
default: false
|
|
57
|
+
project_admin:
|
|
58
|
+
required: false
|
|
59
|
+
type: boolean
|
|
60
|
+
default: false
|
|
61
|
+
extract_encryption_enabled:
|
|
62
|
+
required: false
|
|
63
|
+
type: boolean
|
|
64
|
+
default: false
|
|
65
|
+
secrets:
|
|
66
|
+
pat:
|
|
67
|
+
required: true
|
|
68
|
+
|
|
69
|
+
jobs:
|
|
70
|
+
build:
|
|
71
|
+
strategy:
|
|
72
|
+
fail-fast: true
|
|
73
|
+
matrix:
|
|
74
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
75
|
+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
|
76
|
+
|
|
77
|
+
runs-on: ${{ matrix.os }}
|
|
78
|
+
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
81
|
+
|
|
82
|
+
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
83
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
84
|
+
with:
|
|
85
|
+
python-version: ${{ matrix.python-version }}
|
|
86
|
+
|
|
87
|
+
- name: Install dependencies
|
|
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 .[test]
|
|
99
|
+
|
|
100
|
+
- name: Run e2e tests
|
|
101
|
+
env:
|
|
102
|
+
E2E_SERVER: ${{ inputs.server }}
|
|
103
|
+
E2E_SITE: ${{ inputs.site }}
|
|
104
|
+
E2E_PATNAME: ${{ inputs.patname }}
|
|
105
|
+
E2E_PAT: ${{ secrets.pat || inputs.pat }}
|
|
106
|
+
E2E_SERVER_ADMIN: ${{ inputs.server_admin || 'false' }}
|
|
107
|
+
E2E_SITE_ADMIN: ${{ inputs.site_admin || 'false' }}
|
|
108
|
+
E2E_PROJECT_ADMIN: ${{ inputs.project_admin || 'false' }}
|
|
109
|
+
E2E_EXTRACT_ENCRYPTION: ${{ inputs.extract_encryption_enabled || 'false' }}
|
|
110
|
+
run: |
|
|
111
|
+
python -m tabcmd login --server "$E2E_SERVER" --site "$E2E_SITE" --token-name "$E2E_PATNAME" --token-value "$E2E_PAT"
|
|
112
|
+
pytest -q tests/e2e/online_tests.py -r pfE
|
|
@@ -15,15 +15,15 @@ jobs:
|
|
|
15
15
|
fail-fast: true
|
|
16
16
|
matrix:
|
|
17
17
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
18
|
-
python-version: ['3.
|
|
18
|
+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
|
19
19
|
|
|
20
20
|
runs-on: ${{ matrix.os }}
|
|
21
21
|
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
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
|
|
|
@@ -32,10 +32,13 @@ jobs:
|
|
|
32
32
|
python --version
|
|
33
33
|
python -m pip install --upgrade pip
|
|
34
34
|
python -m pip install --upgrade build
|
|
35
|
-
pip install .
|
|
36
|
-
pip install .[test]
|
|
35
|
+
pip install .[versioning]
|
|
37
36
|
doit version
|
|
37
|
+
pip install .[localize]
|
|
38
|
+
doit localize
|
|
39
|
+
pip install .
|
|
38
40
|
python -m build
|
|
41
|
+
pip install .[test]
|
|
39
42
|
|
|
40
43
|
- name: Test with pytest
|
|
41
44
|
run: pytest
|