Add formal support for pypy.

Fixes bug 1290922

Change-Id: I93f8318bad32800eb384e6a5e09dfc8eae5fed79
This commit is contained in:
Ryan Petrello 2014-03-11 23:52:09 -04:00
parent b046c1e965
commit c047087b72
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import sys
import platform
from setuptools import setup, find_packages
@ -60,7 +61,9 @@ if sys.version_info < (2, 7):
if sys.version_info < (3, 0):
# These don't support Python3 yet - don't run their tests
tests_require += ['Kajiki']
if platform.python_implementation() != 'PyPy':
# Kajiki is not pypy-compatible
tests_require += ['Kajiki']
tests_require += ['Genshi']
else:
# Genshi added Python3 support in 0.7
@ -96,6 +99,7 @@ setup(
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Application Frameworks'
],