File tree 4 files changed +14
-26
lines changed
4 files changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,17 @@ version: '{branch}-{build}'
2
2
cache :
3
3
- ' %LOCALAPPDATA%\pip\Cache'
4
4
environment :
5
- PYTHON : C:\Python35
6
5
password :
7
6
secure : pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
8
- cache :
9
- - ' %LOCALAPPDATA%\pip\Cache'
10
7
init :
11
8
- ps : " ls C:/Python*"
12
9
13
10
install :
14
11
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
15
- - " SET PATH=C:\t ools\p ypy\p ypy;%PYTHON%;%PYTHON% \ \ scripts;%PATH%"
12
+ - SET PATH=C:\tools\pypy\pypy;C:\Python35;C:\Python35 \scripts;%PATH%
16
13
- pip install tox
17
14
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
18
- - " pip install -r dev-requirements.txt"
15
+ - pip install -r dev-requirements.txt
19
16
20
17
build : off
21
18
Original file line number Diff line number Diff line change @@ -3,21 +3,9 @@ set -e -x
3
3
4
4
cd /io
5
5
6
- # tests
7
- for PYBIN in /opt/python/* /bin/; do
8
- ${PYBIN} /pip install -r /io/dev-requirements.txt
9
- ${PYBIN} /python setup.py test
10
- pwd
11
- ls
12
- rm * .so
13
- done
14
-
15
- rm bencoder.c
16
-
17
6
# compile wheels
18
7
for PYBIN in /opt/python/* /bin/; do
19
- ${PYBIN} /pip install -r /io/dev-requirements.txt
20
- ${PYBIN} /cython bencoder.pyx
8
+ ${PYBIN} /pip install cython
21
9
${PYBIN} /pip wheel /io/ -w /tmp/wheelhouse/
22
10
done
23
11
@@ -31,5 +19,6 @@ cp /tmp/wheelhouse/ordereddict* /io/wheelhouse
31
19
# Install packages and test again
32
20
for PYBIN in /opt/python/* /bin/; do
33
21
${PYBIN} /pip install bencoder.pyx --no-index -f /io/wheelhouse
34
- (cd $/io; ${PYBIN} /py.test)
22
+ ${PYBIN} /pip install pytest
23
+ (cd /io; ${PYBIN} /py.test -c pytest-nocov.ini)
35
24
done
Original file line number Diff line number Diff line change 44
44
try :
45
45
from wheel .bdist_wheel import bdist_wheel
46
46
47
- REPLACE = (
48
- 'macosx_10_6_intel.'
49
- 'macosx_10_9_intel.'
50
- 'macosx_10_9_x86_64.'
51
- 'macosx_10_10_intel.'
52
- 'macosx_10_10_x86_64'
53
- )
47
+ REPLACE = '.' . join ([
48
+ 'macosx_10_6_intel' ,
49
+ 'macosx_10_9_intel' ,
50
+ 'macosx_10_9_x86_64' ,
51
+ 'macosx_10_10_intel' ,
52
+ 'macosx_10_10_x86_64' ,
53
+ ] )
54
54
55
55
class _bdist_wheel (bdist_wheel ):
56
56
def get_tag (self ):
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ commands = python setup.py test
6
6
skip_install = True
7
7
deps =
8
8
cython
9
+ pytest
10
+ pytest-cov
9
11
10
12
[testenv:pypy]
11
13
skip_install = False
You can’t perform that action at this time.
0 commit comments