From e59f7720e58da87fc3af21f0ac00e398b5d92ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 15 Mar 2015 15:59:20 +0100 Subject: [PATCH] Add support for PyPy issue4408 --- .drone.yml | 2 +- CHANGELOG | 2 ++ setup.py | 2 ++ tox.ini | 5 +++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a4d2595986..9d7c769d8c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,6 @@ env: - MYSQL_URI=mysql://root@127.0.0.1:3306/ script: - pip install tox - - tox -e sqlite,postgresql + - tox -e "py27-{sqlite,postgresql}" services: - postgres diff --git a/CHANGELOG b/CHANGELOG index c0b51e4675..0cbdff94d4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Add support for PyPy + Version 3.4.0 - 2014-10-20 * Bug fixes (see mercurial logs for details) diff --git a/setup.py b/setup.py index 31006d9dab..9f687fd89b 100644 --- a/setup.py +++ b/setup.py @@ -77,6 +77,8 @@ setup(name=name, 'Natural Language :: German', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Office/Business :: Financial :: Accounting', ], license='GPL-3', diff --git a/tox.ini b/tox.ini index e213af00e6..e9d2876444 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,11 @@ [tox] -envlist = py27-{sqlite,postgresql,mysql} +envlist = py27-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql} [testenv] commands = {envpython} setup.py test deps = - postgresql: psycopg2 >= 2.0 + py27-postgresql: psycopg2 >= 2.0 + pypy-postgresql: psycopg2cffi >= 2.5 mysql: MySQL-python setenv = sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}