2012-12-13 00:58:27 +00:00
|
|
|
import sys
|
2012-05-03 01:43:58 +00:00
|
|
|
|
2013-03-14 23:10:55 +00:00
|
|
|
from os.path import abspath, dirname, join
|
|
|
|
from setuptools import setup, find_packages
|
2013-03-18 20:25:09 +00:00
|
|
|
from readability import __version__
|
2013-03-14 23:10:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
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())
|
|
|
|
|
2012-05-03 01:43:58 +00:00
|
|
|
|
|
|
|
install_requires = [
|
2013-03-14 23:10:55 +00:00
|
|
|
"docopt>=0.6.1,<0.7",
|
|
|
|
"charade",
|
|
|
|
"lxml",
|
2012-05-03 01:52:31 +00:00
|
|
|
]
|
|
|
|
tests_require = [
|
2013-03-14 23:10:55 +00:00
|
|
|
"coverage",
|
|
|
|
"nose",
|
2012-05-03 01:43:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2012-12-13 00:58:27 +00:00
|
|
|
if sys.version_info < (2, 7):
|
2013-03-14 23:10:55 +00:00
|
|
|
install_requires.append("unittest2")
|
|
|
|
|
2012-12-13 00:58:27 +00:00
|
|
|
|
|
|
|
setup(
|
2013-03-18 20:25:09 +00:00
|
|
|
name="readability",
|
2013-03-14 23:10:55 +00:00
|
|
|
version=__version__,
|
2013-03-18 20:25:09 +00:00
|
|
|
description="Port of Readability HTML parser in Python",
|
2013-03-14 23:10:55 +00:00
|
|
|
long_description=long_description,
|
|
|
|
keywords=[
|
2013-03-18 20:25:09 +00:00
|
|
|
"readability",
|
2013-03-14 23:10:55 +00:00
|
|
|
"readable",
|
|
|
|
"parsing",
|
2013-03-18 20:25:09 +00:00
|
|
|
"HTML",
|
2013-03-14 23:10:55 +00:00
|
|
|
"content",
|
|
|
|
],
|
2013-03-18 20:25:09 +00:00
|
|
|
author="Michal Belica",
|
|
|
|
author_email="miso.belica@gmail.com",
|
|
|
|
url="https://github.com/miso-belica/readability.py",
|
2013-03-14 23:10:55 +00:00
|
|
|
license="BSD",
|
2012-05-03 01:43:58 +00:00
|
|
|
classifiers=[
|
2013-03-14 23:10:55 +00:00
|
|
|
"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",
|
|
|
|
|
2012-05-03 01:43:58 +00:00
|
|
|
],
|
2013-03-07 12:14:04 +00:00
|
|
|
packages=find_packages(),
|
2012-05-03 03:06:05 +00:00
|
|
|
include_package_data=True,
|
2012-05-03 01:43:58 +00:00
|
|
|
zip_safe=False,
|
|
|
|
install_requires=install_requires,
|
2012-05-03 03:06:05 +00:00
|
|
|
tests_require=tests_require,
|
2013-03-14 23:10:55 +00:00
|
|
|
test_suite="tests.run_tests.run",
|
2012-05-03 01:43:58 +00:00
|
|
|
entry_points={
|
2013-03-14 23:10:55 +00:00
|
|
|
"console_scripts": [
|
2013-03-18 23:31:44 +00:00
|
|
|
"readability=readability.scripts.client:main",
|
|
|
|
"readability_test=readability.scripts.test_helper:main",
|
2012-12-13 00:58:27 +00:00
|
|
|
]
|
2012-05-03 01:43:58 +00:00
|
|
|
}
|
|
|
|
)
|