From 11b8160e584470439c8c0b3ab51012c9300f6788 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 6 Dec 2015 13:31:51 +0000 Subject: Imported Upstream version 1.4.2 --- setup.py | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 6d5cfb4..e1efc93 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,22 @@ from setuptools import setup, find_packages +install_requires = [ + 'six', + 'html5lib>=0.999', +] + +try: + from collections import OrderedDict # noqa +except ImportError: + # We don't use ordereddict, but html5lib does when you request + # alpha-sorted attributes and on Python 2.6 and it doesn't specify it + # as a dependency (see + # https://github.com/html5lib/html5lib-python/pull/177) + install_requires.append('ordereddict') + setup( name='bleach', - version='1.4', + version='1.4.2', description='An easy whitelist-based HTML-sanitizing tool.', long_description=open('README.rst').read(), author='James Socol', @@ -13,14 +27,14 @@ setup( include_package_data=True, package_data={'': ['README.rst']}, zip_safe=False, - install_requires=[ - 'six', - 'html5lib>=0.999', + install_requires=install_requires, + tests_require=[ + 'nose>=1.3', ], + test_suite='nose.collector', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', - 'Environment :: Web Environment :: Mozilla', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', @@ -31,6 +45,7 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', 'Topic :: Software Development :: Libraries :: Python Modules', ] ) -- cgit v1.2.3