[arch-commits] Commit in python-matplotlib-inline/repos/community-any (2 files)

Bruno Pagani archange at gemini.archlinux.org
Sat Nov 6 18:00:44 UTC 2021


    Date: Saturday, November 6, 2021 @ 18:00:43
  Author: archange
Revision: 1037663

archrelease: copy trunk to community-any

Added:
  python-matplotlib-inline/repos/community-any/PKGBUILD
    (from rev 1037662, python-matplotlib-inline/trunk/PKGBUILD)
Deleted:
  python-matplotlib-inline/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   76 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 38 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-06 18:00:15 UTC (rev 1037662)
+++ PKGBUILD	2021-11-06 18:00:43 UTC (rev 1037663)
@@ -1,38 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_name=matplotlib-inline
-pkgname=python-matplotlib-inline
-pkgver=0.1.2
-pkgrel=1
-pkgdesc='Inline Matplotlib backend for Jupyter'
-arch=('any')
-url=https://github.com/ipython/matplotlib-inline
-license=('BSD')
-depends=('python-traitlets')
-makedepends=('python-setuptools')
-checkdepends=('ipython' 'python-matplotlib')
-optdepends=('python-matplotlib')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('f41d5ff73c9f5385775d5c0bc13b424535c8402fe70ea8210f93e11f3683993e')
-b2sums=('361941d7454e4a9cc6dc7be6d34e48b2ac73a01db0fc341712708295ba922f4a1d94020f41569ea4c7192b8494ddb1187a43287f721fe4fc806d5d5ab1c5ef6d')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_name-$pkgver
-  mkdir -p temp
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  python setup.py install --skip-build --root=temp
-  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python -c 'from matplotlib_inline.backend_inline import show'
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-matplotlib-inline/repos/community-any/PKGBUILD (from rev 1037662, python-matplotlib-inline/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-06 18:00:43 UTC (rev 1037663)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_name=matplotlib-inline
+pkgname=python-matplotlib-inline
+pkgver=0.1.3
+pkgrel=1
+pkgdesc='Inline Matplotlib backend for Jupyter'
+arch=('any')
+url=https://github.com/ipython/matplotlib-inline
+license=('BSD')
+depends=('python-traitlets')
+makedepends=('python-setuptools')
+checkdepends=('ipython' 'python-matplotlib')
+optdepends=('python-matplotlib')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('a04bfba22e0d1395479f866853ec1ee28eea1485c1d69a6faf00dc3e24ff34ee')
+b2sums=('9f532fc46064c905ad50f4a6d39579848609790eef08d182a5765140781e87b38706221cab3451581627c73ae4e505afcf9c1a5f324aad5bfbf4441a4f95fd08')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python setup.py install --skip-build
+  test-env/bin/python -c 'from matplotlib_inline.backend_inline import show'
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list