v0.2.2
What's Changed
Fixes
- CLI flags now use hyphens consistently — all subcommands (
single,batch,coverage,preset) use--left-text,--left-color,--badge-name,--output-pathetc. - Fixed Python 3.8 compatibility:
dict[str, Preset]→Dict[str, Preset]inpresets.py - Fixed
circle_frame.svgusing deprecatedxlink:href→ plainhref(SVG 2 compatible) - Fixed
BadgeGeneratorlog level validation — invalid strings now raiseValueErrorimmediately - Fixed
--coverage-xmlflag name in error messages and preset descriptions - Fixed stale "GitLab-specific" descriptions in
pyproject.tomlandBadgeGeneratordocstring - Fixed
get_lines_of_codereturning"0"silently in--allpreset mode - Added warning when
tomliis unavailable on Python < 3.11 (previously silent fallback)
Documentation
- Migrated from MkDocs to Zensical for docs builds (
zensical.tomlreplacesmkdocs.yml) - Animated hero, carousel, stat counters, and typing subtitle on docs homepage
- All CLI examples updated to hyphenated flag names
- Development install instructions updated to use
pip install -e ".[dev]"
CI / Packaging
- Removed
setup.py—pyproject.tomlexclusively manages build, version (setuptools_scm), and deps - Separated runtime, dev, and docs dependencies into distinct extras
- Added
_version.pyto.gitignore— prevents dirty workspace version strings on CI - Docs deployment now uses
publish-zensical.ymlshared workflow
Installation
pip install badgeshield==0.2.2Full Changelog: 0.2.1...0.2.2