summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Winger2019-09-07 22:43:52 -0400
committerBenjamin Winger2019-09-07 22:43:52 -0400
commit4ae117671c8a1088f43394f0c7a1c398d8224b9e (patch)
tree6ea31af0ff51bdd18d3a9bf063bcfc565dbe0c97
parentf1046fca3cedd274ae97638b09b1ed4a96d388cf (diff)
downloadaur-4ae117671c8a1088f43394f0c7a1c398d8224b9e.tar.gz
Version bump to 5.0 and fixed test bug
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 406aed55499..d1354f83b06 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-restrictedpython
pkgdesc = A restricted execution environment for Python to run untrusted code
- pkgver = 4.0
+ pkgver = 5.0
pkgrel = 1
url = https://github.com/zopefoundation/RestrictedPython
arch = any
@@ -12,8 +12,8 @@ pkgbase = python-restrictedpython
depends = python
provides = python-restrictedpython
conflicts = python-restrictedpython
- source = https://github.com/zopefoundation/RestrictedPython/archive/4.0.tar.gz
- sha512sums = 551a6976b42e94d9f9e1eb643761108e891a9d8cb920432c4450a37676d2f1375d6ddb7c28787830dabba9f07d846da151d0b02628785d55b253949abb92aadc
+ source = https://github.com/zopefoundation/RestrictedPython/archive/5.0.tar.gz
+ sha512sums = 21d64123be0b33cba1689a70ce94bb506c8f52f3f2d1241b8c4732de1bdf92c37b53acc5d86f8f72324e370bcb950120e278be6571c2d640bdb324909c7d5273
pkgname = python-restrictedpython
diff --git a/PKGBUILD b/PKGBUILD
index 68922b66b6b..0c547f08375 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=RestrictedPython
pkgname=python-restrictedpython
-pkgver=4.0
+pkgver=5.0
pkgrel=1
pkgdesc="A restricted execution environment for Python to run untrusted code"
provides=('python-restrictedpython')
@@ -14,11 +14,14 @@ depends=("python")
makedepends=("python" "python-setuptools")
checkdepends=("python-pytest" "python-pytest-mock")
source=("https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz")
-sha512sums=('551a6976b42e94d9f9e1eb643761108e891a9d8cb920432c4450a37676d2f1375d6ddb7c28787830dabba9f07d846da151d0b02628785d55b253949abb92aadc')
+sha512sums=('21d64123be0b33cba1689a70ce94bb506c8f52f3f2d1241b8c4732de1bdf92c37b53acc5d86f8f72324e370bcb950120e278be6571c2d640bdb324909c7d5273')
check() {
cd "$srcdir/$_pkgname-$pkgver"
+ # Source files are inside the src directory and the module is not in the PATH when running tests
+ mv src/RestrictedPython RestrictedPython
py.test
+ mv RestrictedPython src/RestrictedPython
}
package() {