mofox-plugin-dev-toolkit 0.6.2__tar.gz → 0.6.4__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.
- {mofox_plugin_dev_toolkit-0.6.2/mofox_plugin_dev_toolkit.egg-info → mofox_plugin_dev_toolkit-0.6.4}/PKG-INFO +1 -1
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4/mofox_plugin_dev_toolkit.egg-info}/PKG-INFO +1 -1
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/__init__.py +1 -1
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/market.py +6 -4
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/git_manager.py +10 -12
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/pyproject.toml +1 -1
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/LICENSE +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/MANIFEST.in +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/README.md +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mofox_plugin_dev_toolkit.egg-info/SOURCES.txt +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mofox_plugin_dev_toolkit.egg-info/dependency_links.txt +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mofox_plugin_dev_toolkit.egg-info/entry_points.txt +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mofox_plugin_dev_toolkit.egg-info/requires.txt +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mofox_plugin_dev_toolkit.egg-info/top_level.txt +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/__main__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/base.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/attribute_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/decorator_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/import_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/manifest_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/method_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/style_fixer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/transformers.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/component_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/config_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/import_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/metadata_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/structure_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/style_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/validators/type_validator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/cli.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/build.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/bump.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/check.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/depend.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/dev.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/generate.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/commands/init.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/cleanup_handler.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/dev_config.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/file_watcher.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/manifest.json +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/plugin.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/action_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/adapter_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/chatter_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/collection_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/config_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/event_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/plus_command_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/prompt_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/router_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/service_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/tool_template.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/code_parser.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/color_printer.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/file_ops.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/license_generator.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/__init__.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/config_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/github_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/manifest_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/market_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/package_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/pypi_manager.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/plugin_parser.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/template_engine.py +0 -0
- {mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/setup.cfg +0 -0
|
@@ -187,8 +187,9 @@ def market_publish(
|
|
|
187
187
|
git_mgr.set_remote(clone_url)
|
|
188
188
|
|
|
189
189
|
# 确保有提交
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
if not git_mgr.has_commits():
|
|
191
|
+
print_info("正在提交代码...")
|
|
192
|
+
git_mgr.ensure_commit(f"Release {version}")
|
|
192
193
|
|
|
193
194
|
# 创建 tag
|
|
194
195
|
tag = manifest_mgr.build_release_tag(version)
|
|
@@ -542,8 +543,9 @@ def market_package_new_version(
|
|
|
542
543
|
git_mgr.set_remote(clone_url)
|
|
543
544
|
|
|
544
545
|
# 确保有提交
|
|
545
|
-
|
|
546
|
-
|
|
546
|
+
if not git_mgr.has_commits():
|
|
547
|
+
print_info("正在提交代码...")
|
|
548
|
+
git_mgr.ensure_commit(f"Release {version}")
|
|
547
549
|
|
|
548
550
|
# 创建 tag
|
|
549
551
|
print_info(f"正在创建标签: {tag}")
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/git_manager.py
RENAMED
|
@@ -430,30 +430,28 @@ config/local_*.toml
|
|
|
430
430
|
return False
|
|
431
431
|
|
|
432
432
|
def ensure_commit(self, message: str) -> tuple[bool, str]:
|
|
433
|
-
"""
|
|
433
|
+
"""确保仓库至少存在一个提交。
|
|
434
|
+
|
|
435
|
+
仅在仓库完全没有提交记录时创建提交;如果仓库已有提交,
|
|
436
|
+
不会因为工作区存在未提交更改而自动产生新的发布提交。
|
|
434
437
|
|
|
435
438
|
Args:
|
|
436
|
-
message:
|
|
439
|
+
message: 首次提交时使用的提交消息
|
|
437
440
|
|
|
438
441
|
Returns:
|
|
439
442
|
(是否成功, 消息)
|
|
440
443
|
"""
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
if not success:
|
|
444
|
-
return False, msg
|
|
444
|
+
if self.has_commits():
|
|
445
|
+
return True, "已有提交,无需创建新提交"
|
|
445
446
|
|
|
446
|
-
# 检查是否有更改
|
|
447
447
|
success, status = self.get_status()
|
|
448
448
|
if not success:
|
|
449
449
|
return False, f"获取状态失败: {status}"
|
|
450
450
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
return True, "无需提交"
|
|
451
|
+
if not status.strip():
|
|
452
|
+
return False, "仓库没有提交记录,且没有可提交的文件"
|
|
454
453
|
|
|
455
|
-
|
|
456
|
-
return self.commit(message)
|
|
454
|
+
return self.commit(message, add_all=True)
|
|
457
455
|
|
|
458
456
|
def tag_exists(self, tag: str) -> bool:
|
|
459
457
|
"""检查标签是否存在
|
|
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
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/checkers/fixers/__init__.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
|
|
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
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/dev/bridge_plugin/plugin.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/__init__.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/action_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/adapter_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/chatter_template.py
RENAMED
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/config_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/event_template.py
RENAMED
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/prompt_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/router_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/service_template.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/templates/tool_template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/color_printer.py
RENAMED
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/license_generator.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/managers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/plugin_parser.py
RENAMED
|
File without changes
|
{mofox_plugin_dev_toolkit-0.6.2 → mofox_plugin_dev_toolkit-0.6.4}/mpdt/utils/template_engine.py
RENAMED
|
File without changes
|
|
File without changes
|