diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0638050a..9e830678 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -83,7 +83,7 @@ jobs: echo "Installing pip + wheel..." python -m pip install --upgrade pip wheel echo "Installing requirements.txt + test dependencies..." - python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" + python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint==61.2" "pydyf<0.11.0" - name: Generate Valid Tests run: | @@ -135,7 +135,7 @@ jobs: echo "Installing pip + wheel..." python -m pip install --upgrade pip wheel echo "Installing requirements.txt + test dependencies..." - python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" + python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint==61.2" "pydyf<0.11.0" - name: Generate Valid Tests run: | @@ -185,7 +185,7 @@ jobs: # echo "Installing pip + wheel..." # python -m pip install --upgrade pip wheel # echo "Installing requirements.txt + test dependencies..." -# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" +# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint==61.2" "pydyf<0.11.0" # - name: Generate Valid Tests # run: | # make yestests || true diff --git a/README.md b/README.md index a9f1540f..7f799a57 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ In order to generate PDFs, **xml2rfc** uses the [WeasyPrint] module, which depen 2. Next, install WeasyPrint python modules using pip. ```sh -pip install 'weasyprint>=53.0,!=57.0,!=60.0' +pip install xml2rfc[pdf] ``` 3. Finally, install the required fonts: * Download latest fonts from [xml2rfc-fonts](https://github.com/ietf-tools/xml2rfc-fonts/releases/latest). diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile index 66c382ee..7b4ae9b4 100644 --- a/docker/base.Dockerfile +++ b/docker/base.Dockerfile @@ -54,7 +54,8 @@ RUN pip3 install --upgrade \ # Install Python dependencies RUN pip3 install -r requirements.txt \ - "weasyprint>=53.0,!=57.0,!=60.0" \ + "weasyprint==61.2" \ + "pydyf<0.11.0" \ decorator \ dict2xml \ "pypdf>=3.2.1" diff --git a/setup.cfg b/setup.cfg index 8c6bace3..a037033b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -56,7 +56,8 @@ console_scripts = xml2rfc = xml2rfc.run:main [options.extras_require] -pdf = weasyprint>=53.0,!=57.0,!=60.0 +pdf = weasyprint==61.2 + pydyf<0.11.0 [bdist_wheel] universal = 1 diff --git a/tox.ini b/tox.ini index 016901e0..d371357a 100644 --- a/tox.ini +++ b/tox.ini @@ -34,4 +34,5 @@ deps = decorator dict2xml pypdf>=4.1.0 - weasyprint>=53.0,!=57.0,!=60.0 + weasyprint==61.2 + pydyf<0.11.0 diff --git a/xml2rfc/run.py b/xml2rfc/run.py index f0cc9360..d184fdc7 100755 --- a/xml2rfc/run.py +++ b/xml2rfc/run.py @@ -83,7 +83,7 @@ def get_pdf_help(missing_libs=""): 2. Next, install weasyprint python modules using pip. - pip install 'weasyprint>=53.0,!=57.0,!=60.0' + pip install xml2rfc[pdf] 3. Finally, install the required fonts: * Download latest fonts from xml2rfc-fonts.