python-readability/setup.py

47 lines
1.4 KiB
Python
Raw Normal View History

2010-09-16 12:01:13 +00:00
#!/usr/bin/env python
from __future__ import print_function
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",
2016-04-09 08:34:00 +00:00
version="0.6.2",
author="Yuri Baburov",
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",
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",
url="http://github.com/buriy/python-readability",
2015-07-27 03:38:44 +00:00
packages=['readability', 'readability.compat'],
install_requires=[
2012-01-07 20:48:46 +00:00
"chardet",
lxml_requirement,
"cssselect"
],
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
)