python-readability/setup.py
Martin Thurau aa4132f57a Adds Python 3.4 support.
Code now supports Python 2.6, 2.7 and 3.4. PYthon 3.3 isn't support
because of some issues with the parser and the difference between old and
new `raise` syntax.
2015-04-29 16:18:21 +02:00

37 lines
1.0 KiB
Python
Executable File

#!/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"
setup(
name="readability-lxml",
version="0.5",
author="Yuri Baburov",
author_email="burchik@gmail.com",
description="fast python port of arc90's readability tool",
test_suite = "tests.test_article_only",
long_description=open("README").read(),
license="Apache License 2.0",
url="http://github.com/buriy/python-readability",
packages=['readability'],
install_requires=[
"chardet",
lxml_requirement
],
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)