Date: Wednesday, January 1, 2020 @ 20:12:23
  Author: jelle
Revision: 545918

Remove python2 module

Modified:
  python-bleach/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++---------------------------
 1 file changed, 6 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-01-01 20:01:55 UTC (rev 545917)
+++ PKGBUILD    2020-01-01 20:12:23 UTC (rev 545918)
@@ -1,22 +1,17 @@
 # Maintainer: Johannes Löthberg <johan...@kyriasis.com>
 
-pkgbase=python-bleach
-pkgname=(python-bleach python2-bleach)
+pkgname=python-bleach
 pkgver=3.1.0
-pkgrel=3
+pkgrel=4
 
 pkgdesc="An easy whitelist-based HTML-sanitizing tool"
 url="https://pypi.org/project/bleach/";
 arch=('any')
 license=('Apache')
+depends=('python-webencodings')
 makedepends=('python'
-             'python-setuptools'
-             'python-webencodings'
-             'python2'
-             'python2-setuptools'
-              'python2-webencodings')
-checkdepends=('python-pytest'
-              'python2-pytest')
+             'python-setuptools')
+checkdepends=('python-pytest')
 
 source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz
         pytest5.patch)
@@ -27,35 +22,19 @@
 prepare() {
        # https://github.com/mozilla/bleach/pull/483
        patch -Np1 -d bleach-$pkgver <pytest5.patch
-       cp -a bleach-$pkgver{,-python2}
 }
 
 build() {
        cd "$srcdir"/bleach-$pkgver
        python setup.py build
-
-       cd "$srcdir"/bleach-$pkgver-python2
-       python2 setup.py build
 }
 
 check() {
        cd "$srcdir"/bleach-$pkgver
        python -m pytest
-
-       cd "$srcdir"/bleach-$pkgver-python2
-       python2 -m pytest
 }
 
-package_python-bleach() {
-       depends=('python-webencodings')
-
+package() {
        cd "$srcdir"/bleach-$pkgver
        python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-bleach() {
-       depends=('python2-webencodings')
-
-       cd "$srcdir"/bleach-$pkgver-python2
-       python2 setup.py install --root="$pkgdir" --optimize=1
-}

Reply via email to