Skip to content

Bump pypandoc to fix SyntaxWarning - #3069

Merged
JacobCoffee merged 2 commits into
python:mainfrom
hugovk:fix-pypandoc-syntaxwarning
Jul 28, 2026
Merged

Bump pypandoc to fix SyntaxWarning#3069
JacobCoffee merged 2 commits into
python:mainfrom
hugovk:fix-pypandoc-syntaxwarning

Conversation

@hugovk

@hugovk hugovk commented Jul 28, 2026

Copy link
Copy Markdown
Member

Description

Fixes:

web-1       | /code/.venv/lib/python3.14/site-packages/pypandoc/pandoc_download.py:61: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
web-1       |   regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")

pypandoc==1.12 was released on 2023-10-17.

pypandoc==1.17 was released on 2026-03-14 and has fixed the warnings.

@hugovk
hugovk requested a review from JacobCoffee as a code owner July 28, 2026 11:16
Copilot AI review requested due to automatic review settings July 28, 2026 11:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pinned pypandoc dependency to a newer release in order to eliminate a SyntaxWarning emitted by pypandoc under Python 3.14+ (as shown in the PR description).

Changes:

  • Bump pypandoc from 1.12 to 1.17 in pyproject.toml.
  • Regenerate/update uv.lock entries to match the new pypandoc==1.17 pin (including sdist/wheel hashes).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Pins pypandoc to 1.17 to address the warning.
uv.lock Updates the lockfile to pypandoc==1.17 with corresponding artifact URLs/hashes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 28, 2026 14:31
@JacobCoffee
JacobCoffee enabled auto-merge (squash) July 28, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@JacobCoffee
JacobCoffee disabled auto-merge July 28, 2026 15:26
@JacobCoffee
JacobCoffee merged commit b477d6e into python:main Jul 28, 2026
7 checks passed
@hugovk
hugovk deleted the fix-pypandoc-syntaxwarning branch July 28, 2026 15:46
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.

3 participants