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
|
2013-10-09 19:39:37 +00:00
|
|
|
import sys
|
|
|
|
|
2014-04-02 08:16:19 +00:00
|
|
|
lxml_requirement = "lxml"
|
2013-10-09 19:39:37 +00:00
|
|
|
if sys.platform == 'darwin':
|
2014-04-02 08:16:19 +00:00
|
|
|
import platform
|
|
|
|
mac_ver = platform.mac_ver()[0]
|
2015-01-13 06:19:09 +00:00
|
|
|
mac_ver_no = int(mac_ver.split('.')[1])
|
|
|
|
if mac_ver_no < 9:
|
2014-04-02 08:16:19 +00:00
|
|
|
print "Using lxml<2.4"
|
|
|
|
lxml_requirement = "lxml<2.4"
|
2010-09-15 00:18:35 +00:00
|
|
|
|
|
|
|
setup(
|
2011-06-30 04:51:58 +00:00
|
|
|
name="readability-lxml",
|
2015-04-27 10:00:08 +00:00
|
|
|
version="0.5",
|
2011-06-26 06:14:01 +00:00
|
|
|
author="Yuri Baburov",
|
2011-06-30 04:51:58 +00:00
|
|
|
author_email="burchik@gmail.com",
|
2011-07-01 17:24:15 +00:00
|
|
|
description="fast python port of arc90's readability tool",
|
2012-04-17 04:38:36 +00:00
|
|
|
test_suite = "tests.test_article_only",
|
2010-09-15 00:18:35 +00:00
|
|
|
long_description=open("README").read(),
|
|
|
|
license="Apache License 2.0",
|
2011-06-26 06:14:01 +00:00
|
|
|
url="http://github.com/buriy/python-readability",
|
2012-06-02 21:11:27 +00:00
|
|
|
packages=['readability'],
|
2011-06-29 21:00:30 +00:00
|
|
|
install_requires=[
|
2012-01-07 20:48:46 +00:00
|
|
|
"chardet",
|
2014-04-02 08:16:19 +00:00
|
|
|
lxml_requirement
|
2011-06-29 21:00:30 +00:00
|
|
|
],
|
2010-09-15 00:18:35 +00:00
|
|
|
classifiers=[
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
2011-06-29 21:00:30 +00:00
|
|
|
],
|
2010-09-15 00:18:35 +00:00
|
|
|
)
|