Skip to content

Commit 71c0c91

Browse files
committed
Update setup.py
1 parent a6ed038 commit 71c0c91

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010

1111
this_directory = os.path.abspath(os.path.dirname(__file__))
1212
long_description = None
13+
total_description = None
1314
try:
1415
with open(os.path.join(this_directory, 'README.md'), 'rb') as f:
15-
long_description = f.read().decode('utf-8')
16+
total_description = f.read().decode('utf-8')
17+
description_lines = total_description.split('\n')
18+
long_description_lines = []
19+
for line in description_lines:
20+
if not line.startswith("<meta ") and not line.startswith("<link "):
21+
long_description_lines.append(line)
22+
long_description = "\n".join(long_description_lines)
1623
except IOError:
1724
long_description = 'Reliable Browser Automation & Testing Framework'
1825

0 commit comments

Comments
 (0)