summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD21
2 files changed, 17 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d49e8df5fad..538f7e83c70 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,22 @@
pkgbase = python-axelrod
pkgdesc = Research tool for the Iterated Prisoner's Dilemma
- pkgver = 4.4.0
- pkgrel = 2
+ pkgver = 4.12.0
+ pkgrel = 1
url = https://github.com/Axelrod-Python/Axelrod
arch = any
license = MIT
+ checkdepends = python-hypothesis
makedepends = python-setuptools
depends = python-dask
depends = python-matplotlib
depends = python-numpy
depends = python-pandas
depends = python-prompt_toolkit
- depends = python-pygments
+ depends = python-yaml
depends = python-scipy
depends = python-tqdm
options = !emptydirs
- source = https://github.com/Axelrod-Python/Axelrod/archive/v4.4.0.tar.gz
- source = https://github.com/Axelrod-Python/Axelrod/commit/8dba4c0.patch
- sha256sums = 1f8f8386ab292877e9c063aa371e0d5709a969cce9cba828ee95567be1858c7e
- sha256sums = 4d9d11b7d8ccd2074295b92b4961fd76b25e3948cb8e9836acd0123a5b6166f2
+ source = python-axelrod-v4.12.0.tar.gz::https://github.com/Axelrod-Python/Axelrod/archive/v4.12.0.tar.gz
+ sha256sums = 5360e7e52a8fdf8e2f8af5e59f4e0fb54f11f245103ed77be91f854e6848b019
pkgname = python-axelrod
-
diff --git a/PKGBUILD b/PKGBUILD
index f1e41f45260..7f613f38dbe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,33 @@
# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
pkgname=('python-axelrod')
-pkgver=4.4.0
-pkgrel=2
+pkgver=4.12.0
+pkgrel=1
pkgdesc="Research tool for the Iterated Prisoner's Dilemma"
arch=('any')
url='https://github.com/Axelrod-Python/Axelrod'
license=('MIT')
+checkdepends=('python-hypothesis')
makedepends=('python-setuptools')
depends=('python-dask'
'python-matplotlib' 'python-numpy' 'python-pandas'
- 'python-prompt_toolkit' 'python-pygments' 'python-scipy'
+ 'python-prompt_toolkit' 'python-yaml' 'python-scipy'
'python-tqdm')
options=(!emptydirs)
-sha256sums=('1f8f8386ab292877e9c063aa371e0d5709a969cce9cba828ee95567be1858c7e'
- '4d9d11b7d8ccd2074295b92b4961fd76b25e3948cb8e9836acd0123a5b6166f2')
-source=("$url/archive/v$pkgver.tar.gz"
- "$url/commit/8dba4c0.patch")
+sha256sums=('5360e7e52a8fdf8e2f8af5e59f4e0fb54f11f245103ed77be91f854e6848b019')
+source=("$pkgname-v$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
prepare() {
cd "$srcdir/Axelrod-$pkgver"
- # Reverse the 8dba4c0 commit as we have prompt_toolkit v2, not v1
- patch -Rp1 < "$srcdir/8dba4c0.patch"
-
# Avoid installing optional/unrequired dependencies
echo > "requirements.txt"
}
+check() {
+ cd "$srcdir/Axelrod-$pkgver"
+ ./test
+}
+
package() {
cd "$srcdir/Axelrod-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1