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

Jelle van der Waa jelle at archlinux.org
Sat Sep 28 22:32:06 UTC 2019


    Date: Saturday, September 28, 2019 @ 22:32:06
  Author: jelle
Revision: 512056

remove python2-pyotp

Python2 is EOL soon.

Modified:
  python-pyotp/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 22:29:20 UTC (rev 512055)
+++ PKGBUILD	2019-09-28 22:32:06 UTC (rev 512056)
@@ -1,8 +1,7 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: ELmoussaoui Bilal <bil.elmoussaoui at gmail.com>
 
-pkgbase=python-pyotp
-pkgname=('python-pyotp' 'python2-pyotp')
+pkgname=python-pyotp
 _pkgname=pyotp
 _gitcommit=041f5d3c65379d7188821caf92436c7f226ec60e
 pkgver=2.3.0
@@ -11,8 +10,8 @@
 url='https://pyotp.readthedocs.io/'
 arch=('any')
 license=('MIT')
-makedepends=('git' 'python-setuptools' 'python-sphinx'
-                   'python2-setuptools' 'python2-sphinx')
+depends=('python')
+makedepends=('git' 'python-setuptools' 'python-sphinx')
 options=('!makeflags')
 source=("git+https://github.com/pyotp/pyotp#commit=${_gitcommit}?signed")
 sha512sums=('SKIP')
@@ -26,7 +25,6 @@
 build() {
   cd ${_pkgname}
   python setup.py build
-  python2 setup.py build
   make -C docs text man
 }
 
@@ -33,11 +31,9 @@
 check() {
   cd ${_pkgname}
   python setup.py test
-  python2 setup.py test
 }
 
-package_python-pyotp() {
-  depends=('python')
+package() {
   cd ${_pkgname}
   python setup.py install --root="${pkgdir}" -O1 --skip-build
   install -Dm 644 README.rst ./docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
@@ -46,13 +42,4 @@
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
-package_python2-pyotp() {
-  depends=('python2')
-  cd ${_pkgname}
-  python2 setup.py install --root="${pkgdir}" -O1 --skip-build
-  install -Dm 644 README.rst ./docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 ./docs/_build/man/${_pkgname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list