Skip to content

Commit

Permalink
Release 1.3.8 (#363)
Browse files Browse the repository at this point in the history
* Fix building wheels with Python 3.8 (#362)
  • Loading branch information
HDembinski authored Oct 17, 2019
1 parent cd88531 commit 15c7e67
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .ci/azure-wheel-helpers/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ set -e -x
# Collect the pythons
pys=(/opt/python/*/bin)

# Print list of Python's available
echo "All Pythons: ${pys[@]}"

# Filter out Python 3.4
pys=(${pys[@]//*34*/})

# Filter out Python 3.8 on manylinux1
if [[ $PLAT =~ "manylinux1" ]]; then
pys=(${pys[@]//*38*/})
fi

# Print list of Python's being used
echo "Using Pythons: ${pys[@]}"

# Compile wheels
for PYBIN in "${pys[@]}"; do
"${PYBIN}/pip" install -r /io/.ci/requirements-build.txt
Expand Down
5 changes: 4 additions & 1 deletion .ci/azure-wheel-helpers/macos-install-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ case $PYTHON_VERSION in
FULL_VERSION=3.6.8
;;
3.7)
FULL_VERSION=3.7.3
FULL_VERSION=3.7.5
;;
3.8)
FULL_VERSION=3.8.0
;;
esac

Expand Down
19 changes: 16 additions & 3 deletions iminuit/tests/test_iminuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,9 @@ def test_latex_matrix():
Func9(), (0, 0), name=("x", "y"), pedantic=False, print_level=0
)
m.migrad()
assert r"""%\usepackage[table]{xcolor} % include this for color
# hotfix for ManyLinux 32Bit, where rounding changes result
assert str(m.latex_matrix()) in (
r"""%\usepackage[table]{xcolor} % include this for color
%\usepackage{rotating} % include this for rotate header
%\documentclass[xcolor=table]{beamer} % for beamer
\begin{tabular}{|c|c|c|}
Expand All @@ -825,8 +827,19 @@ def test_latex_matrix():
\hline
y & \cellcolor[RGB]{250,174,174} 0.5 & \cellcolor[RGB]{250,100,100} 1\\
\hline
\end{tabular}""" == str(
m.latex_matrix()
\end{tabular}""",
r"""%\usepackage[table]{xcolor} % include this for color
%\usepackage{rotating} % include this for rotate header
%\documentclass[xcolor=table]{beamer} % for beamer
\begin{tabular}{|c|c|c|}
\hline
\rotatebox{90}{} & \rotatebox{90}{x} & \rotatebox{90}{y}\\
\hline
x & \cellcolor[RGB]{250,100,100} 1 & \cellcolor[RGB]{250,175,175} 0.5\\
\hline
y & \cellcolor[RGB]{250,175,175} 0.5 & \cellcolor[RGB]{250,100,100} 1\\
\hline
\end{tabular}""",
)


Expand Down

0 comments on commit 15c7e67

Please sign in to comment.