summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2019-07-19 19:43:30 +0200
committerMichel Zou2019-07-19 19:43:30 +0200
commitdeece42558b69abfb8567f28de7680e772f4c2b0 (patch)
treed06191fe4544f0c1accb7da0cb816a3a3c4dc89b
parent61fb8d35027d0a4db3ed2c35b94dfed78f2b0409 (diff)
downloadaur-python-scikit-optimize.tar.gz
0.6
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
2 files changed, 13 insertions, 52 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 416058d259c..52b7c0d2981 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,27 +1,16 @@
-# Generated by mksrcinfo v8
-# Mon Aug 28 12:20:50 UTC 2017
pkgbase = python-scikit-optimize
pkgdesc = Sequential model-based optimization toolbox.
- pkgver = 0.4
+ pkgver = 0.6
pkgrel = 1
url = http://scikit-optimize.org/
arch = any
license = BSD
- makedepends = python2-scikit-learn
- makedepends = python-scikit-learn
- makedepends = python2-matplotlib
- makedepends = python-matplotlib
makedepends = python-setuptools
- makedepends = python2-setuptools
- options = !emptydirs
- source = https://pypi.python.org/packages/32/66/361bb509e9e2bc69186c599922dbb1fe16e229afb4140ec7e8040b80f0c9/scikit-optimize-0.4.tar.gz
- sha256sums = c01d5b9f31105172067b1df18d15c277a15c81580317c2b002d8e63df6216156
-
-pkgname = python2-scikit-optimize
- depends = python2-scikit-learn
- depends = python2-matplotlib
-
-pkgname = python-scikit-optimize
depends = python-scikit-learn
depends = python-matplotlib
+ depends = python-pyaml
+ source = https://github.com/scikit-optimize/scikit-optimize/archive/v0.6.tar.gz
+ sha256sums = 5bdbb73ca344e3a8a4487ab96a9b262d882d693f1edeb8ffab003f7f97bd540b
+
+pkgname = python-scikit-optimize
diff --git a/PKGBUILD b/PKGBUILD
index 012011df1a8..24fd95c92b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,51 +1,23 @@
-pkgbase=python-scikit-optimize
-pkgname=('python2-scikit-optimize' 'python-scikit-optimize')
-pkgver=0.4
+pkgname=python-scikit-optimize
+pkgver=0.6
pkgrel=1
pkgdesc="Sequential model-based optimization toolbox."
arch=('any')
url="http://scikit-optimize.org/"
license=('BSD')
-makedepends=('python2-scikit-learn' 'python-scikit-learn' 'python2-matplotlib'
- 'python-matplotlib' python-setuptools python2-setuptools)
-options=(!emptydirs)
-source=(https://pypi.python.org/packages/32/66/361bb509e9e2bc69186c599922dbb1fe16e229afb4140ec7e8040b80f0c9/scikit-optimize-${pkgver}.tar.gz)
-sha256sums=('c01d5b9f31105172067b1df18d15c277a15c81580317c2b002d8e63df6216156')
-
-prepare() {
- cd "$srcdir"
- cp -a scikit-optimize-$pkgver scikit-optimize-py2-$pkgver
- cd scikit-optimize-py2-$pkgver
-
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
+depends=('python-scikit-learn' 'python-matplotlib' 'python-pyaml')
+makedepends=('python-setuptools')
+source=("https://github.com/scikit-optimize/scikit-optimize/archive/v${pkgver}.tar.gz")
+sha256sums=('5bdbb73ca344e3a8a4487ab96a9b262d882d693f1edeb8ffab003f7f97bd540b')
build() {
- msg "Building Python2"
- cd "$srcdir"/scikit-optimize-py2-$pkgver
- python2 setup.py build
-
- msg "Building Python3"
cd "$srcdir"/scikit-optimize-$pkgver
python setup.py build
}
-package_python2-scikit-optimize() {
- depends=('python2-scikit-learn' 'python2-matplotlib')
- cd "$srcdir"/scikit-optimize-py2-$pkgver
-
- python2 setup.py install --root="$pkgdir"/ --optimize=1
-}
-
-package_python-scikit-optimize() {
- depends=('python-scikit-learn' 'python-matplotlib')
+package() {
cd "$srcdir"/scikit-optimize-$pkgver
-
python setup.py install --root="$pkgdir"/ --optimize=1
-
}