[arch-commits] Commit in python-path.py/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 31 08:59:16 UTC 2019


    Date: Friday, May 31, 2019 @ 08:59:15
  Author: felixonmars
Revision: 475885

upgpkg: python-path.py 12.0.1-1

Modified:
  python-path.py/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++---------------------------------
 1 file changed, 12 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-31 08:53:48 UTC (rev 475884)
+++ PKGBUILD	2019-05-31 08:59:15 UTC (rev 475885)
@@ -1,53 +1,32 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-path.py
-pkgname=('python-path.py' 'python2-path.py')
-pkgver=11.5.2
+pkgname=python-path.py
+pkgver=12.0.1
 pkgrel=1
 pkgdesc='A module wrapper for os.path'
 arch=('any')
 license=('MIT')
 url='https://github.com/jaraco/path.py'
-makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-importlib-metadata'
-             'python2-importlib-metadata' 'python2-backports.os')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8' 'python2-pytest-flake8')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
-sha512sums=('f1beb0b2cb6426cdd5b620550e10e22169d2dbeaa658b352a0df0abbc3572347034836dd01dd4fa446cc5ebac2fe39c722da1880687128cf5cfaeccf3fdda1a1')
+depends=('python-importlib-metadata')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python-pytest-flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
+sha512sums=('5906b31db753374a75e8b1a8515ed3d6ab7b394906ce8d07aea13be77d5e6db164d79c4b1dc517c8c6692b4eef57505a5c739ba54e282dcbda01f37d21e04044')
 
-prepare() {
-  cp -a path.py-$pkgver{,-py2}
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/path.py-$pkgver
+  cd path.py-$pkgver
   python setup.py build
-
-  cd "$srcdir"/path.py-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/path.py-$pkgver
+  cd path.py-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/path.py-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-path.py() {
-  depends=('python-importlib-metadata')
-
+package() {
   cd path.py-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
-
-package_python2-path.py() {
-  depends=('python2-importlib-metadata' 'python2-backports.os')
-
-  cd path.py-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list