Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
a38e5331
Unverified
Commit
a38e5331
authored
May 31, 2020
by
Henry Schreiner
Committed by
GitHub
May 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CI, prepare test on Python 3.9 beta (#2233)
* Test on Python 3.9 beta * Pin Sphinx * Newer version of PyPy
parent
a54eab92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
16 deletions
+43
-16
.travis.yml
+42
-16
tests/test_stl_binders.py
+1
-0
No files found.
.travis.yml
View file @
a38e5331
...
...
@@ -17,7 +17,8 @@ matrix:
-
$PY_CMD -m pip install --user --upgrade pip wheel setuptools
install
:
# breathe 4.14 doesn't work with bit fields. See https://github.com/michaeljones/breathe/issues/462
-
$PY_CMD -m pip install --user --upgrade sphinx sphinx_rtd_theme breathe==4.13.1 flake8 pep8-naming pytest
# Latest breathe + Sphinx causes warnings and errors out
-
$PY_CMD -m pip install --user --upgrade "sphinx<3" sphinx_rtd_theme breathe==4.13.1 flake8 pep8-naming pytest
-
curl -fsSL https://sourceforge.net/projects/doxygen/files/rel-1.8.15/doxygen-1.8.15.linux.bin.tar.gz/download | tar xz
-
export PATH="$PWD/doxygen-1.8.15/bin:$PATH"
script
:
...
...
@@ -109,7 +110,7 @@ matrix:
-
os
:
linux
dist
:
xenial
env
:
PYTHON=3.8 CPP=17 GCC=7
name
:
Python 3.8, c++17, gcc 7
(w/o numpy/scipy)
# TODO: update build name when the numpy/scipy wheels become available
name
:
Python 3.8, c++17, gcc 7
addons
:
apt
:
sources
:
...
...
@@ -119,12 +120,21 @@ matrix:
-
g++-7
-
python3.8-dev
-
python3.8-venv
# Currently there is no numpy/scipy wheels available for python3.8
# TODO: remove next before_install, install and script clause when the wheels become available
before_install
:
-
pyenv global $(pyenv whence 2to3)
# activate all python versions
-
PY_CMD=python3
-
$PY_CMD -m pip install --user --upgrade pip wheel setuptools
-
os
:
linux
dist
:
xenial
env
:
PYTHON=3.9 CPP=17 GCC=7
name
:
Python 3.9 beta, c++17, gcc 7 (w/o numpy/scipy)
# TODO: update build name when the numpy/scipy wheels become available
addons
:
apt
:
sources
:
-
deadsnakes
-
ubuntu-toolchain-r-test
packages
:
-
g++-7
-
python3.9-dev
-
python3.9-venv
# Currently there are no numpy/scipy wheels available for python3.9
# TODO: remove next install and script clause when the wheels become available
install
:
-
$PY_CMD -m pip install --user --upgrade pytest
script
:
...
...
@@ -143,14 +153,25 @@ matrix:
# Test a PyPy 2.7 build
-
os
:
linux
dist
:
trusty
env
:
PYPY=5.8 PYTHON=2.7 CPP=11 GCC=4.8
name
:
PyPy 5.8, Python 2.7, c++11, gcc 4.8
env
:
PYPY=7.3.1 PYTHON=2.7 CPP=11 GCC=4.8
name
:
PyPy 7.3, Python 2.7, c++11, gcc 4.8
addons
:
apt
:
packages
:
-
libblas-dev
-
liblapack-dev
-
gfortran
-
os
:
linux
dist
:
xenial
env
:
PYPY=7.3.1 PYTHON=3.6 CPP=11 GCC=5
name
:
PyPy 7.3, Python 3.6, c++11, gcc 5
addons
:
apt
:
packages
:
-
libblas-dev
-
liblapack-dev
-
gfortran
-
g++-5
# Build in 32-bit mode and tests against the CMake-installed version
-
os
:
linux
dist
:
trusty
...
...
@@ -170,6 +191,10 @@ matrix:
cmake ../pybind11-tests ${CMAKE_EXTRA_ARGS} -DPYBIND11_WERROR=ON
make pytest -j 2"
set +ex
allow_failures
:
-
name
:
PyPy 7.3, Python 2.7, c++11, gcc 4.8
-
name
:
PyPy 7.3, Python 3.6, c++11, gcc 5
-
name
:
Python 3.9 beta, c++17, gcc 7 (w/o numpy/scipy)
cache
:
directories
:
-
$HOME/.local/bin
...
...
@@ -211,9 +236,9 @@ before_install:
SCRIPT_RUN_PREFIX="docker exec --tty $containerid"
$SCRIPT_RUN_PREFIX sh -c 'for s in 0 15; do sleep $s; apt-get update && apt-get -qy dist-upgrade && break; done'
else
if [
"$PYPY" = "5.8
" ]; then
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy
2-v5.8.0
-linux64.tar.bz2 | tar xj
PY_CMD=$(echo `pwd`/pypy
2-v5.8.0-linux64/bin/pypy
)
if [
-n "$PYPY
" ]; then
curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy
$PYTHON-v$PYPY
-linux64.tar.bz2 | tar xj
PY_CMD=$(echo `pwd`/pypy
$PYTHON-v$PYPY-linux64/bin/pypy$PY
)
CMAKE_EXTRA_ARGS+=" -DPYTHON_EXECUTABLE:FILEPATH=$PY_CMD"
else
PY_CMD=python$PYTHON
...
...
@@ -255,11 +280,12 @@ install:
export NPY_NUM_BUILD_JOBS=2
echo "Installing pytest, numpy, scipy..."
local PIP_CMD=""
if [ -n
$PYPY
]; then
if [ -n
"$PYPY"
]; then
# For expediency, install only versions that are available on the extra index.
travis_wait 30 \
$PY_CMD -m pip install --user --upgrade --extra-index-url https://imaginary.ca/trusty-pypi \
pytest numpy==1.15.4 scipy==1.2.0
$PY_CMD -m pip install --user --upgrade --extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010 \
numpy scipy
$PY_CMD -m pip install --user --upgrade pytest
else
$PY_CMD -m pip install --user --upgrade pytest numpy scipy
fi
...
...
tests/test_stl_binders.py
View file @
a38e5331
...
...
@@ -67,6 +67,7 @@ def test_vector_int():
v_int2
.
clear
()
assert
len
(
v_int2
)
==
0
# related to the PyPy's buffer protocol.
@pytest.unsupported_on_pypy
def
test_vector_buffer
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment