You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-readability/setup.py

58 lines
1.7 KiB
Python

#!/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"
14 years ago
test_deps = [
# Test timeouts
"timeout_decorator",
]
extras = {
'test': test_deps,
}
14 years ago
setup(
name="readability-lxml",
version="0.7",
author="Yuri Baburov",
author_email="burchik@gmail.com",
9 years ago
description="fast html to text parser (article readability tool) with python3 support",
test_suite = "tests.test_article_only",
long_description=open("README.rst").read(),
14 years ago
license="Apache License 2.0",
url="http://github.com/buriy/python-readability",
packages=['readability', 'readability.compat'],
install_requires=[
"chardet",
lxml_requirement,
"cssselect"
],
tests_require=test_deps,
extras_require=extras,
14 years ago
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",
14 years ago
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
14 years ago
)