summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeakster2021-01-21 09:25:31 +0000
committerFeakster2021-01-21 09:25:31 +0000
commit639c6f819bb317a7900d0ee715233b366dc385f7 (patch)
tree99ae4f13b06bfaedf7ac3b989967a187e879db85
parent46e1dc8e8058162db09a9375830cbaf9e664d07e (diff)
downloadaur-639c6f819bb317a7900d0ee715233b366dc385f7.tar.gz
Added a check function
- Added a .gitignore file. - Added a check() function. This is commented out for now as there are tests failures.
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD14
2 files changed, 17 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..561265afc3b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+src/
+pkg/
+python-pyfab/
diff --git a/PKGBUILD b/PKGBUILD
index fe9d40b8cba..7c27ccaae83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
# - Repo: 'https://github.com/physimals/pyfab'
# - Docs: 'https://pyfab.readthedocs.io/en/latest/'
# - Fabber is provided by FSL, but can be installed as a standalone (https://github.com/physimals/fabber_core)
+# - Currently triggers test failures
### Info ###
pkgname=python-pyfab
@@ -17,6 +18,7 @@ license=('custom:PYFAB license')
depends=('fsl>=6.0.1' 'python' 'python-numpy' 'python-nibabel' 'python-six')
optdepends=('fslpy: MVN functionality')
makedepends=('git' 'python-setuptools')
+# checkdepends=('python-pytest')
source=("$pkgname::git+https://github.com/physimals/${_pkgname}.git#tag=v$pkgver")
b2sums=('SKIP')
@@ -29,6 +31,15 @@ build() {
python setup.py build
}
+# ### Check ###
+# check() {
+# ## Change Directory ##
+# cd "$srcdir/$pkgname"
+#
+# ## Test ##
+# pytest
+# }
+
### Package ###
package() {
## Change Directory ##
@@ -43,4 +54,7 @@ package() {
## Install License ##
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ ## Install Docs ##
+ install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}