[arch-commits] Commit in python-icalendar/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Wed May 6 21:32:17 UTC 2020


    Date: Wednesday, May 6, 2020 @ 21:32:16
  Author: dvzrv
Revision: 625201

archrelease: copy trunk to community-any

Added:
  python-icalendar/repos/community-any/PKGBUILD
    (from rev 625200, python-icalendar/trunk/PKGBUILD)
Deleted:
  python-icalendar/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   80 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-06 21:32:10 UTC (rev 625200)
+++ PKGBUILD	2020-05-06 21:32:16 UTC (rev 625201)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Daniel M. Capella <polyzen at archlinux.info>
-# Contributor: Sirat18 <aur at sirat18.de>
-# Contributor: Jonas Heinrich <onny at project-insanity.org>
-
-_name=icalendar
-pkgname=python-icalendar
-pkgver=4.0.5
-pkgrel=1
-pkgdesc='A parser/generator of iCalendar files (RFC 2445)'
-arch=('any')
-url="https://github.com/collective/icalendar"
-license=('BSD')
-depends=('python-dateutil' 'python-pytz')
-makedepends=('python-setuptools')
-optdepends=('python-setuptools: for icalendar')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('48f6ecc24ee154f25982e54c1c0ef75146bc27ae90e3743d46407c730124a1b0fb4be8123e1f779d46aaf4297642f0f053794f5cc354816d9926dcf2a2b76912')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  python -m unittest discover src
-}
-
-package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 {CHANGES,CONTRIBUTING,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-  install -vDm 644 LICENSE.rst \
-    -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-icalendar/repos/community-any/PKGBUILD (from rev 625200, python-icalendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-06 21:32:16 UTC (rev 625201)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Daniel M. Capella <polyzen at archlinux.info>
+# Contributor: Sirat18 <aur at sirat18.de>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+
+_name=icalendar
+pkgname=python-icalendar
+pkgver=4.0.6
+pkgrel=1
+pkgdesc='A parser/generator of iCalendar files (RFC 2445)'
+arch=('any')
+url="https://github.com/collective/icalendar"
+license=('BSD')
+depends=('python-dateutil' 'python-pytz' 'python-setuptools')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('e8f7ee878cc14b75636268d7b8c79569ce1875142fb907b1eb74bc6b9cf96f218e4be63828190aa2a27978c431437c1d454febe9a2da58c5f2785e283ae725b2')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  PYTHONPATH="${PWD}:${PYTHONPATH}"
+  pytest -v "src/${_name}/tests"
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {CHANGES,CONTRIBUTING,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  install -vDm 644 LICENSE.rst \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}


More information about the arch-commits mailing list