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

Antonio Rojas arojas at gemini.archlinux.org
Mon Nov 29 19:23:52 UTC 2021


    Date: Monday, November 29, 2021 @ 19:23:52
  Author: arojas
Revision: 429472

Drop python2

Modified:
  pyopenssl/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++-----------------------------
 1 file changed, 10 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 19:18:10 UTC (rev 429471)
+++ PKGBUILD	2021-11-29 19:23:52 UTC (rev 429472)
@@ -3,22 +3,23 @@
 # Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 
 pkgbase=pyopenssl
-pkgname=('python-pyopenssl' 'python2-pyopenssl')
+pkgname=('python-pyopenssl')
 pkgver=21.0.0
-pkgrel=1
+pkgrel=2
 arch=('any')
 pkgdesc="Python3 wrapper module around the OpenSSL library"
 url='https://github.com/pyca/pyopenssl'
 license=('Apache')
-makedepends=('openssl' 'python-setuptools' 'python2-setuptools' 'python-cryptography'
-             'python2-cryptography' 'python-six' 'python2-six')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pretend' 'python2-pretend'
-              'python-flaky' 'python2-flaky')
+depends=('openssl' 'python' 'python-six' 'python-cryptography')
+replaces=('pyopenssl')
+provides=('pyopenssl')
+conflicts=('pyopenssl')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pretend' 'python-flaky')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pyca/pyopenssl/archive/${pkgver}.tar.gz)
 sha512sums=('bad555b8b8faa60992aad779e9c9af27b132a894d4d3e59fb65f423770b31f278f5966127ca7cdcf42184cefe0c7d6fa94b84482d0e97089031e4e508d77c424')
 
 prepare() {
-  cp -a pyopenssl-$pkgver{,-py2}
   export LC_CTYPE=en_US.UTF-8
 }
 
@@ -25,36 +26,16 @@
 build() {
   cd "$srcdir"/pyopenssl-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pyopenssl-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  (
-    cd "$srcdir"/pyopenssl-$pkgver
-    python setup.py pytest
-
-    cd "$srcdir"/pyopenssl-$pkgver-py2
-    python2 setup.py pytest
-  ) || warning "Tests failed due to missing SSLv3_METHOD"
+  cd "$srcdir"/pyopenssl-$pkgver
+  python setup.py pytest || warning "Tests failed due to missing SSLv3_METHOD"
 }
 
 package_python-pyopenssl() {
-  depends=('openssl' 'python' 'python-six' 'python-cryptography')
-  replaces=('pyopenssl')
-  provides=('pyopenssl')
-  conflicts=('pyopenssl')
-
   cd pyopenssl-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
 
-package_python2-pyopenssl() {
-  depends=('openssl' 'python2' 'python2-six' 'python2-cryptography')
-
-  cd pyopenssl-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list