diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 10:26:02 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 13:25:54 -0300 |
commit | edb54a2269c2288de63c0631385bf1ae83859d5d (patch) | |
tree | 14a6fa5f2ed51e4dfbec264bff906258a2fed7d1 /testing | |
parent | 9e57cadf8cfd1c5afe4b20df6f1c2feb89baa91d (diff) | |
download | aports-edb54a2269c2288de63c0631385bf1ae83859d5d.tar.bz2 aports-edb54a2269c2288de63c0631385bf1ae83859d5d.tar.xz |
testing/py3-serpent: drop py2
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-serpent/APKBUILD | 45 |
1 files changed, 9 insertions, 36 deletions
diff --git a/testing/py3-serpent/APKBUILD b/testing/py3-serpent/APKBUILD index 067116558c..13cb1c0242 100644 --- a/testing/py3-serpent/APKBUILD +++ b/testing/py3-serpent/APKBUILD @@ -1,57 +1,30 @@ # Maintainer: Drew DeVault <sir@cmpwn.com> -pkgname=py-serpent +pkgname=py3-serpent _pyname=serpent pkgver=1.28 -pkgrel=1 +pkgrel=2 pkgdesc="Serialization based on ast.literal_eval for Python" url="https://pypi.org/project/serpent/" arch="noarch" license="MIT" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -makedepends="python2 python3 py2-setuptools py3-setuptools" -checkdepends="py2-attrs py3-attrs py2-tz py3-tz" -_pypiprefix="${_pyname%${_pyname#?}}" -source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" -builddir=$srcdir/$_pyname-$pkgver +makedepends="py3-setuptools" +checkdepends="py3-attrs py3-tz" +source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" -prepare() { - cp -r "$builddir" "$builddir"-py2 -} +replaces="py-serpent" # Backwards compatiblity +provides="py-serpent=$pkgname-r$pkgrel" # Backwards compatiblity build() { - cd "$builddir" python3 setup.py build - cd "$builddir"-py2 - python2 setup.py build } check() { - cd "$builddir" python3 setup.py test - cd "$builddir"-py2 - python2 setup.py test } package() { - mkdir -p "$pkgdir" -} - -_py2() { - cd "$builddir"-py2 - _py python2 -} - -_py3() { - cd "$builddir" - _py python3 -} - -_py() { - _python="$1" - pkgdesc="$pkgdesc (for $_python)" - depends="$depends $_python" - install_if="$pkgname=$pkgver-r$pkgrel $_python" - $_python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="776bc497c7cd815c4ef44107bdf53b62bb92229beba0be7efceb9fba57dc7c677bf09832db335485df3e466acdffe6ebf4b3636ae9b49e60075379a7419a29ad serpent-1.28.tar.gz" |