8000 chore: Add script to help local dev · mkdocstrings/python@2122cf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2122cf5

Browse files
committed
chore: Add script to help local dev
1 parent 326070b commit 2122cf5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/fixsetup.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
PYTHON_VERSIONS="${PYTHON_VERSIONS-3.7 3.8 3.9 3.10 3.11}"
5+
6+
for python_version in ${PYTHON_VERSIONS}; do
7+
rm -rf "__pypackages__/${python_version}/lib/mkdocstrings"
8+
rm -f "__pypackages__/${python_version}/lib/mkdocstrings.pth"
9+
rm -rf "__pypackages__/${python_version}/lib/mkdocs_autorefs"
10+
rm -f "__pypackages__/${python_version}/lib/mkdocs_autorefs.pth"
11+
cp -r ../mkdocstrings/src/mkdocstrings "__pypackages__/${python_version}/lib/"
12+
cp -r src/mkdocstrings/* "__pypackages__/${python_version}/lib/mkdocstrings"
13+
cp -r ../mkdocs-autorefs/src/mkdocs_autorefs "__pypackages__/${python_version}/lib/"
14+
done

0 commit comments

Comments
 (0)
0