Skip to content

Fix check_version step#134

Merged
jamiecobbett merged 1 commit into
masterfrom
fix-check-version
May 27, 2026
Merged

Fix check_version step#134
jamiecobbett merged 1 commit into
masterfrom
fix-check-version

Conversation

@jamiecobbett
Copy link
Copy Markdown
Contributor

@jamiecobbett jamiecobbett commented May 27, 2026

The r\"...\" raw string breaks because in Python raw strings \" doesn't escape the quote — it literally terminates the string.

I tried the code locally and was able to reproduce the error. This version works locally and gets the right result.

This failed with:

Run VERSION=$(python -c "import re; print(re.search(r\"version\s*=\s*['\"']([^'\"']+)['\"']\", open('setup.py').read()).group(1))")
  File "<string>", line 1
    import re; print(re.search(r"version\s*=\s*['"']([^'"']+)['"']", open('setup.py').read()).group(1))
                                                                                   ^
SyntaxError: unterminated string literal (detected at line 1) Error: Process completed with exit code 1.

The r\"...\" raw string breaks because in Python raw strings \" doesn't escape
the quote — it literally terminates the string.

I tried the code and was able to reproduce the error. This version works
locally and gets the right result.

This failed with:

Run VERSION=$(python -c "import re; print(re.search(r\"version\s*=\s*['\"']([^'\"']+)['\"']\", open('setup.py').read()).group(1))")
  File "<string>", line 1
    import re; print(re.search(r"version\s*=\s*['"']([^'"']+)['"']", open('setup.py').read()).group(1))
                                                                                   ^
SyntaxError: unterminated string literal (detected at line 1)
Error: Process completed with exit code 1.
@jamiecobbett jamiecobbett merged commit 84dd5a5 into master May 27, 2026
9 checks passed
@jamiecobbett jamiecobbett deleted the fix-check-version branch May 27, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants