Skip to content

Commit eeea720

Browse files
committed
strip build status badge from PyPI README
1 parent 83a17ab commit eeea720

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#!/usr/bin/env python
22

33
from distutils.core import setup
4+
from platform import python_version_tuple
5+
import re
46

57
LICENSE = open("LICENSE").read()
68

79
# strip links from the descripton on the PyPI
810
LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`")
11+
# strip Build Status from the PyPI package
12+
if python_version_tuple()[:2] >= ('2', '7'):
13+
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
14+
15+
916

1017
setup(name='tabulate',
1118
version='0.7.1',

0 commit comments

Comments
 (0)