From a2038752b97137fe51e809bf7209e054ebbdece9 Mon Sep 17 00:00:00 2001 From: "W. Augusto Andreoli" Date: Sun, 31 Dec 2023 16:53:40 +0100 Subject: [PATCH] ci: clean README.rst before twine check --- ci-prepare-cmd.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci-prepare-cmd.sh b/ci-prepare-cmd.sh index 62030b92..afed39a5 100644 --- a/ci-prepare-cmd.sh +++ b/ci-prepare-cmd.sh @@ -13,6 +13,9 @@ pre-commit run --all-files prettier set -e rm -rf dist/ +# Remove certain markes from the .rst file, otherwise twine check will fail with: +# ERROR `long_description` has syntax errors in markup and would not be rendered on PyPI. +sed -i -e 's/:ref://' -e 's/:gitref://' README.rst poetry build # https://twine.readthedocs.io/en/latest/#twine-check