Date: Tuesday, September 6, 2022 @ 04:46:50 Author: polyzen Revision: 1294167
archrelease: copy trunk to community-any Added: python-matplotlib-inline/repos/community-any/PKGBUILD (from rev 1294166, python-matplotlib-inline/trunk/PKGBUILD) Deleted: python-matplotlib-inline/repos/community-any/PKGBUILD ----------+ PKGBUILD | 82 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 38 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-09-06 04:46:30 UTC (rev 1294166) +++ PKGBUILD 2022-09-06 04:46:50 UTC (rev 1294167) @@ -1,38 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> -# Maintainer: Bruno Pagani <archa...@archlinux.org> - -_name=matplotlib-inline -pkgname=python-matplotlib-inline -pkgver=0.1.6 -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=('f887e5f10ba98e8d2b150ddcf4702c1e5f8b3a20005eb0f74bfdbd360ee6f304') -b2sums=('3c8579660c36f790604c2ddcc99b587b8f54135f823d1a04b3e7ad5709bf7ba49cecd22da164c7bd6ffba4b84d61681f063ca036fba2d4a0cfaf81a9ea66a7e2') - -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 --optimize=1 --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: Copied: python-matplotlib-inline/repos/community-any/PKGBUILD (from rev 1294166, python-matplotlib-inline/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-09-06 04:46:50 UTC (rev 1294167) @@ -0,0 +1,44 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_name=matplotlib-inline +pkgname=python-matplotlib-inline +pkgver=0.1.6 +pkgrel=2 +pkgdesc='Inline Matplotlib backend for Jupyter' +arch=('any') +url=https://github.com/ipython/matplotlib-inline +license=('BSD') +depends=('python-traitlets') +makedepends=('python-build' 'python-installer' 'python-setuptools' + 'python-wheel') +checkdepends=('ipython' 'python-matplotlib') +optdepends=('python-matplotlib') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('f887e5f10ba98e8d2b150ddcf4702c1e5f8b3a20005eb0f74bfdbd360ee6f304') +b2sums=('3c8579660c36f790604c2ddcc99b587b8f54135f823d1a04b3e7ad5709bf7ba49cecd22da164c7bd6ffba4b84d61681f063ca036fba2d4a0cfaf81a9ea66a7e2') + +build() { + cd $_name-$pkgver + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd $_name-$pkgver + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -c 'from matplotlib_inline.backend_inline import show' +} + +package() { + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s "$site_packages"/matplotlib_inline-$pkgver.dist-info/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: