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

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


    Date: Saturday, September 28, 2019 @ 22:11:10
  Author: jelle
Revision: 512053

remove python2-trustme

Python2 is EOL soon

Modified:
  python-trustme/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++-----------------
 1 file changed, 6 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 22:08:03 UTC (rev 512052)
+++ PKGBUILD	2019-09-28 22:11:10 UTC (rev 512053)
@@ -1,8 +1,7 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
-pkgbase=python-trustme
-pkgname=('python-trustme' 'python2-trustme')
-_pyname=${pkgbase/python-/}
+pkgname=python-trustme
+_pyname=${pkgname/python-/}
 pkgver=0.5.2
 pkgrel=1
 pkgdesc='Library for fake certificate authority (CA) to generate fake TLS certs'
@@ -9,16 +8,15 @@
 url='https://trustme.readthedocs.io'
 arch=('any')
 license=('MIT')
-makedepends=('python' 'python-setuptools' 'python-cryptography'
-             'python2' 'python2-setuptools' 'python2-cryptography')
+depends=('python' 'python-cryptography')
+makedepends=('python' 'python-setuptools' 'python-cryptography')
 checkdepends=('python-pytest' 'python-pyopenssl' 'python-service_identity')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/python-trio/trustme/archive/v${pkgver}.tar.gz)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/python-trio/trustme/archive/v${pkgver}.tar.gz)
 sha512sums=('f2afc6782daee036565c79aa86b176a734ed9d0bb7248a56c8be87806e54287ac579f26857e241ff4daff3f6a063afa9dbe927e0aa8439a37880fcf065afa526')
 
 build() {
   cd ${_pyname}-${pkgver}
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
@@ -26,8 +24,7 @@
   PYTHONPATH=. py.test
 }
 
-package_python-trustme() {
-  depends=('python' 'python-cryptography')
+package() {
   cd ${_pyname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --skip-build
   install -Dm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -34,12 +31,4 @@
   install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
-package_python2-trustme() {
-  depends=('python2' 'python2-cryptography')
-  cd ${_pyname}-${pkgver}
-  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
-  install -Dm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list