[arch-commits] Commit in python-rpy2/repos/community-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Sun Apr 3 20:39:43 UTC 2022


    Date: Sunday, April 3, 2022 @ 20:39:43
  Author: arojas
Revision: 1181114

archrelease: copy trunk to community-x86_64

Added:
  python-rpy2/repos/community-x86_64/PKGBUILD
    (from rev 1181113, python-rpy2/trunk/PKGBUILD)
Deleted:
  python-rpy2/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   58 +++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 35 insertions(+), 23 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-03 20:39:33 UTC (rev 1181113)
+++ PKGBUILD	2022-04-03 20:39:43 UTC (rev 1181114)
@@ -1,23 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
-# Contributor: David Scholl <djscholl at gmail.com> 
-# Contributor: David Pretty <david.pretty at gmail.com> 
-
-pkgname=python-rpy2
-pkgver=3.4.5
-pkgrel=3
-pkgdesc='A very simple, yet robust, Python interface to the R Programming Language'
-arch=(x86_64)
-url='https://rpy2.github.io/'
-license=(MPL GPL LGPL)
-depends=(python-cffi python-numpy python-tzlocal r)
-makedepends=(python-setuptools)
-optdepends=('python-pandas: conversion between rpy and pandas')
-source=(https://pypi.io/packages/source/r/rpy2/rpy2-$pkgver.tar.gz)
-sha256sums=('5d31a5ea43f5a59f6dec30faca87edb01fc9b8affa0beae96a99be923bd7dab3')
-
-package() {
-  cd rpy2-$pkgver
-
-  python setup.py install --prefix=/usr --install-data=/usr/share --root="$pkgdir" --optimize=1
-}

Copied: python-rpy2/repos/community-x86_64/PKGBUILD (from rev 1181113, python-rpy2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-03 20:39:43 UTC (rev 1181114)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+# Contributor: David Scholl <djscholl at gmail.com> 
+# Contributor: David Pretty <david.pretty at gmail.com> 
+
+pkgname=python-rpy2
+pkgver=3.5.0
+pkgrel=1
+pkgdesc='A very simple, yet robust, Python interface to the R Programming Language'
+arch=(x86_64)
+url='https://rpy2.github.io/'
+license=(MPL GPL LGPL)
+depends=(python-cffi python-numpy python-tzlocal python-jinja r)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+optdepends=('python-pandas: conversion between rpy and pandas')
+source=(https://pypi.io/packages/source/r/rpy2/rpy2-$pkgver.tar.gz)
+sha256sums=('4d8a20253320ae3e402ec20d56640772bdc27731bd14f7d0475a95d86e7cd1c7')
+
+build() {
+  cd rpy2-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd rpy2-$pkgver
+  PYTHONPATH="$PWD"/`echo build/lib.*` \
+  pytest -v -k 'not test_rendertofile and not test_rendertobytes_plot' # Skip test that segfaults in build server
+}
+
+package() {
+  cd rpy2-$pkgver
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list