File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 2020import paver .setuputils
2121paver .setuputils .install_distutils_tasks ()
2222import paver .doctools
23- import docpaver
23+ try :
24+ import docpaver
25+ except :
26+ import warnings
27+ warnings .warn ('docpaver was not found, will not be able to produce documentation' )
2428
2529# What project are we building?
2630PROJECT = 'virtualenvwrapper'
@@ -176,7 +180,13 @@ def sdist(options):
176180 """Create a source distribution.
177181 """
178182 pass
179-
183+
184+ @task
185+ @needs (['sdist' ])
186+ def test_install (options ):
187+ sh ('./tests/test_install.sh "%s" "%s"' % (options .sdist .dist_dir , VERSION ))
188+ return
189+
180190@task
181191def test ():
182192 sh ('bash ./tests/test.sh' )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+ # Test installation of virtualenvwrapper in a new virtualenv.
4+ #
5+
6+ test_dir=$( dirname $0 )
7+ dist_dir=" $1 "
8+ version=" $2 "
9+
10+ export WORKON_HOME=" ${TMPDIR:-/ tmp} /WORKON_HOME"
11+ mkvirtualenv " installtest"
12+ easy_install " $dist_dir /virtualenvwrapper-$version .tar.gz"
13+ RC=$?
14+
15+ rm -rf " $WORKON_HOME "
16+ exit $RC
You can’t perform that action at this time.
0 commit comments