Skip to content

Shared Maintenance Tools

Hiromichi Yokoyama edited this page Oct 23, 2026 · 1 revision

Shared maintenance tools

This page is for plugin maintainers. Installed plugins do not gain a new runtime dependency.

Tool Canonical repository Version
API checker engine and registry runner moleditpy-plugins/api-checker Engine 1.1.3
Zenodo, ordinary plugin release and periodic materialization helpers moleditpy-common-tools Bundle 1.0.0

The API checker remains in the plugin collection. Its engine is Ruff checked and formatted before copying. The registry-aware check_api.py runner imports that engine rather than carrying another implementation. Version 1.1.3 fixes importlib/dataclass startup for consumer test runners while retaining Python 3.9 support.

Pinned copies and configuration

Consumers copy tested code rather than importing another installed plugin or downloading the latest main at runtime. scripts/common-tools.lock.json records the bundle version, immutable source commit and SHA-256 of LF-normalized copied scripts. scripts/api-checker.lock.json separately records the collection's engine version, commit and hash. Do not patch or reformat copied scripts independently.

Repository-specific settings stay in JSON files beside the copied tools:

  • zenodo-config.json: the existing public production record ID and, where configured, a separate Sandbox ID. It contains no access token.
  • release-config.json: version source, package/asset names, license notices, archive exclusions and release title.
  • materialize-config.json: destination package and modules copied from the existing pinned periodic submodule.

From a clean, CI-tested common-tools checkout, update selected consumers with:

python tools/sync_consumers.py --workspace /path/to/DEV_MAIN --repo moleditpy_orca_input_generator_pro --write

Without --write, the command reports drift. Commit the copies, configuration and lock file together. See each consumer's scripts/COMMON_TOOLS.md.

Tests run at the canonical source

Maintenance-script unit tests run in common-tools: one Python 3.9 / Ubuntu 24.04 CI job, filtered to tool/test/CI changes. API-engine unit tests live in the collection's separate tests_api_checker/ directory and use one Python 3.9 job. They are not repeated across each plugin's Python matrix.

Keep each plugin's API compatibility and integration checks against MoleditPy. These test the consuming plugin, rather than duplicating engine unit tests. Shared tests mock Zenodo and do not create drafts or publish records.

Release formats and exceptions

Single-file plugins attach their .py and required notices directly. Packaged plugins retain their ZIP layout, filenames and additional license documents. Common steps validate the requested version before a manual tag is created, prepare the configured archive, publish the assets and notify the registry. A maintenance-only change does not require a plugin runtime version bump or release.

The template repository uses the same tools. Its examples/single_file/ directory includes a separate release configuration: copy that configuration to scripts/release-config.json with the example workflow when starting a single-file plugin.

Main-application release orchestration is independent: do not replace python_molecular_editor/.github/workflows/release.yml. Sharing its Zenodo helper does not change application builds or PyPI publication. Keep specialized Rust/server builds and independent PyPI jobs local. Distribute wheels for PyPI products; a native build may use an intermediate wheel internally.

Collection ZIP assets remain generated in GitHub Releases. Do not create a collection "final tag" automatically after unrelated plugin maintenance; collection publication must be explicitly requested.

Workspace documentation

The workspace CLAUDE.md records these conventions. When only that guide is requested for moleditpy_workspace-files, copy and commit only CLAUDE.md. Investigation caches, local settings, credentials, job lists and calculation data are not maintenance artifacts to publish.

See also: Japanese, Official Plugins, canonical tool README.

Clone this wiki locally