2010-09-16 12:01:13 +00:00
|
|
|
#!/usr/bin/env python
|
2015-04-29 14:18:21 +00:00
|
|
|
from __future__ import print_function
|
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:
|
2015-07-23 18:05:12 +00:00
|
|
|
print("Using lxml<2.4")
|
2014-04-02 08:16:19 +00:00
|
|
|
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",
|
2016-04-09 08:34:00 +00:00
|
|
|
version="0.6.2",
|
2011-06-26 06:14:01 +00:00
|
|
|
author="Yuri Baburov",
|
2011-06-30 04:51:58 +00:00
|
|
|
author_email="burchik@gmail.com",
|
2015-07-27 06:00:58 +00:00
|
|
|
description="fast html to text parser (article readability tool) with python3 support",
|
2012-04-17 04:38:36 +00:00
|
|
|
test_suite = "tests.test_article_only",
|
2016-07-11 14:13:27 +00:00
|
|
|
long_description=open("README.rst").read(),
|
2010-09-15 00:18:35 +00:00
|
|
|
license="Apache License 2.0",
|
2011-06-26 06:14:01 +00:00
|
|
|
url="http://github.com/buriy/python-readability",
|
2015-07-27 03:38:44 +00:00
|
|
|
packages=['readability', 'readability.compat'],
|
2011-06-29 21:00:30 +00:00
|
|
|
install_requires=[
|
2012-01-07 20:48:46 +00:00
|
|
|
"chardet",
|
2015-05-06 08:33:14 +00:00
|
|
|
lxml_requirement,
|
|
|
|
"cssselect"
|
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",
|
2015-07-27 03:38:44 +00:00
|
|
|
"Topic :: Text Processing :: Indexing",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
"Topic :: Internet",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
2010-09-15 00:18:35 +00:00
|
|
|
"Programming Language :: Python",
|
2015-07-27 03:38:44 +00:00
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.4",
|
|
|
|
|
|
|
|
],
|
2010-09-15 00:18:35 +00:00
|
|
|
)
|