Skip to content

Commit 31105f1

Browse files
fix regex escape in _get_pandoc_urls (#362)
* fix regex escape in _get_pandoc_urls * Updated lock file to fix gh actions * fixed ci error --------- Co-authored-by: JessicaTegner <[email protected]>
1 parent 315c6b9 commit 31105f1

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Build binary Archive
9090
uses: pypa/[email protected]
9191
env:
92-
CIBW_BEFORE_ALL: "python3 -m pip install setuptools && mv setup_binary.py setup.py && python3 setup.py download_pandoc"
92+
CIBW_BEFORE_ALL: "python3 -m pip install --break-system-packages setuptools && mv setup_binary.py setup.py && python3 setup.py download_pandoc"
9393
CIBW_BUILD: cp39-* # Build any 1 python version as this wheel is not version dependent
9494
# We skip some variants because:
9595
# - pandoc does not publish binaries for Linux 32bit

poetry.lock

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pypandoc/pandoc_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _get_pandoc_urls(version="latest"):
5858
# regex for the binaries
5959
uname = platform.uname()[4]
6060
processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd"
61-
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")
61+
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+r"|x86|mac).*\.(?:msi|deb|pkg)")
6262
# a list of urls to the binaries
6363
pandoc_urls_list = regex.findall(content.decode("utf-8"))
6464
# actual pandoc version

0 commit comments

Comments
 (0)