python-readability/setup.py

36 lines
998 B
Python
Raw Normal View History

2010-09-16 12:01:13 +00:00
#!/usr/bin/env python
2011-06-29 20:50:51 +00:00
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"
2010-09-15 00:18:35 +00:00
setup(
name="readability-lxml",
2015-04-27 10:00:08 +00:00
version="0.5",
author="Yuri Baburov",
author_email="burchik@gmail.com",
2011-07-01 17:24:15 +00:00
description="fast python port of arc90's readability tool",
test_suite = "tests.test_article_only",
2010-09-15 00:18:35 +00:00
long_description=open("README").read(),
license="Apache License 2.0",
url="http://github.com/buriy/python-readability",
2012-06-02 21:11:27 +00:00
packages=['readability'],
install_requires=[
2012-01-07 20:48:46 +00:00
"chardet",
lxml_requirement
],
2010-09-15 00:18:35 +00:00
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
2010-09-15 00:18:35 +00:00
)