File tree Expand file tree Collapse file tree 4 files changed +14
-26
lines changed Expand file tree Collapse file tree 4 files changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,17 @@ version: '{branch}-{build}'
22cache :
33 - ' %LOCALAPPDATA%\pip\Cache'
44environment :
5- PYTHON : C:\Python35
65 password :
76 secure : pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
8- cache :
9- - ' %LOCALAPPDATA%\pip\Cache'
107init :
118 - ps : " ls C:/Python*"
129
1310install :
1411 - 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%
1613 - pip install tox
1714 - 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
1916
2017build : off
2118
Original file line number Diff line number Diff line change @@ -3,21 +3,9 @@ set -e -x
33
44cd /io
55
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-
176# compile wheels
187for 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
219 ${PYBIN} /pip wheel /io/ -w /tmp/wheelhouse/
2210done
2311
@@ -31,5 +19,6 @@ cp /tmp/wheelhouse/ordereddict* /io/wheelhouse
3119# Install packages and test again
3220for PYBIN in /opt/python/* /bin/; do
3321 ${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)
3524done
Original file line number Diff line number Diff line change 4444try :
4545 from wheel .bdist_wheel import bdist_wheel
4646
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+ ] )
5454
5555 class _bdist_wheel (bdist_wheel ):
5656 def get_tag (self ):
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ commands = python setup.py test
66skip_install = True
77deps =
88 cython
9+ pytest
10+ pytest-cov
911
1012[testenv:pypy]
1113skip_install = False
You can’t perform that action at this time.
0 commit comments