@@ -18,6 +18,7 @@ virtualenv testenv${PYVER}_1 -p python${PYVER}
18
18
virtualenv testenv${PYVER} _2 -p python${PYVER}
19
19
virtualenv testenv${PYVER} _3 -p python${PYVER}
20
20
virtualenv testenv${PYVER} _4 -p python${PYVER}
21
+ virtualenv testenv${PYVER} _5 -p python${PYVER}
21
22
22
23
# First we test the head
23
24
source testenv${PYVER} _1/bin/activate
@@ -35,25 +36,27 @@ pushd testenv${PYVER}_1/not-${module}; ../bin/${run_tests}; popd
35
36
36
37
# Secondly we test via pip
37
38
38
- cd testenv${PYVER} _2
39
+ pushd testenv${PYVER} _2
39
40
source bin/activate
40
41
rm lib/python-wheels/setuptools* \
41
42
&& pip install --force-reinstall -U pip==${pipver} \
42
43
&& pip install setuptools==${setupver} wheel
43
44
pip install -e git+${repo} @${HEAD} # egg=${package}
44
- cd src/${package}
45
+ pushd src/${package}
45
46
make install-dependencies
46
47
make dist
47
48
make test
48
49
cp dist/${package} * tar.gz ../../../testenv${PYVER} _3/
50
+ cp dist/${package} * whl ../../../testenv${PYVER} _4/
49
51
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
50
- cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module
52
+ popd # ../.. no subdir named ${proj} here, safe for py.testing the installed module
51
53
bin/${run_tests}
54
+ popd
52
55
53
- # Is the distribution in testenv${PYVER}_2 complete enough to build another
54
- # functional distribution?
56
+ # Is the source distribution in testenv${PYVER}_2 complete enough to build
57
+ # another functional distribution?
55
58
56
- cd ../ testenv${PYVER} _3/
59
+ pushd testenv${PYVER} _3/
57
60
source bin/activate
58
61
rm lib/python-wheels/setuptools* \
59
62
&& pip install --force-reinstall -U pip==${pipver} \
@@ -62,9 +65,24 @@ pip install ${package}*tar.gz
62
65
pip install pytest
63
66
mkdir out
64
67
tar --extract --directory=out -z -f ${package} * .tar.gz
65
- cd out/${package} *
68
+ pushd out/${package} *
66
69
make dist
67
70
make test
68
71
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
69
72
mkdir ../not-${module}
70
73
pushd ../not-${module} ; ../../bin/${run_tests} ; popd
74
+ popd
75
+ popd
76
+
77
+ # Is the wheel in testenv${PYVER}_2 installable and will it pass the tests
78
+
79
+ pushd testenv${PYVER} _4/
80
+ source bin/activate
81
+ rm lib/python-wheels/setuptools* \
82
+ && pip install --force-reinstall -U pip==${pipver} \
83
+ && pip install setuptools==${setupver} wheel
84
+ pip install ${package} * .whl
85
+ pip install pytest
86
+ mkdir not-${module}
87
+ pushd not-${module} ; ../bin/${run_tests} ; popd
88
+ popd
0 commit comments