Commits

Anonymous committed ec1a9a9

setup.py: requirement sgmllib3k for Python3, version 1.3ws

Comments (0)

Files changed (2)

 
 MarkupSafe>=0.9.2
 
+# Python3 sgmllib
+# sgmllib3k
+
 # Required for tests
 Nose
 Routes
     use_setuptools()
     from setuptools import setup, find_packages
 
-version = '1.3'
+version = '1.3ws'
+
+INSTALL_REQUIRES=[
+    'MarkupSafe>=0.9.2',
+    ]
+
+try:
+    unicode('')
+except NameError:
+    INSTALL_REQUIRES.append('sgmllib3k')
 
 setup(
     name="WebHelpers",
     version=version,
     description='Web Helpers',
     long_description="""
-Web Helpers is a library of helper functions intended to make writing 
+Web Helpers is a library of helper functions intended to make writing
 web applications easier. It's the standard function library for
 Pylons and TurboGears 2, but can be used with any web framework.  It also
 contains a large number of functions not specific to the web, including text
     packages=find_packages(exclude=['ez_setup']),
     zip_safe=False,
     include_package_data=True,
-    install_requires=[
-        'MarkupSafe>=0.9.2',
-        ],
-    tests_require=[ 
+    install_requires=INSTALL_REQUIRES,
+    tests_require=[
       'Nose',
       'Routes',
       'WebOb',
-      ], 
+      ],
     test_suite='nose.collector',
     classifiers=["Development Status :: 4 - Beta",
                  "Intended Audience :: Developers",