quapp-common 0.0.14.dev8__tar.gz → 0.0.14.dev9__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.
- {quapp_common-0.0.14.dev8/quapp_common.egg-info → quapp_common-0.0.14.dev9}/PKG-INFO +1 -1
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/pyproject.toml +1 -1
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/dispatcher.py +0 -4
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9/quapp_common.egg-info}/PKG-INFO +1 -1
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_dispatcher_runner_error.py +3 -3
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_language_dispatcher.py +2 -8
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/LICENSE +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/README.md +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/async_invocation_task.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/async_task.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/export_circuit_task.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/post_processing_task.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/invocation.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_fetcher.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_fetching.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_heartbeat.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_manager.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/bridge.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/callback/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/callback/update_job_metadata.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/circuit_adapter.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/device/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/device/device_selection.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/result_serializer.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/config/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/config/log_context.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/config/logging_config.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/config/thread_config.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/async_task/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/async_task/circuit_export/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/async_task/circuit_export/backend_holder.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/async_task/circuit_export/circuit_holder.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/backend/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/backend/backend_information.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/callback/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/callback/callback_url.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/device/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/device/circuit_running_option.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/promise/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/promise/post_processing_promise.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/promise/promise.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/request/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/request/invocation_request.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/request/job_fetching_request.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/request/request.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/authentication.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/custom_header.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/error_report.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/job_response.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/base_enum.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/error_category.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/http_header.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/invocation_step.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/language.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/media_type.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/processing_unit.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/provider_tag.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/runtime_phase.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/sdk.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/status/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/status/job_status.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/status/status_code.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/token_type.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/device_factory.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/handler_factory.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/provider_factory.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/handler/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/handler/handler.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/device/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/device/custom_device.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/device/device.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/invocation.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/provider/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/provider/provider.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/__init__.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/error_classifier.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/file_utils.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/http_utils.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/invocation_failure.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/json_parser_utils.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/response_utils.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common.egg-info/SOURCES.txt +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common.egg-info/dependency_links.txt +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common.egg-info/requires.txt +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common.egg-info/top_level.txt +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/setup.cfg +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_circuit_adapter.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_error_classifier.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_error_log_dedupe.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_error_report.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_invocation_failure.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_job_heartbeat.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_json_parser_utils.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_log_secret_leak.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_logging_config.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_no_sdk_dependency.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_phase_coverage.py +0 -0
- {quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/tests/test_result_serializer.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quapp-common"
|
|
7
|
-
version = "0.0.14.
|
|
7
|
+
version = "0.0.14.dev9"
|
|
8
8
|
description = "Quapp common library supporting Quapp Platform for Quantum Computing"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "CITYNOW Co. Ltd. ", email = "corp@citynow.vn" }]
|
|
@@ -89,7 +89,7 @@ def test_structured_error_legacy_string_form(fake_run):
|
|
|
89
89
|
'status': 'error', 'error': 'invalid JSON on stdin'})))
|
|
90
90
|
|
|
91
91
|
with pytest.raises(HandlerRuntimeError) as info:
|
|
92
|
-
dispatch(Language.
|
|
92
|
+
dispatch(Language.QSHARP, REQUEST)
|
|
93
93
|
|
|
94
94
|
assert 'invalid JSON on stdin' in str(info.value)
|
|
95
95
|
|
|
@@ -97,11 +97,11 @@ def test_structured_error_legacy_string_form(fake_run):
|
|
|
97
97
|
# ------------------------------------------------------------- (3) killed by signal
|
|
98
98
|
|
|
99
99
|
def test_signal_is_detected(fake_run):
|
|
100
|
-
"""handler
|
|
100
|
+
"""A subprocess handler is killed by a signal: returncode = -11, stdout empty."""
|
|
101
101
|
fake_run(FakeCompletedProcess(returncode=-11, stdout=''))
|
|
102
102
|
|
|
103
103
|
with pytest.raises(HandlerRuntimeError) as info:
|
|
104
|
-
dispatch(Language.
|
|
104
|
+
dispatch(Language.QSHARP, REQUEST)
|
|
105
105
|
|
|
106
106
|
error = info.value
|
|
107
107
|
assert error.error_type == 'Signal'
|
|
@@ -10,14 +10,8 @@ class TestLanguageCEnum(unittest.TestCase):
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class TestRunnerMapLanguageC(unittest.TestCase):
|
|
13
|
-
def
|
|
14
|
-
self.
|
|
15
|
-
|
|
16
|
-
def test_command_is_compiled_binary(self):
|
|
17
|
-
self.assertEqual(RUNNER_MAP[Language.C]['command'], ['./handler_compiled'])
|
|
18
|
-
|
|
19
|
-
def test_timeout(self):
|
|
20
|
-
self.assertEqual(RUNNER_MAP[Language.C]['timeout'], 300)
|
|
13
|
+
def test_language_c_not_registered(self):
|
|
14
|
+
self.assertNotIn(Language.C, RUNNER_MAP)
|
|
21
15
|
|
|
22
16
|
|
|
23
17
|
class TestLanguageCppEnum(unittest.TestCase):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/async_tasks/async_task.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/__init__.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/invocation.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_fetcher.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_fetching.py
RENAMED
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/backend/job_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/callback/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/circuit_adapter.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/device/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/component/result_serializer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/async_task/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/callback/__init__.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/callback/callback_url.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/__init__.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/authentication.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/custom_header.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/error_report.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/data/response/job_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/status/job_status.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/enum/status/status_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/device_factory.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/handler_factory.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/factory/provider_factory.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/device/custom_device.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/provider/__init__.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/model/provider/provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/invocation_failure.py
RENAMED
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common/util/json_parser_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quapp_common-0.0.14.dev8 → quapp_common-0.0.14.dev9}/quapp_common.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|