summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-02-21 15:54:51 +0800
committerUniversebenzene2019-02-21 15:54:51 +0800
commitc9374d7b0c97acffa1c117d1edd2ebdc7bc4b80b (patch)
tree2c0afb8b41b21e0996e5defbe864354d5671fefb
parent2e331ae00bc1bd822d58f2fcf1f1e8416a410802 (diff)
downloadaur-c9374d7b0c97acffa1c117d1edd2ebdc7bc4b80b.tar.gz
Add check function
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD27
2 files changed, 20 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 54430b6ff67..8d573690bcc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Wed Jan 23 08:21:59 UTC 2019
+# Thu Feb 21 07:52:41 UTC 2019
pkgbase = python-pyspeckit
pkgdesc = Toolkit for fitting and manipulating spectroscopic data in python
pkgver = 0.1.21
@@ -8,6 +8,9 @@ pkgbase = python-pyspeckit
arch = i686
arch = x86_64
license = BSD
+ checkdepends = tk
+ checkdepends = python-pytest-astropy
+ checkdepends = python-spectral-cube
makedepends = python-setuptools
makedepends = python2-setuptools
makedepends = python-astropy
@@ -27,8 +30,7 @@ pkgname = python-pyspeckit
optdepends = python-atpy
optdepends = python-spectral-cube
optdepends = python-lmfit
- optdepends = python-pyspeckit-doc: Documentation for PySpeckit
- optdepends = python-pytest: For testing
+ optdepends = python-pyspeckit-doc: Documentation for PySpecKit
pkgname = python2-pyspeckit
depends = python2-numpy>=1.4
@@ -38,9 +40,9 @@ pkgname = python2-pyspeckit
optdepends = python2-atpy
optdepends = python2-spectral-cube
optdepends = python2-lmfit
- optdepends = python-pyspeckit-doc: Documentation for PySpeckit
+ optdepends = python-pyspeckit-doc: Documentation for PySpecKit
optdepends = python2-pytest: For testing
pkgname = python-pyspeckit-doc
- pkgdesc = Documentation for Python PySpeckit module
+ pkgdesc = Documentation for Python PySpecKit module
diff --git a/PKGBUILD b/PKGBUILD
index 56fa9ab94d2..cec1a908a68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ arch=('i686' 'x86_64')
url="https://pyspeckit.readthedocs.io/"
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'python-astropy' 'python-astropy-helpers>=3.1' 'python2-astropy-helpers' 'python-sphinx-astropy')
-#checkdepends=('python-pytest-astropy' 'python2-pytest' 'python2-astropy' 'python2-spectral-cube' 'python-spectral-cube')
+checkdepends=('tk' 'python-pytest-astropy' 'python-spectral-cube')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
'correct_doc_examples.patch')
md5sums=('e276915c2865e0e64dc132a3b9cb0b23'
@@ -36,15 +36,15 @@ build() {
python setup.py build_docs
}
-#check() {
-# msg "Checking Python3"
-# cd ${srcdir}/${_pyname}-${pkgver}
-# python setup.py test
-#
-# msg "Checking Python2"
-# cd ${srcdir}/${_pyname}-${pkgver}-py2
-# python2 setup.py test
-#}
+check() {
+# msg "Checking Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py test
+
+# msg "Checking Python2"
+# cd ${srcdir}/${_pyname}-${pkgver}-py2
+# python2 setup.py test
+}
package_python2-pyspeckit() {
depends=('python2-numpy>=1.4' 'python2-astropy>=1.0' 'python2-matplotlib>=1.4')
@@ -52,7 +52,7 @@ package_python2-pyspeckit() {
'python2-atpy'
'python2-spectral-cube'
'python2-lmfit'
- 'python-pyspeckit-doc: Documentation for PySpeckit'
+ 'python-pyspeckit-doc: Documentation for PySpecKit'
'python2-pytest: For testing')
cd ${srcdir}/${_pyname}-${pkgver}-py2
@@ -70,8 +70,7 @@ package_python-pyspeckit() {
'python-atpy'
'python-spectral-cube'
'python-lmfit'
- 'python-pyspeckit-doc: Documentation for PySpeckit'
- 'python-pytest: For testing')
+ 'python-pyspeckit-doc: Documentation for PySpecKit')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" licenses/*
@@ -80,7 +79,7 @@ package_python-pyspeckit() {
}
package_python-pyspeckit-doc() {
- pkgdesc="Documentation for Python PySpeckit module"
+ pkgdesc="Documentation for Python PySpecKit module"
cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"