HASSL v0.2.1 — PyPI packaging and import fixes
A small but important maintenance release to ensure HASSL installs and runs cleanly from PyPI.
🧰 Fixes & Improvements
📦 PyPI Packaging
- Fixed missing
hassl.larkgrammar file in wheels and source distributions. - Added
package-dataandMANIFEST.inentries so.larkfiles are always included in builds. - Verified
importlib.resourcescorrectly loads grammars both from editable installs and built packages.
🐍 Import & CLI Fixes
- Updated
cli.pyto construct Lark usingimportlib.resources(no filesystem dependency). - Ensured all modules use relative imports for internal packages.
- Fixed edge case where grammar wasn’t found when installed globally via pip.
🧹 Packaging Hygiene
- Added
pyproject.toml[tool.setuptools.package-data]entry:[tool.setuptools.package-data] "hassl" = ["**/*.lark"]
- Added fallback in
MANIFEST.in
recursive-include hassl *.lark
-Cleaned up duplicate egg-info and rebuild process for TestPyPI.