prompt_examples / dependency_version_migration.txt
Use the `pydev-mcp` MCP tools to migrate the project's dependencies to [TARGET VERSION/PACKAGE].
Follow these steps in order:
1. **Snapshot & Analysis**:
- Generate a snapshot of current dependencies using `pydev_generate_requirements_txt(mode="freeze")`.
- Use `pydev_analyze_imports_and_dependencies` on core source files to map current usage.
2. **Upgrade Execution**:
- Install the new versions using `pydev_install_module`.
- Run `pydev_get_setup_status` to ensure the environment is updated.
3. **Breaking Change Repair**:
- Run the existing test suite using `pydev_run_tests`.
- For every failure, use `pydev_run_with_debugger` to identify the breaking change caused by the new version.
- Fix the code using `pydev_edit_text_file` to comply with the new API/requirements.
4. **Final Validation**:
- Run `pydev_type_check` and `pydev_run_tests` to ensure full compatibility.
- Regenerate the `requirements.txt` with the new locked versions.
5. **Documentation**:
- Update `doc/MAINTENANCE.md` with the updated dependency list and any significant architectural changes made during migration.
Do not skip any step. Confirm the result of each step before proceeding to the next one.
prompt_examples / dependency_version_migration.txt
Use the `pydev-mcp` MCP tools to migrate the project's dependencies to [TARGET VERSION/PACKAGE].
Follow these steps in order:
1. **Snapshot & Analysis**:
- Generate a snapshot of current dependencies using `pydev_generate_requirements_txt(mode="freeze")`.
- Use `pydev_analyze_imports_and_dependencies` on core source files to map current usage.
2. **Upgrade Execution**:
- Install the new versions using `pydev_install_module`.
- Run `pydev_get_setup_status` to ensure the environment is updated.
3. **Breaking Change Repair**:
- Run the existing test suite using `pydev_run_tests`.
- For every failure, use `pydev_run_with_debugger` to identify the breaking change caused by the new version.
- Fix the code using `pydev_edit_text_file` to comply with the new API/requirements.
4. **Final Validation**:
- Run `pydev_type_check` and `pydev_run_tests` to ensure full compatibility.
- Regenerate the `requirements.txt` with the new locked versions.
5. **Documentation**:
- Update `doc/MAINTENANCE.md` with the updated dependency list and any significant architectural changes made during migration.
Do not skip any step. Confirm the result of each step before proceeding to the next one.