Skip to content

Commit cb214e1

Browse files
committed
Update RELEASE.md with PyPI local version fix documentation
1 parent 4097390 commit cb214e1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

RELEASE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ write_to = "src/echr_extractor/_version.py" # Auto-generate version file
146146
- Check that setuptools_scm is installed: `pip install setuptools_scm`
147147
- Verify pyproject.toml configuration is correct
148148

149+
### "Local versions not allowed" error on PyPI?
150+
- **Cause**: setuptools_scm was generating versions with local identifiers (e.g., `1.0.47+abc123`)
151+
- **Solution**: The configuration now uses `local_scheme = "no-local-version"` to prevent this
152+
- **Prevention**: Only build from clean, tagged commits (GitHub Actions now only runs on tags)
153+
- **Manual fix**: Ensure working directory is clean before creating tags
154+
149155
## 📚 Additional Resources
150156

151157
- [setuptools_scm Documentation](https://github.com/pypa/setuptools_scm)

0 commit comments

Comments
 (0)