From 2cecf6de04c7d77db899a073d71ab454765e9153 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 14 Feb 2022 10:10:22 -0500 Subject: [PATCH 1/5] New package: python3-pure_eval-0.2.2 --- srcpkgs/python3-pure_eval/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-pure_eval/template diff --git a/srcpkgs/python3-pure_eval/template b/srcpkgs/python3-pure_eval/template new file mode 100644 index 000000000000..d1c86a21d82d --- /dev/null +++ b/srcpkgs/python3-pure_eval/template @@ -0,0 +1,19 @@ +# Template file for 'python3-pure_eval' +pkgname=python3-pure_eval +version=0.2.2 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3" +checkdepends="python3-pytest" +short_desc="Safely evaluate Python AST nodes without side effects" +maintainer="Andrew J. Hesford " +license="MIT" +homepage="https://github.com/alexmojaki/pure_eval" +distfiles="${PYPI_SITE}/p/pure_eval/pure_eval-${version}.tar.gz" +checksum=2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3 + +post_install() { + vlicense LICENSE.txt +} From 5c564bc98368b2b5535ea215445a18f090077df9 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 14 Feb 2022 10:14:13 -0500 Subject: [PATCH 2/5] New package: python3-executing-0.8.2 --- srcpkgs/python3-executing/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-executing/template diff --git a/srcpkgs/python3-executing/template b/srcpkgs/python3-executing/template new file mode 100644 index 000000000000..fe9b1f781ab8 --- /dev/null +++ b/srcpkgs/python3-executing/template @@ -0,0 +1,23 @@ +# Template file for 'python3-executing' +pkgname=python3-executing +version=0.8.2 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3" +checkdepends="python3-pytest python3-asttokens $depends" +short_desc="Get information about what a Python frame is currently doing" +maintainer="Andrew J. Hesford " +license="MIT" +homepage="https://github.com/alexmojaki/executing" +distfiles="${PYPI_SITE}/e/executing/executing-${version}.tar.gz" +checksum=c23bf42e9a7b9b212f185b1b2c3c91feb895963378887bb10e64a2e612ec0023 + +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" python3 tests/test_main.py +} + +post_install() { + vlicense LICENSE.txt +} From bd9e2c7fd20cf86803bea2729117241e08d9ca25 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 14 Feb 2022 10:17:17 -0500 Subject: [PATCH 3/5] New package: python3-asttokens-2.0.5 --- srcpkgs/python3-asttokens/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python3-asttokens/template diff --git a/srcpkgs/python3-asttokens/template b/srcpkgs/python3-asttokens/template new file mode 100644 index 000000000000..3f5eec09c28d --- /dev/null +++ b/srcpkgs/python3-asttokens/template @@ -0,0 +1,15 @@ +# Template file for 'python3-asttokens' +pkgname=python3-asttokens +version=2.0.5 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3-six" +checkdepends="python3-pytest python3-astroid $depends" +short_desc="Annotate Python AST with source text and token information" +maintainer="Andrew J. Hesford " +license="Apache-2.0" +homepage="https://github.com/gristlabs/asttokens" +distfiles="${PYPI_SITE}/a/asttokens/asttokens-${version}.tar.gz" +checksum=9a54c114f02c7a9480d56550932546a3f1fe71d8a02f1bc7ccd0ee3ee35cf4d5 From 751b2de56cf1e5d9fc7d343997dca8134c9307bd Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 14 Feb 2022 10:21:01 -0500 Subject: [PATCH 4/5] New package: python3-stack_data-0.1.4 --- srcpkgs/python3-stack_data/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-stack_data/template diff --git a/srcpkgs/python3-stack_data/template b/srcpkgs/python3-stack_data/template new file mode 100644 index 000000000000..da46ef069e2a --- /dev/null +++ b/srcpkgs/python3-stack_data/template @@ -0,0 +1,20 @@ +# Template file for 'python3-stack_data' +pkgname=python3-stack_data +version=0.1.4 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3-executing python3-asttokens python3-pure_eval" +short_desc="Module to extract data from Python stack frames and tracebacks" +maintainer="Andrew J. Hesford " +license="MIT" +homepage="https://github.com/alexmojaki/stack_data" +distfiles="${PYPI_SITE}/s/stack_data/stack_data-${version}.tar.gz" +checksum=7769ed2482ce0030e00175dd1bf4ef1e873603b6ab61cd3da443b410e64e9477 +# Tests require unpackaged dependencies +make_check=no + +post_install() { + vlicense LICENSE.txt +} From 20220db450e3c8432fadc58d23593406e6272e20 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 14 Feb 2022 10:47:31 -0500 Subject: [PATCH 5/5] python3-ipython: update to 8.0.1. --- srcpkgs/python3-ipython/template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python3-ipython/template b/srcpkgs/python3-ipython/template index cdb2bdd08161..5d11c8a9de90 100644 --- a/srcpkgs/python3-ipython/template +++ b/srcpkgs/python3-ipython/template @@ -1,22 +1,22 @@ # Template file for 'python3-ipython' pkgname=python3-ipython -version=7.31.0 +version=8.0.1 revision=1 wrksrc="ipython-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-setuptools python3-jedi python3-decorator python3-pickleshare python3-traitlets python3-prompt_toolkit python3-Pygments python3-backcall - python3-matplotlib-inline python3-pexpect" -checkdepends="$depends python3-pytest python3-nose python3-matplotlib + python3-matplotlib-inline python3-pexpect python3-stack_data" +checkdepends="python3-pytest $depends python3-matplotlib python3-Pillow python3-requests python3-testpath python3-numpy python3-ipython_ipykernel - python3-jupyter_nbformat python3-Pygments python3-Pillow" + python3-jupyter_nbformat python3-Pygments" short_desc="Enhanced interactive Python3 shell" maintainer="Andrew J. Hesford " license="BSD-3-Clause" homepage="https://ipython.org/" distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz" -checksum=346c74db7312c41fa566d3be45d2e759a528dcc2994fe48aac1a03a70cd668a3 +checksum=ab564d4521ea8ceaac26c3a2c6e5ddbca15c8848fd5a5cc325f960da88d42974 conflicts="python-ipython<=5.8.0_2" do_check() { @@ -26,7 +26,8 @@ do_check() { not test_deduplicate_completions and \ not test_magic_arguments and \ not test_pinfo_docstring_if_detail_and_no_source and \ - not test_pprint_heap_allocated_type" + not test_pprint_heap_allocated_type and \ + not test_system_interrupt and not test_code_from_file" } post_install() {