Commit 0aca4ee0 authored by Kevin Daudt's avatar Kevin Daudt 💻

testing/py3-scikit-optimize: fix ftbfs

parent 6bd7a5b0
Pipeline #40913 failed with stages
in 1 minute and 43 seconds
......@@ -7,7 +7,9 @@ pkgdesc="Sequential model-based optimization with a 'scipy.optimize' interface"
url="https://scikit-optimize.github.io/"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-joblib
license="BSD-3-Clause"
depends="python3 py3-numpy py3-scipy py3-scikit-learn py3-joblib py3-matplotlib"
depends="python3 py3-numpy py3-scipy py3-scikit-learn py3-joblib py3-matplotlib
py3-pillow
"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/s/scikit-optimize/scikit-optimize-$pkgver.tar.gz"
......
Reason: sp_version has become an 'Version' object, so use its 'release' property
to get the tuple.
Upstream: no
diff --git a/skopt/space/space.py b/skopt/space/space.py
index 9d91f8e..4e3a4b6 100644
--- a/skopt/space/space.py
+++ b/skopt/space/space.py
@@ -761,7 +761,7 @@ class Space(object):
columns = []
for dim in self.dimensions:
- if sp_version < (0, 16):
+ if sp_version.release < (0, 16):
columns.append(dim.rvs(n_samples=n_samples))
else:
columns.append(dim.rvs(n_samples=n_samples, random_state=rng))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment