diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ba92e0f..482b216 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: - name: Build binary Archive uses: pypa/cibuildwheel@v2.16.5 env: - CIBW_BEFORE_ALL: "python3 -m pip install setuptools && mv setup_binary.py setup.py && python3 setup.py download_pandoc" + CIBW_BEFORE_ALL: "python3 -m pip install --break-system-packages setuptools && mv setup_binary.py setup.py && python3 setup.py download_pandoc" CIBW_BUILD: cp39-* # Build any 1 python version as this wheel is not version dependent # We skip some variants because: # - pandoc does not publish binaries for Linux 32bit diff --git a/poetry.lock b/poetry.lock index 8310ce8..8f3efe0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry 1.4.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "pandocfilters" version = "1.5.0" description = "Utilities for writing pandoc filters in python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -16,7 +15,6 @@ files = [ name = "setuptools" version = "68.0.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -31,5 +29,5 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( [metadata] lock-version = "2.0" -python-versions = ">=3.7,<=3.12" -content-hash = "75e276169cb2c21b09878cb017e668d697e3996a98be34f7299c8cca03e448d4" +python-versions = ">=3.7,<3.13" +content-hash = "91117101dea3dbd85e5bf7ea003e83307ede9f377e04931c1e4b7d071b2053f3" diff --git a/pypandoc/pandoc_download.py b/pypandoc/pandoc_download.py index 14c83bb..3c4c029 100644 --- a/pypandoc/pandoc_download.py +++ b/pypandoc/pandoc_download.py @@ -58,7 +58,7 @@ def _get_pandoc_urls(version="latest"): # regex for the binaries uname = platform.uname()[4] processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd" - regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)") + regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+r"|x86|mac).*\.(?:msi|deb|pkg)") # a list of urls to the binaries pandoc_urls_list = regex.findall(content.decode("utf-8")) # actual pandoc version