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

Felix Yan felixonmars at archlinux.org
Sat May 25 04:28:28 UTC 2019


    Date: Saturday, May 25, 2019 @ 04:28:28
  Author: felixonmars
Revision: 469702

upgpkg: python-prance 0.15.0-2

remove python2 sibling

Modified:
  python-prance/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++----------------------------------
 1 file changed, 10 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-25 04:26:31 UTC (rev 469701)
+++ PKGBUILD	2019-05-25 04:28:28 UTC (rev 469702)
@@ -1,21 +1,19 @@
 # $Id$
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-prance
-pkgname=(python-prance python2-prance)
+pkgname=python-prance
 pkgver=0.15.0
 _openapi_commit=fbe62006211838a8bb7bf2433a1d15f1a5838a03
-pkgrel=1
+pkgrel=2
 pkgdesc="Resolving Swagger/OpenAPI 2.0 and 3.0 Parser"
 url="https://github.com/jfinkhaeuser/prance"
 license=('custom:MITNFA')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet' 'python-yaml'
-             'python2-yaml' 'python-flex' 'python2-flex' 'python-click' 'python2-click'
-             'python-requests' 'python2-requests' 'python-six' 'python2-six'
-             'python-semver' 'python2-semver')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' 'python2-pytest-cov')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/jfinkhaeuser/prance/archive/v$pkgver.tar.gz"
+depends=('python-chardet' 'python-yaml' 'python-flex' 'python-click' 'python-requests'
+         'python-six' 'python-semver')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jfinkhaeuser/prance/archive/v$pkgver.tar.gz"
         "OpenAPI-Specification-$_openapi_commit.tar.gz::https://github.com/OAI/OpenAPI-Specification/archive/$_openapi_commit.tar.gz")
 sha512sums=('db72433011f27b33c40529817216db9e9d5380250e9c71b128c07a80e2b2d5aa0a5418ccb8c68895fc09b6e3f058f639b1adbc87fa2b1343e77c2889af43f4e1'
             'd7957f1cdaa681b4c163e6e0b35ed6b808f469c3fdbba86a5e7221bb3c0c980415dca145e7f57bcebed75624562e89a893841d17c9e0ff82df4f0ff65ffaa2ae')
@@ -23,42 +21,20 @@
 prepare() {
   rmdir prance-$pkgver/tests/OpenAPI-Specification
   ln -s "$srcdir"/OpenAPI-Specification-$_openapi_commit prance-$pkgver/tests/OpenAPI-Specification
-
-  cp -a prance-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/prance-$pkgver
+  cd prance-$pkgver
   python setup.py build
-
-  cd "$srcdir"/prance-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/prance-$pkgver
+  cd prance-$pkgver
   pytest
-
-  cd "$srcdir"/prance-$pkgver-py2
-  pytest2
 }
 
-package_python-prance() {
-  depends=('python-chardet' 'python-yaml' 'python-flex' 'python-click' 'python-requests'
-           'python-six' 'python-semver')
-
+package() {
   cd prance-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-prance() {
-  depends=('python2-chardet' 'python2-yaml' 'python2-flex' 'python2-click' 'python2-requests'
-           'python2-six' 'python2-semver')
-
-  cd prance-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-
-  mv "$pkgdir"/usr/bin/prance{,2}
-}



More information about the arch-commits mailing list