summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-02-25 12:36:31 +0800
committerUniversebenzene2019-02-25 12:36:31 +0800
commit44e963ba9305aaca8d8b09e05dd51543130a1b38 (patch)
treebcf916952fdcea87027eb5d27aa49bc36ee815b8
parentf2504fee1e5b4d5669f68f6bcaa1a219d5eff2e2 (diff)
downloadaur-44e963ba9305aaca8d8b09e05dd51543130a1b38.tar.gz
Add contional before python2 testing
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD17
-rw-r--r--python2-radio_beam.install5
3 files changed, 21 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 219e40bd3b0..21ba6644d48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Feb 21 04:24:46 UTC 2019
+# Mon Feb 25 04:35:39 UTC 2019
pkgbase = python-radio_beam
pkgdesc = A tool for manipulating and utilizing two dimensional gaussian beams within the astropy framework
pkgver = 0.3.1
@@ -18,7 +18,9 @@ pkgbase = python-radio_beam
makedepends = python2-astropy-helpers
makedepends = python-sphinx-astropy
source = https://files.pythonhosted.org/packages/source/r/radio_beam/radio_beam-0.3.1.tar.gz
+ source = python2-radio_beam.install
md5sums = 268a38a8196a824bb69c815cdd35fe3a
+ md5sums = a5d326a896bc49ec788cd48f340c1863
pkgname = python-radio_beam
depends = python
@@ -27,9 +29,10 @@ pkgname = python-radio_beam
optdepends = python-radio_beam-doc: Documentation for Radio Beam
pkgname = python2-radio_beam
+ install = python2-radio_beam.install
depends = python2
depends = python2-astropy
- optdepends = python2-pytest: For testing
+ optdepends = python2-pytest32: For testing
optdepends = python-radio_beam-doc: Documentation for Radio Beam
pkgname = python-radio_beam-doc
diff --git a/PKGBUILD b/PKGBUILD
index 75ec92828d6..9ec10b29726 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,8 +10,10 @@ url="https://radio-beam.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-pytest32' 'python2-astropy')
-source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
-md5sums=('268a38a8196a824bb69c815cdd35fe3a')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
+ "python2-${_pyname}.install")
+md5sums=('268a38a8196a824bb69c815cdd35fe3a'
+ 'a5d326a896bc49ec788cd48f340c1863')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
@@ -38,15 +40,18 @@ check() {
cd ${srcdir}/${_pyname}-${pkgver}
python setup.py test
- msg "Checking Python2"
- cd ${srcdir}/${_pyname}-${pkgver}-py2
- python2 setup.py test
+ if [ -z $(pacman -Qsq python2-pytest-cov) ]; then
+ msg "Checking Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py test
+ fi
}
package_python2-radio_beam() {
depends=('python2' 'python2-astropy')
- optdepends=('python2-pytest: For testing'
+ optdepends=('python2-pytest32: For testing'
'python-radio_beam-doc: Documentation for Radio Beam')
+ install=python2-${_pyname}.install
cd ${srcdir}/${_pyname}-${pkgver}-py2
install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
diff --git a/python2-radio_beam.install b/python2-radio_beam.install
new file mode 100644
index 00000000000..8544a6f6091
--- /dev/null
+++ b/python2-radio_beam.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo "
+ ==> If you want to run the testing for python2 version of radio_beam, you need to remove the python2-pytest-cov package first.
+ "
+}