Skip to content

Commit b52ec5b

Browse files
fix: resolve publish workflow failures (#30)
* docs: Add CLAUDE.md with project guidelines - Complete project structure overview - Common commands and workflows - Release process (always use ./scripts/release.sh) - Architecture details and optimizations - Linting, testing, and CI/CD guides - Troubleshooting tips This file provides context for Claude Code to work more effectively with the project without repeating instructions. * Add CHANGELOG.md for release tracking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: extract version using grep instead of Python import The publish workflow was failing because it tried to import msgspec_ext before installing dependencies. The __init__.py imports settings.py which requires msgspec, causing ModuleNotFoundError. Changed to use grep to extract version directly from version.py file, similar to how we already extract the previous version. * fix: disable labeler workflow The labeler workflow fails on fork PRs due to GITHUB_TOKEN permission limitations. Added 'if: false' to disable it while keeping the configuration for potential future use. --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 33d79a5 commit b52ec5b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions:
1010

1111
jobs:
1212
label:
13+
# Disabled: fails on fork PRs due to token permissions
14+
if: false
1315
runs-on: ubuntu-latest
1416
steps:
1517
- name: Checkout

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Get current version
4141
id: current
4242
run: |
43-
VERSION=$(python -c "import sys; sys.path.insert(0, 'src'); from msgspec_ext.version import __version__; print(__version__)")
43+
VERSION=$(grep -oP '__version__ = "\K[^"]+' src/msgspec_ext/version.py)
4444
echo "version=$VERSION" >> $GITHUB_OUTPUT
4545
echo "Current version: $VERSION"
4646
@@ -130,7 +130,7 @@ jobs:
130130
- name: Get version
131131
id: version
132132
run: |
133-
VERSION=$(python -c "import sys; sys.path.insert(0, 'src'); from msgspec_ext.version import __version__; print(__version__)")
133+
VERSION=$(grep -oP '__version__ = "\K[^"]+' src/msgspec_ext/version.py)
134134
echo "version=$VERSION" >> $GITHUB_OUTPUT
135135
136136
- name: Create GitHub Release

0 commit comments

Comments
 (0)