Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7c37f1

Browse files
ambvgsnedders
authored andcommitted
reuse README.rst on PyPI
1 parentd0b9b13 commite7c37f1

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 theWHATWGHTML specification, as is implemented by all major
6+
webbrowsers.
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 inPyPi.
20+
packaged inPyPI.
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 onPyPi for
34+
be determined (note currently this is only packaged onPyPI 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
fromdistutils.coreimportsetup
22
importos
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+
importcodecs
124

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

23+
withcodecs.open(os.path.join(os.path.dirname(__file__),'README.rst'),'r','utf8')asld_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)

[8]ページ先頭

©2009-2025 Movatter.jp