fix: repair the corrupted version file#14
Conversation
version.py had a duplicated docstring concatenated onto END_VERSION_BLOCK and a hard-coded __version__ that ignored the version block. Derive __version__ from the block fields so the release automation's bumps take effect. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
I've gathered some intelligence on your latest changes. 🕵️♀️I've aggregated the results of the automated checks for this PR below. 📋 Repo HealthA routine checkup to keep the repo running smoothly. 🏥 ✅ All required files present. Latest Version: ✅ 🔒 Security (pip-audit)Scanning for any signs of suspicious activity. 🕵️♂️ ✅ No known vulnerabilities found (39 packages scanned). ⚖️ License CheckI've verified the attribution of all third-party code. 👤 ❌ License violations detected (11 packages) — review required before merging. License distribution: 3× Apache-2.0, 2× MIT License, 1× 3-Clause BSD License, 1× Apache Software License, 1× Apache-2.0 OR BSD-2-Clause, 1× BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0, 1× MIT, 1× PSF-2.0 Full breakdown — 11 packages
Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed. 🏷️ Release PreviewChecking if we've included all the important changes. 📋 Current:
✅ PR title follows conventional commit format. 🚀 Release Channel Compatibility Predicted next version:
🔌 Plugin DetectionEnsuring the plugin's 'icon' (if any) is looking sharp. 🎨 ℹ️ Not an OVOS plugin — OPM check skipped. 📊 CoverageIs the code fully immunized with tests? 💉 ✅ 85.5% total coverage Files below 80% coverage (1 file)
Full report: download the 🔨 Build TestsThe build is fresh out of the oven! 🥯 ✅ All versions pass
Stay curious and keep coding! 🚀 |
Summary
markovonnx/version.pywas invalid. It contained aEND_VERSION_BLOCKmarkerimmediately concatenated with a duplicated module docstring and a second
__version__line, and__version__was hard-coded to"0.3.0"independentlyof the version block (which itself read
0.0.1a3).Because
__version__was hard-coded, the release automation's bumps to the# START_VERSION_BLOCKfields never reached the value setuptools reads via[tool.setuptools.dynamic].This rewrites the file to the canonical format: a clean version block plus a
__version__derived from those fields. The block is set to0.3.0— thecurrent published version — so the automation can take over bumping from there.
Test plan
version.pyimports and__version__ == "0.3.0"pyproject.tomldynamic version resolves on build