Skip to content

Commit e7c37f1

Browse files
ambvgsnedders
authored andcommitted
reuse README.rst on PyPI
1 parent d0b9b13 commit e7c37f1

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ html5lib
22
========
33

44
html5lib is a pure-python library for parsing HTML. It is designed to
5-
conform to the HTML specification, as is implemented by all major web
6-
browsers.
5+
conform to the WHATWG HTML specification, as is implemented by all major
6+
web browsers.
77

88

99
Requirements
@@ -17,7 +17,7 @@ may or may not work; if you wish to try, you are strongly encouraged
1717
to run the testsuite and report back!
1818

1919
The only required library dependency is ``six``, this can be found
20-
packaged in PyPi.
20+
packaged in PyPI.
2121

2222
Optionally:
2323

@@ -31,7 +31,7 @@ Optionally:
3131
- ``genshi`` has a treewalker (but not builder); and
3232

3333
- ``chardet`` can be used as a fallback when character encoding cannot
34-
be determined (note currently this is only packaged on PyPi for
34+
be determined (note currently this is only packaged on PyPI for
3535
Python 2, though several package managers include unofficial ports
3636
to Python 3).
3737

setup.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
from distutils.core import setup
22
import os
3-
4-
long_description="""HTML parser designed to follow the WHATWG HTML
5-
specification. The parser is designed to handle all flavours of HTML and
6-
parses invalid documents using well-defined error handling rules compatible
7-
with the behaviour of major desktop web browsers.
8-
9-
Output is to a tree structure; the current release supports output to
10-
DOM, ElementTree, and lxml tree formats as well as a
11-
simple custom format"""
3+
import codecs
124

135
classifiers=[
146
'Development Status :: 5 - Production/Stable',
@@ -28,6 +20,9 @@
2820
if os.path.isdir(os.path.join('html5lib', name)) and
2921
not name.startswith('.') and name != 'tests']
3022

23+
with codecs.open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r', 'utf8') as ld_file:
24+
long_description = ld_file.read()
25+
3126
setup(name='html5lib',
3227
version='1.0b1',
3328
url='https://github.com/html5lib/html5lib-python',

0 commit comments

Comments
 (0)