Skip to content

Commit e3269b6

Browse files
committed
Add pandoc check to the release script.
1 parent 221c2c8 commit e3269b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scripts/release.sh

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ VERSION=`python setup.py --version`
66

77
echo "# Releasing pyinfra v$VERSION..."
88

9+
echo "# Checking pandoc installed..."
10+
pandoc --help >/dev/null 2>&1 || (echo "pandoc is not installed!" && exit 1)
11+
python -c 'import pypandoc' >/dev/null 2>&1 || (echo "pypandoc is not installed!" && exit 1)
12+
913
echo "# Running tests..."
1014
nosetests -s
1115

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
long_description = convert_text(long_description, 'rst', 'markdown')
6565

6666
except (ImportError, OSError):
67-
print('Warning: pypandoc module not found, could not convert Markdown to RST')
67+
# Ignore this - release.sh checks for making releases
68+
pass
6869

6970

7071
if __name__ == '__main__':

0 commit comments

Comments
 (0)