[arch-commits] Commit in (21 files)

Daniel M. Capella polyzen at gemini.archlinux.org
Thu Jan 13 03:36:26 UTC 2022


    Date: Thursday, January 13, 2022 @ 03:36:25
  Author: polyzen
Revision: 1101785

upgpkg: ipython 8.0.0-1

Requires stack-data, which requires the rest.

Added:
  python-asttokens/
  python-asttokens/repos/
  python-asttokens/trunk/
  python-asttokens/trunk/PKGBUILD
  python-executing/
  python-executing/repos/
  python-executing/trunk/
  python-executing/trunk/PKGBUILD
  python-littleutils/
  python-littleutils/repos/
  python-littleutils/trunk/
  python-littleutils/trunk/PKGBUILD
  python-pure-eval/
  python-pure-eval/repos/
  python-pure-eval/trunk/
  python-pure-eval/trunk/PKGBUILD
  python-stack-data/
  python-stack-data/repos/
  python-stack-data/trunk/
  python-stack-data/trunk/PKGBUILD
Modified:
  ipython/trunk/PKGBUILD

-----------------------------------+
 ipython/trunk/PKGBUILD            |   40 ++++++++++++++++++++-------------
 python-asttokens/trunk/PKGBUILD   |   42 +++++++++++++++++++++++++++++++++++
 python-executing/trunk/PKGBUILD   |   43 ++++++++++++++++++++++++++++++++++++
 python-littleutils/trunk/PKGBUILD |   36 ++++++++++++++++++++++++++++++
 python-pure-eval/trunk/PKGBUILD   |   42 +++++++++++++++++++++++++++++++++++
 python-stack-data/trunk/PKGBUILD  |   43 ++++++++++++++++++++++++++++++++++++
 6 files changed, 231 insertions(+), 15 deletions(-)

Modified: ipython/trunk/PKGBUILD
===================================================================
--- ipython/trunk/PKGBUILD	2022-01-13 03:34:16 UTC (rev 1101784)
+++ ipython/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -6,7 +6,7 @@
 # Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
 
 pkgname=ipython
-pkgver=7.31.0
+pkgver=8.0.0
 pkgrel=1
 pkgdesc="An enhanced Interactive Python shell."
 arch=('any')
@@ -15,16 +15,17 @@
 depends=('python' 'python-traitlets' 'python-pexpect' 'sqlite'
          'python-pickleshare' 'python-prompt_toolkit'
          'python-jedi' 'python-pygments' 'python-backcall'
-         'python-matplotlib-inline')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-requests' 'python-testpath'
-              'jupyter-nbformat' 'python-ipykernel' 'python-numpy'
-              'python-pytest-trio' 'python-matplotlib')
+         'python-matplotlib-inline' 'python-black' 'python-stack-data')
+makedepends=('python-build' 'python-install' 'python-setuptools' 'python-wheel')
+# texlive-bin checkdep excluded due to test_latex_to_png_color failure
+checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-testpath'
+              'jupyter-nbformat' 'python-ipykernel' 'python-numpy' 'python-trio'
+              'python-matplotlib' 'python-curio' 'python-pandas' 'tcsh')
 source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
-        "https://www.packal.org/sites/default/files/public/styles/icon_large/public/workflow-files/nkeimipynbworkflow/icon/icon.png")
-sha256sums=('346c74db7312c41fa566d3be45d2e759a528dcc2994fe48aac1a03a70cd668a3'
+        "IPython-icon.png::https://www.packal.org/sites/default/files/public/styles/icon_large/public/workflow-files/nkeimipynbworkflow/icon/icon.png")
+sha256sums=('004a0d05aeecd32adec4841b6e2586d5ca35785b1477db4d8333a39333e0ce98'
             '3c44a6fa1e3a8afc24754c90469404770b639cb960361988999a4cdd677699d8')
-b2sums=('5debac9a1011cc6541a2ce97df5d8793465ce4c289d1293c33c29eacc23cbd2271f0a8d7362c3445a88d080edefd85046aebc8782cd930c3dd8b6837ec682bf6'
+b2sums=('8844372c423c4b33a2a77b376c033aa00a4d44d1735cad42c4c85b05950370fcafea109025f4f02d124643656673ebf45ef27f78a93d31083b94e13d9364b32c'
         'd445e2bc7a037db8715ea103611720e965987e155c32e445b0ef783e519fca8a0301b16c5763fd9a5d8d169c3b0d7b4db6c0bd0f9772842258b135dcb1d6d5a2')
 
 # confirm that an update does not break sage?
@@ -31,24 +32,33 @@
 
 build() {
   cd $pkgname-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
   cd $pkgname-$pkgver
-  # Exclude minor test failures with Python 3.10
-  pytest -k 'not test_magic_arguments and not test_pinfo_docstring_if_detail_and_no_source and not test_pprint_heap_allocated_type'
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m install --optimize=1 dist/*.whl
+  test-env/bin/python -m pytest
 }
 
 package() {
   cd $pkgname-$pkgver
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython/LICENSE"
+  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
 
+  # https://github.com/FFY00/python-install/pull/6
+  chmod +x "$pkgdir"/usr/bin/*
+
   cd "examples/IPython Kernel"
   # FS#45120
   sed -i 's/gnome-netstatus-idle/ipython/' ipython.desktop
   install -Dm644 -t "$pkgdir/usr/share/applications" ipython.desktop
   # FS#47046
-  install -Dm644 "$srcdir/icon.png" "$pkgdir/usr/share/pixmaps/ipython.png"
+  install -Dm644 "$srcdir/IPython-icon.png" "$pkgdir/usr/share/pixmaps/ipython.png"
+
+  # 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"/$pkgname-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Added: python-asttokens/trunk/PKGBUILD
===================================================================
--- python-asttokens/trunk/PKGBUILD	                        (rev 0)
+++ python-asttokens/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -0,0 +1,42 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=asttokens
+pkgname=python-asttokens
+pkgver=2.0.5
+pkgrel=2
+pkgdesc='Get the currently executing AST node of a frame, and other information'
+arch=('any')
+url=https://github.com/alexmojaki/executing
+license=('Apache')
+depends=('python-six')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-astroid' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('9a54c114f02c7a9480d56550932546a3f1fe71d8a02f1bc7ccd0ee3ee35cf4d5')
+b2sums=('44fd821230dbec4b2e4182872bd3509becb4669c6c1d3a143a33a86cd2b8d7fd94e8cee77390834475d9290ac3723735a7d6ba3b3695758a89c46a106a56501a')
+
+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 install --optimize=1 dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python -m install --optimize=1 --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"/$_name-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Added: python-executing/trunk/PKGBUILD
===================================================================
--- python-executing/trunk/PKGBUILD	                        (rev 0)
+++ python-executing/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -0,0 +1,43 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=executing
+pkgname=python-executing
+pkgver=0.8.2
+pkgrel=2
+pkgdesc='Get the currently executing AST node of a frame, and other information'
+arch=('any')
+url=https://github.com/alexmojaki/executing
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-asttokens' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('c23bf42e9a7b9b212f185b1b2c3c91feb895963378887bb10e64a2e612ec0023')
+b2sums=('2e966b8f2248af7be2f4c329cf2a04a9ca49fef785c0fb3c5c3280586dee28f737b78902cdd5a2ef3de61a7864df8760cd78386004f602d439035437a9237870')
+
+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 install --optimize=1 dist/*.whl
+  test-env/bin/python tests/test_main.py
+  test-env/bin/python -m pytest tests/test_pytest.py
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python -m install --optimize=1 --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"/$_name-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Added: python-littleutils/trunk/PKGBUILD
===================================================================
--- python-littleutils/trunk/PKGBUILD	                        (rev 0)
+++ python-littleutils/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Jose Riha <jose1711 gmail com>
+
+_name=littleutils
+pkgname=python-littleutils
+pkgver=0.2.2
+pkgrel=3
+pkgdesc='Small personal collection of python utility functions'
+arch=('any')
+url=https://github.com/alexmojaki/littleutils
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
+        'littleutils-LICENSE::https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE')
+sha256sums=('e6cae3a4203e530d51c9667ed310ffe3b1948f2876e3d69605b3de4b7d96916f'
+            'dfe14f8798c400cbcc85bb4536a686c6fcf3086b3446c3f7c7054a2bcd73ca6a')
+b2sums=('80aec2c133e39eb0e18c948b15d475e60842689fd0e758c43511a8b014648d7c9e843182e2a87c0b3f9933f748340f2059653f0885cf416edbc5a60457c70629'
+        'e44ad793561d875774b4af672b66ee48156279a99d23a4c2d24425b33adf6fa6cc0c2abc6f99302b435da198b3525c4107f56bbed06155162712e1bd9b13e62e')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  python littleutils/__init__.py
+}
+
+package() {
+  install -Dm644 littleutils-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Added: python-pure-eval/trunk/PKGBUILD
===================================================================
--- python-pure-eval/trunk/PKGBUILD	                        (rev 0)
+++ python-pure-eval/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -0,0 +1,42 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=pure_eval
+pkgname=python-pure-eval
+pkgver=0.2.1
+pkgrel=2
+pkgdesc='Safely evaluate AST nodes without side effects'
+arch=('any')
+url=https://github.com/alexmojaki/pure_eval
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('0f04483b16c9429532d2c0ddc96e2b3bb6b2dc37a2bfb0e986248dbfd0b78873')
+b2sums=('6907cf2fc2a7118274a80dacdebeae163be57cc31086bc66f8ad9960f4624accde78149db9098bfba902774b367e2e0e9c5aac53c4e75119465d5f07cabbf17d')
+
+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 install --optimize=1 dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python -m install --optimize=1 --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"/$_name-$pkgver.dist-info/LICENSE.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+# vim:set ts=2 sw=2 et:

Added: python-stack-data/trunk/PKGBUILD
===================================================================
--- python-stack-data/trunk/PKGBUILD	                        (rev 0)
+++ python-stack-data/trunk/PKGBUILD	2022-01-13 03:36:25 UTC (rev 1101785)
@@ -0,0 +1,43 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=stack_data
+pkgname=python-stack-data
+pkgver=0.1.3
+pkgrel=2
+pkgdesc='Extract data from python stack frames and tracebacks for informative displays'
+arch=('any')
+url=https://github.com/alexmojaki/stack_data
+license=('MIT')
+depends=('python-asttokens' 'python-executing' 'python-pure-eval')
+makedepends=('python-build' 'python-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-littleutils' 'python-pygments' 'python-pytest'
+              'python-typeguard')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('5cb2aff8164a81901160078ea2f5e39de978f08c96ac69e552a5c5345f892a81')
+b2sums=('8d60f7c589f75dc8362c25ce88c3d46935768033373fd22846e81cce26609c8137ff64d346904ed38181dc27d24e14ed4c4d0217a1229881b6f7373ea359161f')
+
+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 install --optimize=1 dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd "$_name-$pkgver"
+  python -m install --optimize=1 --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"/$_name-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list