[arch-commits] Commit in python-mechanize/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Fri Sep 25 05:35:25 UTC 2020


    Date: Friday, September 25, 2020 @ 05:35:24
  Author: eschwartz
Revision: 711962

upgpkg: python-mechanize 1:0.4.5-2: drop python2

no longer used by calibre, and is therefore not needed at all

Modified:
  python-mechanize/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++-----------------------
 1 file changed, 7 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 05:33:31 UTC (rev 711961)
+++ PKGBUILD	2020-09-25 05:35:24 UTC (rev 711962)
@@ -6,19 +6,18 @@
 # Contributor: Roberto Alsina <ralsina at kde.org>
 
 _pkgname=mechanize
-pkgbase=python-mechanize
-pkgname=(python-mechanize python2-mechanize)
+pkgname=python-mechanize
 pkgver=0.4.5
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc='Stateful programmatic web browsing in Python'
 arch=('any')
 url="https://github.com/python-mechanize/mechanize"
 license=('BSD')
-makedepends=('python-setuptools' 'python-html5lib'
-              'python2-setuptools' 'python2-html5lib')
-checkdepends=('python-zope-interface' 'python-twisted'
-              'python2-zope-interface' 'python2-twisted')
+depends=('python-html5lib')
+makedepends=('python-setuptools')
+checkdepends=('python-zope-interface' 'python-twisted')
+optdepends=('python-html5-parser: faster parsing of HTML')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
 sha256sums=('6355c11141f6d4b54a17fc2106944806b5db2711e60b120d15d83db438c333fd'
             'SKIP')
@@ -30,7 +29,6 @@
   cd "mechanize-$pkgver"
 
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
@@ -37,25 +35,11 @@
   cd "mechanize-$pkgver"
 
   python setup.py test
-  python2 setup.py test
 }
 
-package_python-mechanize() {
-  depends=('python-html5lib')
-  optdepends=('python-html5-parser: faster parsing of HTML')
+package() {
   cd "mechanize-$pkgver"
 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-mechanize() {
-  depends=('python2-html5lib')
-  optdepends=('python2-html5-parser: faster parsing of HTML')
-  cd "mechanize-$pkgver"
-
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list