From 6edfc9f73886a59d4ca60d78c7f64863bacde0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Mon, 20 Dec 2021 22:57:29 +0100 Subject: [PATCH] chore: Add script to help local dev --- scripts/fixsetup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/fixsetup.sh diff --git a/scripts/fixsetup.sh b/scripts/fixsetup.sh new file mode 100755 index 00000000..7b42e07b --- /dev/null +++ b/scripts/fixsetup.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -e + +PYTHON_VERSIONS="${PYTHON_VERSIONS-3.7 3.8 3.9 3.10 3.11}" + +for python_version in ${PYTHON_VERSIONS}; do + rm -rf "__pypackages__/${python_version}/lib/mkdocstrings" + rm -f "__pypackages__/${python_version}/lib/mkdocstrings.pth" + rm -rf "__pypackages__/${python_version}/lib/mkdocs_autorefs" + rm -f "__pypackages__/${python_version}/lib/mkdocs_autorefs.pth" + cp -r ../mkdocstrings/src/mkdocstrings "__pypackages__/${python_version}/lib/" + cp -r ../mkdocstrings-python/src/mkdocstrings/* "__pypackages__/${python_version}/lib/mkdocstrings" + cp -r ../mkdocs-autorefs/src/mkdocs_autorefs "__pypackages__/${python_version}/lib/" +done