Skip to content

Commit 8df6bfe

Browse files
committed
private/check-rst: check also setup.py description.
1 parent c619884 commit 8df6bfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

private/check-rst

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ rst2xml=$(command -v rst2xml) \
3131
rst2xml=${rst2xml##*/}
3232
options='--input-encoding=UTF-8 --strict'
3333
if [ $# -eq 0 ]
34+
then
35+
print_desc='python setup.py --long-description'
36+
echo "(cd ${root:-.} && $print_desc) | $rst2xml $options - /dev/null" >&2
37+
(cd "${root:-.}" && $print_desc) | "$rst2xml" $options - /dev/null || exit 1
38+
fi
39+
if [ $# -eq 0 ]
3440
then
3541
grep -rwl ft=rst "${root}doc/"
3642
else

0 commit comments

Comments
 (0)