Date: Saturday, September 29, 2018 @ 07:05:27 Author: felixonmars Revision: 387673
archrelease: copy trunk to community-any Added: python-path.py/repos/community-any/PKGBUILD (from rev 387672, python-path.py/trunk/PKGBUILD) Deleted: python-path.py/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 56 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-09-29 07:05:14 UTC (rev 387672) +++ PKGBUILD 2018-09-29 07:05:27 UTC (rev 387673) @@ -1,54 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-path.py -pkgname=('python-path.py' 'python2-path.py') -pkgver=11.3.0 -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') -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=('dc1aa2e362c72e3cdb96ad09826d9a25ea5f4d8d8ab4ff62707df9d5fce30d63fc338e25fcb15cd58ad50fcbd01f042deb9853144d8fda9d7423a2585ec05255') - -prepare() { - sed -i 's/W503/W503 W504/' path.py-$pkgver/.flake8 - cp -a path.py-$pkgver{,-py2} - - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver -} - -build() { - cd "$srcdir"/path.py-$pkgver - python setup.py build - - cd "$srcdir"/path.py-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/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') - - cd path.py-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-path.py() { - depends=('python2-importlib-metadata') - - cd path.py-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} - -# vim:set ts=2 sw=2 et: Copied: python-path.py/repos/community-any/PKGBUILD (from rev 387672, python-path.py/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-09-29 07:05:27 UTC (rev 387673) @@ -0,0 +1,56 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-path.py +pkgname=('python-path.py' 'python2-path.py') +pkgver=11.4.0 +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=('54cc5566f3243fff1158ceb555e1edc9c5ac12025574c20558ddb2998b5ff711a1bba248f59ea69c4b071f3afe34c1ea54d6653d41602ce1d0b89b21da7d9ffe') + +prepare() { + cp -a path.py-$pkgver{,-py2} + + # https://github.com/jaraco/path.py/issues/153 + sed -i 's/milliseconds=100/milliseconds=200/' path.py-$pkgver-py2/test_path.py + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/path.py-$pkgver + python setup.py build + + cd "$srcdir"/path.py-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/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') + + cd path.py-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +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: