1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
import sys
from os.path import (
abspath,
dirname,
join,
)
from setuptools import setup
VERSION = "0.1.20"
VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
CURRENT_DIRECTORY = abspath(dirname(__file__))
with open(join(CURRENT_DIRECTORY, "README.rst")) as readme:
with open(join(CURRENT_DIRECTORY, "CHANGELOG.rst")) as changelog:
long_description = "%s\n\n%s" % (readme.read(), changelog.read())
install_requires = [
"docopt>=0.6.1,<0.7",
"chardet",
"lxml>=2.0",
]
tests_require = [
"nose-selecttests",
"coverage",
"pylint",
"nose",
"pep8",
]
if sys.version_info < (2, 7):
install_requires.append("unittest2")
console_script_targets = [
"breadability = breadability.scripts.client:main",
"breadability-{0} = breadability.scripts.client:main",
"breadability_test = breadability.scripts.test_helper:main",
"breadability_test-{0} = breadability.scripts.test_helper:main",
]
console_script_targets = [
target.format(VERSION_SUFFIX) for target in console_script_targets
]
setup(
name="breadability",
version=VERSION,
description="Port of Readability HTML parser in Python",
long_description=long_description,
keywords=[
"bookie",
"breadability",
"content",
"HTML",
"parsing",
"readability",
"readable",
],
author="Rick Harding",
author_email="rharding@mitechie.com",
url="https://github.com/bookieio/breadability",
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Pre-processors",
"Topic :: Text Processing :: Filters",
"Topic :: Text Processing :: Markup :: HTML",
],
packages=['breadability', 'breadability.scripts'],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
"console_scripts": console_script_targets,
}
)
|