forked from buriy/python-readability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (45 loc) · 1.54 KB
/
setup.py
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
#!/usr/bin/env python
from __future__ import print_function
from setuptools import setup, find_packages
import sys
lxml_requirement = "lxml"
if sys.platform == 'darwin':
import platform
mac_ver = platform.mac_ver()[0]
mac_ver_no = int(mac_ver.split('.')[1])
if mac_ver_no < 9:
print("Using lxml<2.4")
lxml_requirement = "lxml<2.4"
setup(
name="readability-lxml",
version="0.6.1",
author="Yuri Baburov",
author_email="[email protected]",
description="fast html to text parser (article readability tool) with python3 support",
test_suite = "tests.test_article_only",
long_description=open("README").read(),
license="Apache License 2.0",
url="http://github.com/buriy/python-readability",
packages=['readability', 'readability.compat'],
install_requires=[
"chardet",
lxml_requirement,
"cssselect"
],
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Indexing",
"Topic :: Utilities",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"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.3",
"Programming Language :: Python :: 3.4",
],
)