Skip to content

Commit

Permalink
fix setup.py and tox.ini for dev/testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Sep 24, 2011
1 parent 0047355 commit 795253e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
##############################################################################

import os
import platform
import sys

from setuptools import setup, find_packages

if sys.version_info[:2] < (2, 6):
raise RuntimeError('Requires Python 2.6 or better')

PY3 = sys.version_info[0] == 3
JYTHON = platform.system() != 'Java'

here = os.path.abspath(os.path.dirname(__file__))
try:
Expand Down Expand Up @@ -52,21 +53,14 @@
'virtualenv',
]

if not (JYTHON or PY3):
if not PY3:
tests_require.extend([
'Sphinx',
'docutils',
'repoze.sphinx.autointerface',
])

if not PY3:
tests_require.extend([
'zope.component>=3.11.0',
])

if sys.version_info[:2] < (2, 6):
install_requires.append('simplejson')

setup(name='pyramid',
version='1.2',
description=('The Pyramid web application development framework, a '
Expand Down
16 changes: 12 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
[tox]
envlist =
py26,py27,jython,pypy,cover
py26,py27,py32,pypy,cover

[testenv]
commands =
python setup.py test -q
deps =
https://github.com/Pylons/webob/zipball/master
zope.component
Sphinx
WebTest
repoze.sphinx.autointerface
WebTest
virtualenv

[testenv:jython]
[testenv:py32]
commands =
jython setup.py test -q
python setup.py test -q
deps =
https://github.com/Pylons/webob/zipball/master
WebTest
virtualenv

[testenv:cover]
basepython =
python2.6
commands =
python setup.py nosetests --with-xunit --with-xcoverage
deps =
https://github.com/Pylons/webob/zipball/master
zope.component
Sphinx
WebTest
repoze.sphinx.autointerface
Expand Down

0 comments on commit 795253e

Please sign in to comment.