Updated setup.py
parent
9eacbd579c
commit
272fe480a3
@ -1,3 +1,6 @@
|
||||
from ._version import VERSION
|
||||
from .scripts import newtest
|
||||
from .scripts import client
|
||||
|
||||
|
||||
__version__ = VERSION
|
||||
|
@ -1,54 +1,78 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys
|
||||
import os
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
README = open(os.path.join(here, 'README.rst')).read()
|
||||
NEWS = open(os.path.join(here, 'CHANGELOG.rst')).read()
|
||||
from os.path import abspath, dirname, join
|
||||
from setuptools import setup, find_packages
|
||||
from breadability import __version__
|
||||
|
||||
|
||||
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())
|
||||
|
||||
|
||||
version = '0.1.11'
|
||||
install_requires = [
|
||||
# http://packages.python.org/distribute/setuptools.html#declaring-dependencies
|
||||
'docopt>=0.6.1,<0.7',
|
||||
'charade',
|
||||
'lxml',
|
||||
"docopt>=0.6.1,<0.7",
|
||||
"charade",
|
||||
"lxml",
|
||||
]
|
||||
tests_require = [
|
||||
'coverage',
|
||||
'nose',
|
||||
"coverage",
|
||||
"nose",
|
||||
]
|
||||
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
install_requires.append('unittest2')
|
||||
install_requires.append("unittest2")
|
||||
|
||||
|
||||
setup(
|
||||
name='breadability',
|
||||
version=version,
|
||||
description="Redone port of Readability API in Python",
|
||||
long_description=README + '\n\n' + NEWS,
|
||||
name="breadability",
|
||||
version=__version__,
|
||||
description="Port of Readability API in Python",
|
||||
long_description=long_description,
|
||||
keywords=[
|
||||
"readable",
|
||||
"parsing",
|
||||
"html",
|
||||
"content",
|
||||
"bookie",
|
||||
],
|
||||
author="Rick Harding",
|
||||
author_email="rharding@mitechie.com",
|
||||
url="http://docs.bmark.us",
|
||||
license="BSD",
|
||||
classifiers=[
|
||||
# Get strings from
|
||||
# http://pypi.python.org/pypi?%3Aaction=list_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",
|
||||
|
||||
],
|
||||
keywords='readable parsing html content bookie',
|
||||
author='Rick Harding',
|
||||
author_email='rharding@mitechie.com',
|
||||
url='http://docs.bmark.us',
|
||||
license='BSD',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=install_requires,
|
||||
tests_require=tests_require,
|
||||
test_suite='tests.run_tests.run',
|
||||
extras_require={
|
||||
'test': tests_require
|
||||
},
|
||||
test_suite="tests.run_tests.run",
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'breadability=breadability:client.main',
|
||||
'breadability_newtest=breadability:newtest.main',
|
||||
"console_scripts": [
|
||||
"breadability=breadability:client.main",
|
||||
"breadability_newtest=breadability:newtest.main",
|
||||
]
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue