[arch-commits] Commit in python-zipp/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jan 14 06:36:56 UTC 2020


    Date: Tuesday, January 14, 2020 @ 06:36:55
  Author: felixonmars
Revision: 552475

archrelease: copy trunk to community-testing-x86_64

Added:
  python-zipp/repos/community-testing-x86_64/
  python-zipp/repos/community-testing-x86_64/PKGBUILD
    (from rev 552474, python-zipp/trunk/PKGBUILD)

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

Copied: python-zipp/repos/community-testing-x86_64/PKGBUILD (from rev 552474, python-zipp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-01-14 06:36:55 UTC (rev 552475)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zipp
+pkgname=(python-zipp python2-zipp)
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Pathlib-compatible object wrapper for zip files"
+url="https://github.com/jaraco/zipp"
+license=('MIT')
+arch=('x86_64')
+makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-more-itertools'
+             'python2-more-itertools')
+checkdepends=('python2-pathlib2' 'python2-contextlib2' 'python2-unittest2')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/zipp/archive/v$pkgver.tar.gz")
+sha512sums=('71a6a6ba0ca5e4cefbacff4480eefb097abe3b5efaf9e473cb79200acc2997fbdbfe9dfbf5eba9c5c7046fa18395ed819869be74fed1b6eaa01fe50ed667cbd5')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd zipp-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd zipp-$pkgver
+  python setup.py test
+  python2 setup.py test
+}
+
+package_python-zipp() {
+  depends=('python-more-itertools')
+
+  cd zipp-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-zipp() {
+  depends=('python2-more-itertools')
+
+  cd zipp-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list