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.
breadability/setup.py

82 lines
2.4 KiB
Python

import sys
11 years ago
from os.path import abspath, dirname, join
from setuptools import setup, find_packages
from readability import __version__
11 years ago
VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
11 years ago
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 = [
11 years ago
"docopt>=0.6.1,<0.7",
"charade",
"lxml>=2.0",
]
tests_require = [
11 years ago
"coverage",
"nose",
]
if sys.version_info < (2, 7):
11 years ago
install_requires.append("unittest2")
setup(
name="readability",
11 years ago
version=__version__,
description="Port of Readability HTML parser in Python",
11 years ago
long_description=long_description,
keywords=[
"readability",
11 years ago
"readable",
"parsing",
"HTML",
11 years ago
"content",
],
author="Michal Belica",
author_email="miso.belica@gmail.com",
url="https://github.com/miso-belica/readability.py",
11 years ago
license="BSD",
classifiers=[
11 years ago
"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=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
11 years ago
test_suite="tests.run_tests.run",
entry_points={
11 years ago
"console_scripts": [
"readability = readability.scripts.client:main",
"readability-%s = readability.scripts.client:main" % VERSION_SUFFIX,
"readability_test = readability.scripts.test_helper:main",
"readability_test-%s = readability.scripts.test_helper:main" % VERSION_SUFFIX,
]
}
)