mirror of
https://github.com/Ar9av/obsidian-wiki.git
synced 2026-09-14 20:36:34 +08:00
46e699b91f
* feat(pypi): package obsidian-wiki as a pip-installable distribution (#71) Add a PyPI package so users can install without cloning the repo. - pyproject.toml (hatchling, no runtime deps); force-include .skills/ and bootstrap files into the wheel under obsidian_wiki/_data/ — repo root stays the single source of truth. Force-include .skills/ into the sdist too, or hatchling's VCS walker drops it (the committed agent symlink mirrors shadow the real .skills/<name> files). - obsidian_wiki CLI: Python port of setup.sh. `obsidian-wiki setup` writes ~/.obsidian-wiki/config and symlinks all skills into every supported agent (--copy / --project / --project-only); plus `list` and `info`. - .github/workflows/publish.yml: build + twine check + skill-bundle assertion, publish to PyPI on v* tags via Trusted Publishing (OIDC). - README + SETUP: pip install instructions; gitignore build artifacts. * build(pypi): derive version from git tag via hatch-vcs; skip-existing on publish Align the package version with the repo's CalVer release tags (v2026.05.2 -> 2026.5.2) so tagging a release is the version bump and future release tags auto-publish the matching version.
15 lines
487 B
Python
15 lines
487 B
Python
"""obsidian-wiki: install the LLM-Wiki agent skills into your AI coding agents.
|
|
|
|
The product is the markdown skill content under ``.skills/`` (bundled into this
|
|
package as data). This module is just the installer CLI — see ``cli.py``.
|
|
"""
|
|
|
|
from importlib.metadata import PackageNotFoundError, version
|
|
|
|
try:
|
|
__version__ = version("obsidian-wiki")
|
|
except PackageNotFoundError: # running from a source tree without an install
|
|
__version__ = "0.0.0+dev"
|
|
|
|
__all__ = ["__version__"]
|