pyquipu 0.1.0__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.
- pyquipu-0.1.0/.github/workflows/ci.yml +97 -0
- pyquipu-0.1.0/.github/workflows/python-publish.yml +57 -0
- pyquipu-0.1.0/.gitignore +75 -0
- pyquipu-0.1.0/.quipu/.gitignore +1 -0
- pyquipu-0.1.0/.quipu/HEAD +1 -0
- pyquipu-0.1.0/.quipu/config.yml +2 -0
- pyquipu-0.1.0/.quipu/history.sqlite +0 -0
- pyquipu-0.1.0/.quipu/nav_log +14 -0
- pyquipu-0.1.0/.quipu/nav_ptr +1 -0
- pyquipu-0.1.0/.stitcher/index/.gitignore +1 -0
- pyquipu-0.1.0/.stitcher/index/index.db +0 -0
- pyquipu-0.1.0/DEVELOPING.md +99 -0
- pyquipu-0.1.0/LICENSE +201 -0
- pyquipu-0.1.0/PKG-INFO +196 -0
- pyquipu-0.1.0/README.md +163 -0
- pyquipu-0.1.0/README.zh-CN.md +162 -0
- pyquipu-0.1.0/TESTING_GUIDELINES.md +99 -0
- pyquipu-0.1.0/TODO.md +84 -0
- pyquipu-0.1.0/VERSION +1 -0
- pyquipu-0.1.0/bootstrap.py +126 -0
- pyquipu-0.1.0/clear_quipu_refs.sh +30 -0
- pyquipu-0.1.0/conftest.py +3 -0
- pyquipu-0.1.0/dev_setup.fish +36 -0
- pyquipu-0.1.0/dev_setup.sh +33 -0
- pyquipu-0.1.0/examples/install_demo_plugins.md +167 -0
- pyquipu-0.1.0/install_quipu.py +75 -0
- pyquipu-0.1.0/packages/pyquipu-application/pyproject.toml +32 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/__init__.py +0 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/controller.py +214 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/controller.stitcher.yaml +41 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/factory.py +56 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/factory.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/plugin_manager.py +40 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/plugin_manager.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/utils.py +16 -0
- pyquipu-0.1.0/packages/pyquipu-application/src/quipu/application/utils.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-application/stitcher.lock +178 -0
- pyquipu-0.1.0/packages/pyquipu-application/tests/unit/conftest.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-application/tests/unit/test_controller.py +100 -0
- pyquipu-0.1.0/packages/pyquipu-application/tests/unit/test_controller.stitcher.yaml +9 -0
- pyquipu-0.1.0/packages/pyquipu-application/tests/unit/test_utils.py +26 -0
- pyquipu-0.1.0/packages/pyquipu-bus/pyproject.toml +24 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/bus/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/bus/bus.py +102 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/bus/messages.py +19 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/bus/messages.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/locales/zh/acts.json +65 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/locales/zh/cli.json +121 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/locales/zh/engine.json +60 -0
- pyquipu-0.1.0/packages/pyquipu-bus/src/quipu/locales/zh/runtime.json +15 -0
- pyquipu-0.1.0/packages/pyquipu-bus/stitcher.lock +90 -0
- pyquipu-0.1.0/packages/pyquipu-cli/pyproject.toml +41 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/__init__.py +0 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/axon.py +103 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/cache.py +113 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/cache.stitcher.yaml +7 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/export.py +209 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/export.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/helpers.py +86 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/helpers.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/navigation.py +229 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/query.py +135 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/query.stitcher.yaml +3 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/remote.py +126 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/run.py +106 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/show.py +110 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/show.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/ui.py +67 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/commands/workspace.py +90 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/config.py +38 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/config.stitcher.yaml +3 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/logger_config.py +43 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/logger_config.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/main.py +44 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/rendering.py +28 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/rendering.stitcher.yaml +4 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/tui.css +42 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/tui.py +374 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/tui.stitcher.yaml +14 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/ui_utils.py +53 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/ui_utils.stitcher.yaml +17 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/view_model.py +123 -0
- pyquipu-0.1.0/packages/pyquipu-cli/src/quipu/cli/view_model.stitcher.yaml +27 -0
- pyquipu-0.1.0/packages/pyquipu-cli/stitcher.lock +1437 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/conftest.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_cache_commands.py +113 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_cache_commands.stitcher.yaml +12 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_cli_interaction.py +31 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_cli_interaction.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_export_command.py +191 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_export_command.stitcher.yaml +16 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_navigation_commands.py +72 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_query_commands.py +144 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_query_commands.stitcher.yaml +4 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_unfriendly_paths.py +153 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_unfriendly_paths.stitcher.yaml +14 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/integration/test_workspace_commands.py +60 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_tui_logic.py +66 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_tui_logic.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_tui_reachability.py +69 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_tui_reachability.stitcher.yaml +6 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_view_model.py +194 -0
- pyquipu-0.1.0/packages/pyquipu-cli/tests/unit/test_view_model.stitcher.yaml +18 -0
- pyquipu-0.1.0/packages/pyquipu-common/pyproject.toml +20 -0
- pyquipu-0.1.0/packages/pyquipu-common/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-common/src/quipu/common/identity.py +12 -0
- pyquipu-0.1.0/packages/pyquipu-common/src/quipu/common/identity.stitcher.yaml +18 -0
- pyquipu-0.1.0/packages/pyquipu-common/stitcher.lock +115 -0
- pyquipu-0.1.0/packages/pyquipu-engine/pyproject.toml +29 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/config.py +88 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/config.stitcher.yaml +18 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/git_db.py +418 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/git_db.stitcher.yaml +74 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/git_object_storage.py +475 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/git_object_storage.stitcher.yaml +46 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/hydrator.py +163 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/hydrator.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/sqlite_db.py +132 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/sqlite_db.stitcher.yaml +19 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/sqlite_storage.py +425 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/sqlite_storage.stitcher.yaml +32 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/state_machine.py +372 -0
- pyquipu-0.1.0/packages/pyquipu-engine/src/quipu/engine/state_machine.stitcher.yaml +16 -0
- pyquipu-0.1.0/packages/pyquipu-engine/stitcher.lock +1966 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_hydrator.py +98 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_hydrator.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_reader.py +199 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_reader.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_writer.py +90 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_writer.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_writer_idempotency.py +78 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/sqlite/test_writer_idempotency.stitcher.yaml +9 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_branching.py +60 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_branching.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_checkout_behavior.py +105 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_checkout_behavior.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_engine.py +193 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_engine.stitcher.yaml +17 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_db.py +276 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_db.stitcher.yaml +35 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_reader.py +184 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_reader.stitcher.yaml +12 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_writer.py +103 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_git_writer.stitcher.yaml +6 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_head_tracking.py +123 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/integration/test_head_tracking.stitcher.yaml +9 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/sqlite/test_reader_integrity.py +104 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/sqlite/test_reader_integrity.stitcher.yaml +15 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_config.py +93 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_config.stitcher.yaml +12 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_deduplication.py +44 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_deduplication.stitcher.yaml +3 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_engine_memory.py +62 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_engine_memory.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_navigation.py +95 -0
- pyquipu-0.1.0/packages/pyquipu-engine/tests/unit/test_navigation.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/README.md +3 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/pyproject.toml +20 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/exceptions.py +14 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/exceptions.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/models.py +45 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/models.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/result.py +12 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/result.stitcher.yaml +3 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/storage.py +64 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/storage.stitcher.yaml +42 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/types.py +43 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/src/quipu/interfaces/types.stitcher.yaml +14 -0
- pyquipu-0.1.0/packages/pyquipu-interfaces/stitcher.lock +302 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/pyproject.toml +29 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/__init__.py +11 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/__init__.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/basic.py +140 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/basic.stitcher.yaml +20 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/check.py +55 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/check.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/git.py +82 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/git.stitcher.yaml +16 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/memory.py +35 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/memory.stitcher.yaml +6 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/read.py +147 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/read.stitcher.yaml +13 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/refactor.py +66 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/refactor.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/shell.py +38 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/acts/shell.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/executor.py +179 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/executor.stitcher.yaml +24 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/parser.py +149 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/parser.stitcher.yaml +21 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/plugin_loader.py +56 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/src/quipu/runtime/plugin_loader.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/stitcher.lock +1386 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_check.py +51 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_check.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_git.py +72 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_git.stitcher.yaml +4 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_memory.py +42 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_patch_ambiguity.py +50 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_patch_ambiguity.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_read.py +105 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_refactor.py +80 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_shell.py +71 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/acts/test_shell.stitcher.yaml +5 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/conftest.py +15 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/conftest.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_arg_strategy.py +70 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_arg_strategy.stitcher.yaml +16 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_and_basic_acts.py +205 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_and_basic_acts.stitcher.yaml +2 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_auto_detect.py +74 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_auto_detect.stitcher.yaml +10 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_robustness.py +67 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_parser_robustness.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_plugin_loader.py +66 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_plugin_loader.stitcher.yaml +8 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_plugin_resilience.py +59 -0
- pyquipu-0.1.0/packages/pyquipu-runtime/tests/unit/test_plugin_resilience.stitcher.yaml +4 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/pyproject.toml +30 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/__init__.py +3 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/test_utils/__init__.py +0 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/test_utils/fixtures.py +143 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/test_utils/fixtures.stitcher.yaml +24 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/test_utils/helpers.py +418 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/src/quipu/test_utils/helpers.stitcher.yaml +49 -0
- pyquipu-0.1.0/packages/pyquipu-test-utils/stitcher.lock +422 -0
- pyquipu-0.1.0/pyproject.toml +78 -0
- pyquipu-0.1.0/ruff.md +78 -0
- pyquipu-0.1.0/scripts/check_locales.py +152 -0
- pyquipu-0.1.0/tests/__init__.py +0 -0
- pyquipu-0.1.0/tests/integration/.gitkeep +0 -0
- pyquipu-0.1.0/tests/integration/__init__.py +0 -0
- pyquipu-0.1.0/tests/integration/conftest.py +3 -0
- pyquipu-0.1.0/tests/integration/test_cli_workflow.py +240 -0
- pyquipu-0.1.0/tests/integration/test_storage_selection.py +189 -0
- pyquipu-0.1.0/tests/integration/test_sync_modes.py +125 -0
- pyquipu-0.1.0/tests/integration/test_sync_workflow.py +205 -0
- pyquipu-0.1.0/tests/integration/test_workspace_invariance.py +77 -0
- pyquipu-0.1.0/tests/integration/test_workspace_isolation.py +76 -0
- pyquipu-0.1.0/uv.lock +761 -0
- pyquipu-0.1.0/verify_sandbox.py +77 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
name: Quipu CI
|
|
2
|
+
|
|
3
|
+
# 触发条件:
|
|
4
|
+
# 1. 推送到任何分支
|
|
5
|
+
# 2. 创建或更新到 main 分支的 Pull Request
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- "**"
|
|
10
|
+
pull_request:
|
|
11
|
+
branches:
|
|
12
|
+
- main
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
quality-checks:
|
|
16
|
+
# 在最新的 Ubuntu 环境上运行
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
# 定义测试矩阵,以支持未来在多个 Python 版本上测试
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.11"] # 可以扩展为 ["3.10", "3.11", "3.12"]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
# 步骤 1: 检出代码
|
|
26
|
+
- name: Checkout repository
|
|
27
|
+
uses: actions/checkout@v4
|
|
28
|
+
|
|
29
|
+
# 步骤 2: 设置 Python 环境
|
|
30
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
31
|
+
uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
|
|
35
|
+
# 步骤 3: 安装 uv (项目的核心依赖)
|
|
36
|
+
- name: Install uv
|
|
37
|
+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
38
|
+
|
|
39
|
+
# 步骤 4: 创建虚拟环境并安装开发依赖
|
|
40
|
+
# 这模拟了 `bootstrap.py` 中创建 dev 环境的过程
|
|
41
|
+
- name: Create venv and install dev dependencies
|
|
42
|
+
run: |
|
|
43
|
+
# 激活 uv
|
|
44
|
+
source $HOME/.cargo/env
|
|
45
|
+
# 创建虚拟环境
|
|
46
|
+
uv venv .envs/dev
|
|
47
|
+
# 安装开发和测试工具,以及所有本地包(可编辑模式)
|
|
48
|
+
uv pip install -p .envs/dev \
|
|
49
|
+
-e .[dev]
|
|
50
|
+
|
|
51
|
+
# 步骤 5: 运行 Ruff (代码风格检查和静态分析)
|
|
52
|
+
# 使用 --check 标志,如果代码格式不正确,CI 会失败
|
|
53
|
+
- name: Run Ruff Linter and Formatter Check
|
|
54
|
+
run: |
|
|
55
|
+
source .envs/dev/bin/activate
|
|
56
|
+
ruff check .
|
|
57
|
+
ruff format --check .
|
|
58
|
+
|
|
59
|
+
# 步骤 6: 运行 Pytest
|
|
60
|
+
# pytest 会自动读取 pyproject.toml 中的配置
|
|
61
|
+
- name: Run Pytest with Coverage
|
|
62
|
+
run: |
|
|
63
|
+
source .envs/dev/bin/activate
|
|
64
|
+
pytest
|
|
65
|
+
|
|
66
|
+
build-wheels:
|
|
67
|
+
# 模拟 `promote` 流程,确保所有包都可以被成功打包
|
|
68
|
+
runs-on: ubuntu-latest
|
|
69
|
+
name: Verify Package Builds
|
|
70
|
+
|
|
71
|
+
steps:
|
|
72
|
+
- name: Checkout repository
|
|
73
|
+
uses: actions/checkout@v4
|
|
74
|
+
|
|
75
|
+
- name: Set up Python
|
|
76
|
+
uses: actions/setup-python@v5
|
|
77
|
+
with:
|
|
78
|
+
python-version: '3.11'
|
|
79
|
+
|
|
80
|
+
- name: Install uv
|
|
81
|
+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
82
|
+
|
|
83
|
+
- name: Build wheels for all packages
|
|
84
|
+
run: |
|
|
85
|
+
source $HOME/.cargo/env
|
|
86
|
+
# 创建用于存放 wheel 的目录
|
|
87
|
+
mkdir -p dist
|
|
88
|
+
# 遍历所有 packages 目录并构建 wheel
|
|
89
|
+
for pkg_dir in packages/*; do
|
|
90
|
+
if [ -d "$pkg_dir" ]; then
|
|
91
|
+
echo "Building wheel for $pkg_dir..."
|
|
92
|
+
uv build "$pkg_dir" --out-dir dist
|
|
93
|
+
fi
|
|
94
|
+
done
|
|
95
|
+
|
|
96
|
+
- name: List built wheels
|
|
97
|
+
run: ls -l dist
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Upload Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*@v*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.10"
|
|
18
|
+
|
|
19
|
+
- name: Install uv
|
|
20
|
+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
21
|
+
|
|
22
|
+
- name: Parse Scoped Tag
|
|
23
|
+
id: parse
|
|
24
|
+
run: |
|
|
25
|
+
# 标签格式示例: pyquipu-engine@v0.1.1
|
|
26
|
+
TAG_NAME=${{ github.ref_name }}
|
|
27
|
+
if [[ $TAG_NAME == *"@"* ]]; then
|
|
28
|
+
PKG_NAME=$(echo $TAG_NAME | cut -d'@' -f1)
|
|
29
|
+
VERSION=$(echo $TAG_NAME | cut -d'@' -f2)
|
|
30
|
+
else
|
|
31
|
+
# 如果标签不含 @ (例如 v0.1.1), 默认构建元包
|
|
32
|
+
PKG_NAME="pyquipu"
|
|
33
|
+
VERSION=$TAG_NAME
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
echo "Detected Package: $PKG_NAME"
|
|
37
|
+
echo "Detected Version: $VERSION"
|
|
38
|
+
echo "pkg_name=$PKG_NAME" >> $GITHUB_OUTPUT
|
|
39
|
+
|
|
40
|
+
- name: Build and Publish
|
|
41
|
+
run: |
|
|
42
|
+
PKG_NAME=${{ steps.parse.outputs.pkg_name }}
|
|
43
|
+
rm -rf dist/
|
|
44
|
+
|
|
45
|
+
if [ -d "packages/$PKG_NAME" ]; then
|
|
46
|
+
echo "Building sub-package: $PKG_NAME"
|
|
47
|
+
uv build packages/$PKG_NAME
|
|
48
|
+
else
|
|
49
|
+
echo "Building root package or custom tag: $PKG_NAME"
|
|
50
|
+
uv build .
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
- name: Publish to PyPI
|
|
54
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
55
|
+
with:
|
|
56
|
+
user: __token__
|
|
57
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
pyquipu-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# tmpfiles
|
|
7
|
+
o.md
|
|
8
|
+
a.md
|
|
9
|
+
a
|
|
10
|
+
o
|
|
11
|
+
t
|
|
12
|
+
tmpfile
|
|
13
|
+
|
|
14
|
+
# Scaffoldings
|
|
15
|
+
context_builder.yml
|
|
16
|
+
context_builder.py
|
|
17
|
+
current_prompts
|
|
18
|
+
|
|
19
|
+
# Distribution / Packaging
|
|
20
|
+
.Python
|
|
21
|
+
build/
|
|
22
|
+
develop-eggs/
|
|
23
|
+
dist/
|
|
24
|
+
downloads/
|
|
25
|
+
eggs/
|
|
26
|
+
.eggs/
|
|
27
|
+
lib/
|
|
28
|
+
lib64/
|
|
29
|
+
parts/
|
|
30
|
+
sdist/
|
|
31
|
+
var/
|
|
32
|
+
wheels/
|
|
33
|
+
*.egg-info/
|
|
34
|
+
.installed.cfg
|
|
35
|
+
*.egg
|
|
36
|
+
|
|
37
|
+
# Virtual Environments
|
|
38
|
+
venv/
|
|
39
|
+
env/
|
|
40
|
+
.env
|
|
41
|
+
.venv/
|
|
42
|
+
|
|
43
|
+
# Testing
|
|
44
|
+
.tox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# IDEs
|
|
55
|
+
.idea/
|
|
56
|
+
.vscode/
|
|
57
|
+
*.swp
|
|
58
|
+
*.swo
|
|
59
|
+
|
|
60
|
+
# Project Specific
|
|
61
|
+
*.log
|
|
62
|
+
axon.log
|
|
63
|
+
# Ignore test vaults or scratchpads if created in root
|
|
64
|
+
vault/
|
|
65
|
+
temp/
|
|
66
|
+
scratch/
|
|
67
|
+
# --- Quipu Dev Infra ---
|
|
68
|
+
.envs/
|
|
69
|
+
.uv/
|
|
70
|
+
sandbox/
|
|
71
|
+
*.egg-info/
|
|
72
|
+
__pycache__/
|
|
73
|
+
.pytest_cache/
|
|
74
|
+
.coverage
|
|
75
|
+
htmlcov/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a9cd67305515f16041644e053c6970faaf50dfa7
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
b633784e76b7143b31d8603ce69b54704379f0e2
|
|
2
|
+
8d8911588e596cf88f2ffee99767a9819b037c8e
|
|
3
|
+
dc269ce49807140fb9c1867dcc5c7c57ae94e331
|
|
4
|
+
f4888bfb7d15dd219b4295d7a32d630923acde09
|
|
5
|
+
bf6375e91b01eb1e8af6156651e455ce6e6419d2
|
|
6
|
+
edb0fe3c44ec45120191207232e4d43f9e734535
|
|
7
|
+
bf6375e91b01eb1e8af6156651e455ce6e6419d2
|
|
8
|
+
b3e82d39105308f9bd6e05531e0a889fb7a86b85
|
|
9
|
+
27a32d07eb134a7257ea3d0353e8ca8e1dac63cc
|
|
10
|
+
106f9504b6d9f32d1a87739080521e575dedf047
|
|
11
|
+
f9ca35402c049eed9ae13c7805b04278a7b07f2f
|
|
12
|
+
38cbf2bf9a2e77326ca39046bd498d3f35c60635
|
|
13
|
+
ec7e619c1ebb1655035208ba98f6bc5ed5585988
|
|
14
|
+
a9cd67305515f16041644e053c6970faaf50dfa7
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
13
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*
|
|
Binary file
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Quipu 开发指南 (The Quipu Bootstrap Workflow)
|
|
2
|
+
|
|
3
|
+
本文档介绍了如何在一个“依靠 Quipu 构建 Quipu”的自举环境中安全、高效地工作。
|
|
4
|
+
|
|
5
|
+
## 核心概念:双环境旁路 (Dual-Environment Bypass)
|
|
6
|
+
|
|
7
|
+
为了解决“修改工具本身会导致工具崩溃”的死锁问题,我们维护了两个隔离的环境:
|
|
8
|
+
|
|
9
|
+
1. **🔵 Stable 环境 (`qs`)**:
|
|
10
|
+
* **角色**: 医生/生产者。
|
|
11
|
+
* **本质**: 上一次成功构建的代码的**静态快照**。
|
|
12
|
+
* **用途**: **你的生产力工具**。用它来生成代码、重构文件、执行 Act。它不会受你正在编辑的源码中的语法错误影响。
|
|
13
|
+
2. **🟢 Dev 环境 (`qd`)**:
|
|
14
|
+
* **角色**: 病人/被测对象。
|
|
15
|
+
* **本质**: 当前源码的**动态链接** (`pip install -e`)。
|
|
16
|
+
* **用途**: **你的测试对象**。用它来跑测试、手动调试、验证新功能。它实时反映源码的修改。
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 快速开始
|
|
21
|
+
|
|
22
|
+
### 1. 初始化环境
|
|
23
|
+
|
|
24
|
+
首次克隆项目后,在根目录执行:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 1. 安装 uv (如果尚未安装)
|
|
28
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
29
|
+
|
|
30
|
+
# 2. 构建双环境
|
|
31
|
+
python3 bootstrap.py init
|
|
32
|
+
|
|
33
|
+
# 3. 激活别名 (建议加入 .bashrc 或 .zshrc)
|
|
34
|
+
source dev_setup.sh
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
对于 fish:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
# 激活别名 (建议加入 .config/fish/config.fish)
|
|
41
|
+
source dev_setup.fish
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. 常用命令速查
|
|
45
|
+
|
|
46
|
+
| 别名 | 完整命令 | 用途 |
|
|
47
|
+
| :--- | :--- | :--- |
|
|
48
|
+
| **`qs`** | `.envs/stable/bin/quipu` | **执行工具**。用这个来跑 `Plan.md` 修改代码。 |
|
|
49
|
+
| **`qd`** | `.envs/dev/bin/quipu` | **调试对象**。用这个来手动测试新功能(配合沙盒)。 |
|
|
50
|
+
| **`qtest`** | `.envs/dev/bin/pytest` | **运行测试**。运行项目的单元/集成测试。 |
|
|
51
|
+
| **`qpromote`** | `python bootstrap.py promote` | **晋升**。将当前的 Dev 源码打包刷新到 Stable 环境。 |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 标准开发循环 (The Loop)
|
|
56
|
+
|
|
57
|
+
### 场景 A:常规功能开发
|
|
58
|
+
|
|
59
|
+
1. **编写计划**: 创建 `feat_xxx.md`。
|
|
60
|
+
2. **执行修改**: 使用 **Stable** 环境执行计划。
|
|
61
|
+
```bash
|
|
62
|
+
qs run feat_xxx.md
|
|
63
|
+
```
|
|
64
|
+
3. **验证**: 使用 **Dev** 环境运行测试。
|
|
65
|
+
```bash
|
|
66
|
+
qtest tests/test_new_feat.py
|
|
67
|
+
```
|
|
68
|
+
4. **晋升**: 测试通过后,刷新工具链,使新功能在 `qs` 中可用。
|
|
69
|
+
```bash
|
|
70
|
+
qpromote
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 场景 B:核心重构 (高风险)
|
|
74
|
+
|
|
75
|
+
当你修改 `Engine` 或 `Runtime` 核心逻辑时,可能会破坏 `.quipu` 数据结构。
|
|
76
|
+
|
|
77
|
+
1. **执行修改**: `qs run refactor_core.md`
|
|
78
|
+
2. **单元测试**: `qtest`
|
|
79
|
+
3. **沙盒验证**: **严禁**直接运行 `qd run`,这会破坏项目根目录的 `.quipu`。请运行:
|
|
80
|
+
```bash
|
|
81
|
+
python3 verify_sandbox.py
|
|
82
|
+
```
|
|
83
|
+
该脚本会在 `sandbox/` 目录中隔离运行 `qd`,确保新逻辑能正常工作且不污染环境。
|
|
84
|
+
4. **晋升**: `qpromote`
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 故障排除
|
|
89
|
+
|
|
90
|
+
### Q: 我把代码改坏了,`qd` 报错,但我需要用 Quipu 来修复它。
|
|
91
|
+
**A**: 这正是双环境存在的意义!`qs` 是独立的静态副本,它**没有坏**。你可以继续使用 `qs run fix_bug.md` 来修复源代码。
|
|
92
|
+
|
|
93
|
+
### Q: 我不小心执行了 `qpromote`,把坏掉的代码同步到了 `qs`,现在两个都坏了!
|
|
94
|
+
**A**:
|
|
95
|
+
1. **Git 回滚**: 使用 `git checkout` 或使用 `qs ui` 恢复源码到上一个好状态。
|
|
96
|
+
2. **再次晋升**: 运行 `qpromote`。这会将回滚后的好代码重新安装到 `qs`。
|
|
97
|
+
|
|
98
|
+
### Q: `qtest` 找不到我新加的包?
|
|
99
|
+
**A**: 如果你添加了新的 `packages/` 子目录,需要重新运行 `python3 bootstrap.py init` 来注册新的 Editable Install。
|
pyquipu-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|