FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
html5lib-python/setup.py at fix-assert-unicode-strings-on-python2 · ordbogen/html5lib-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ordbogen
/
html5lib-python
Public
forked from
html5lib/html5lib-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
html5lib-python
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (53 loc) · 2.2 KB
Breadcrumbs
html5lib-python
/
setup.py
Copy path
File metadata and controls
58 lines (53 loc) · 2.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from
distutils
.
core
import
setup
import
ast
import
os
import
codecs
classifiers
=
[
'Development Status :: 5 - Production/Stable'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: MIT License'
,
'Operating System :: OS Independent'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 2'
,
'Programming Language :: Python :: 2.6'
,
'Programming Language :: Python :: 2.7'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.2'
,
'Programming Language :: Python :: 3.3'
,
'Programming Language :: Python :: 3.4'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
'Topic :: Text Processing :: Markup :: HTML'
]
packages
=
[
'html5lib'
]
+
[
'html5lib.'
+
name
for
name
in
os
.
listdir
(
os
.
path
.
join
(
'html5lib'
))
if
os
.
path
.
isdir
(
os
.
path
.
join
(
'html5lib'
,
name
))
and
not
name
.
startswith
(
'.'
)
and
name
!=
'tests'
]
current_dir
=
os
.
path
.
dirname
(
__file__
)
with
codecs
.
open
(
os
.
path
.
join
(
current_dir
,
'README.rst'
),
'r'
,
'utf8'
)
as
readme_file
:
with
codecs
.
open
(
os
.
path
.
join
(
current_dir
,
'CHANGES.rst'
),
'r'
,
'utf8'
)
as
changes_file
:
long_description
=
readme_file
.
read
()
+
'
\n
'
+
changes_file
.
read
()
version
=
None
with
open
(
os
.
path
.
join
(
"html5lib"
,
"__init__.py"
),
"rb"
)
as
init_file
:
t
=
ast
.
parse
(
init_file
.
read
(),
filename
=
"__init__.py"
,
mode
=
"exec"
)
assert
isinstance
(
t
,
ast
.
Module
)
assignments
=
filter
(
lambda
x
:
isinstance
(
x
,
ast
.
Assign
),
t
.
body
)
for
a
in
assignments
:
if
(
len
(
a
.
targets
)
==
1
and
isinstance
(
a
.
targets
[
0
],
ast
.
Name
)
and
a
.
targets
[
0
].
id
==
"__version__"
and
isinstance
(
a
.
value
,
ast
.
Str
)):
version
=
a
.
value
.
s
setup
(
name
=
'html5lib'
,
version
=
version
,
url
=
'https://github.com/html5lib/html5lib-python'
,
license
=
"MIT License"
,
description
=
'HTML parser based on the WHATWG HTML specification'
,
long_description
=
long_description
,
classifiers
=
classifiers
,
maintainer
=
'James Graham'
,
maintainer_email
=
'james@hoppipolla.co.uk'
,
packages
=
packages
,
install_requires
=
[
'six'
,
],
)
Back
|
FazBrowse Home
|
New Git URL