Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Updates to python test packages
@ 2023-06-05  6:41 tornaria
  2023-06-05 14:41 ` [PR PATCH] [Updated] " tornaria
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: tornaria @ 2023-06-05  6:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pytest
https://github.com/void-linux/void-packages/pull/44272

Updates to python test packages
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Mostly taken from #44160, this updates several packages used for testing:
 - python3-coverage: update to 7.2.7.
 - python3-flaky: update to 3.7.0.
 - python3-hypothesis: update to 6.76.0.
 - python3-mock: update to 5.0.2.
 - python3-pytest-asyncio: update to 0.21.0.
 - python3-pytest-cov: update to 4.1.0.
 - python3-pytest-mock: update to 3.10.0.
 - python3-pytest-xdist: enable tests.
 - python3-testpath: update to 0.6.0.

There are also 3 new packages:
 - python3-process-tests-2.1.2, needed to check pytest-cov
 - python3-pytest-console-scripts-1.4.1, need to check jupyter_server
 - python3-pytest-trio-0.8.0, need to check pytest-asyncio


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44272.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pytest-44272.patch --]
[-- Type: text/x-diff, Size: 22221 bytes --]

From ba4206d279bd1d6b2cceb5d852928cf916412b19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 18:48:26 -0300
Subject: [PATCH 01/12] python3-coverage: update to 7.2.7.

---
 .../patches/no-versioned-coverage.patch       | 16 --------
 srcpkgs/python3-coverage/template             | 41 ++++++++++++++-----
 2 files changed, 31 insertions(+), 26 deletions(-)
 delete mode 100644 srcpkgs/python3-coverage/patches/no-versioned-coverage.patch

diff --git a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch b/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
deleted file mode 100644
index fefbfc0af761..000000000000
--- a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -86,12 +86,9 @@ setup_args = dict(
-     },
- 
-     entry_points={
--        # Install a script as "coverage", and as "coverage[23]", and as
--        # "coverage-2.7" (or whatever).
-+        # Install a script as "coverage"
-         'console_scripts': [
-             'coverage = coverage.cmdline:main',
--            'coverage%d = coverage.cmdline:main' % sys.version_info[:1],
--            'coverage-%d.%d = coverage.cmdline:main' % sys.version_info[:2],
-         ],
-     },
- 
diff --git a/srcpkgs/python3-coverage/template b/srcpkgs/python3-coverage/template
index 223f93ac4447..cc7659f521ed 100644
--- a/srcpkgs/python3-coverage/template
+++ b/srcpkgs/python3-coverage/template
@@ -1,17 +1,38 @@
 # Template file for 'python3-coverage'
 pkgname=python3-coverage
-version=5.0.3
-revision=5
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=7.2.7
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 makedepends="python3-devel"
-depends="python3-setuptools"
-checkdepends="python3-pytest-xdist python3-flaky python3-unittest-mixins"
+checkdepends="$depends python3-pytest-xdist python3-flaky
+ python3-hypothesis"
 short_desc="Code coverage testing for Python3"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
-homepage="https://bitbucket.org/ned/coveragepy"
+homepage="https://github.com/nedbat/coveragepy"
+changelog="https://github.com/nedbat/coveragepy/raw/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
-checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
-# coverage executable needs to run for many tests
-make_check=no
+checksum=924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59
+
+pre_check() {
+	# required setup, see tox.ini
+	python igor.py zip_mods
+}
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip $testdir
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	python3 -m pytest -n $XBPS_MAKEJOBS
+}
+
+post_install() {
+	# remove versioned scripts (keep only /usr/bin/coverage)
+	rm ${DESTDIR}/usr/bin/coverage3
+	rm ${DESTDIR}/usr/bin/coverage-${py3_ver}
+}

From 4a0521ecb588168c1f83dd05a859de3cd34813dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:53:02 -0300
Subject: [PATCH 02/12] python3-flaky: update to 3.7.0.

---
 srcpkgs/python3-flaky/template | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-flaky/template b/srcpkgs/python3-flaky/template
index 8f80d84d295b..0082b1247b90 100644
--- a/srcpkgs/python3-flaky/template
+++ b/srcpkgs/python3-flaky/template
@@ -1,13 +1,15 @@
 # Template file for 'python3-flaky'
 pkgname=python3-flaky
-version=3.6.1
-revision=6
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.7.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3"
-short_desc="Plugin for nose/py.test that automatically reruns flaky tests (Python3)"
+short_desc="Plugin for nose or pytest that automatically reruns flaky tests"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/box/flaky"
+changelog="https://github.com/box/flaky/raw/master/HISTORY.rst"
 distfiles="${PYPI_SITE}/f/flaky/flaky-${version}.tar.gz"
-checksum=8cd5455bb00c677f787da424eaf8c4a58a922d0e97126d3085db5b279a98b698
+checksum=3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d
+make_check=no  # Tests are broken

From cfecf7a96b4ba7bdab44a90152de71882f30d011 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 01:58:55 -0300
Subject: [PATCH 03/12] python3-hypothesis: update to 6.76.0.

---
 srcpkgs/python3-hypothesis/template | 46 ++++++++++++++++++-----------
 1 file changed, 28 insertions(+), 18 deletions(-)

diff --git a/srcpkgs/python3-hypothesis/template b/srcpkgs/python3-hypothesis/template
index 30def188b53f..ad5e0a8c8578 100644
--- a/srcpkgs/python3-hypothesis/template
+++ b/srcpkgs/python3-hypothesis/template
@@ -1,32 +1,42 @@
 # Template file for 'python3-hypothesis'
 pkgname=python3-hypothesis
-version=6.75.0
+version=6.76.0
 revision=1
 build_wrksrc=hypothesis-python
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3-attrs python3-sortedcontainers"
 checkdepends="python3-pytest-xdist black python3-typing_extensions
- python3-pytz python3-numpy python3-pexpect python3-dateutil $depends"
+ python3-pytz python3-numpy python3-pexpect python3-dateutil
+ python3-pandas $depends"
 short_desc="Python3 library for property based testing"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="MPL-2.0"
 homepage="https://hypothesis.works/"
-changelog="https://hypothesis.readthedocs.io/en/latest/changes.html"
+changelog="https://github.com/HypothesisWorks/hypothesis/raw/master/hypothesis-python/docs/changes.rst"
 distfiles="https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-${version}.tar.gz"
-checksum=b5aae201b1758beb00c6d8eea3d860a461fe9f628c14d01f7a90a978b23e9178
+checksum=4564bbd860413af105dcdee6d5a9f8a1d08274f940266dfd2b45492d61f8b847
 
-do_check() {
+# disable tests that need python packages not available:
+#     libcst (codemods) dpcontracts lark fakeredis
+# test_registered_from_entrypoint needs to be installed
+make_check_args="
+ --ignore=tests/codemods/test_codemods.py
+ --ignore=tests/codemods/test_codemod_cli.py
+ --ignore=tests/dpcontracts/test_contracts.py
+ --ignore=tests/lark/test_grammar.py
+ --ignore=tests/patching/test_patching.py
+ --ignore=tests/redis/test_redis_exampledatabase.py
+ -k not(test_registered_from_entrypoint)
+"
+
+if [ "$XBPS_CHECK_PKGS" != full ]; then
 	# Manually run the tests that tox considers part of the "full" suite,
 	# less any related to packages not provided by Void.
-	#
-	# The tests in ghostwriter/test_ghostwriter_cli require a "hypothesis"
-	# entrypoint script, which does not exist until install time.
-	#
-	# The test_subTest_no_self function tries to run a separate
-	# interpreter, which will not see the local PYTHONPATH here.
-	PYTHONPATH=src python3 -m pytest -n $XBPS_MAKEJOBS \
-		-k 'not test_settings_alone and not test_subTest_no_self' \
-		--ignore=tests/ghostwriter/test_ghostwriter_cli.py \
-		tests/{cover,datetime,typing_extensions,ghostwriter}
-}
+	make_check_target="
+	 tests/cover tests/pytest
+	 tests/datetime
+	 tests/typing_extensions
+	 tests/ghostwriter
+	 "
+fi

From 015d6e1533d2599736f0db70587110e166443f54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:36:00 -0300
Subject: [PATCH 04/12] python3-mock: update to 5.0.2.

---
 srcpkgs/python3-mock/template | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/python3-mock/template b/srcpkgs/python3-mock/template
index b237c4789a27..5c44bb8e421e 100644
--- a/srcpkgs/python3-mock/template
+++ b/srcpkgs/python3-mock/template
@@ -1,23 +1,18 @@
 # Template file for 'python3-mock'
 pkgname=python3-mock
-version=4.0.3
-revision=4
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=5.0.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3"
 checkdepends="python3-pytest"
 short_desc="Python3 mock library"
 maintainer="Alex Childs <misuchiru03+void@gmail.com>"
 license="BSD-2-Clause"
 homepage="http://mock.readthedocs.org/en/latest/"
-changelog="https://mock.readthedocs.io/en/latest/changelog.html"
+changelog="https://github.com/testing-cabal/mock/raw/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
-checksum=7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc
-
-do_check() {
-	# The skipped test checks internal Python unittest behavior and fails
-	python3 -m pytest -k "not test_bool_not_called"
-}
+checksum=06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891
 
 post_install() {
 	vlicense LICENSE.txt

From 8cc40c13329bb093056d8c4d5c1591c0dc0e8c1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 19:06:45 -0300
Subject: [PATCH 05/12] New package: python3-process-tests-2.1.2

---
 srcpkgs/python3-process-tests/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-process-tests/template

diff --git a/srcpkgs/python3-process-tests/template b/srcpkgs/python3-process-tests/template
new file mode 100644
index 000000000000..75a7398f5d1b
--- /dev/null
+++ b/srcpkgs/python3-process-tests/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-process-tests'
+pkgname=python3-process-tests
+version=2.1.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
+depends="python3"
+short_desc="Tools for testing processes"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="BSD-2-Clause"
+homepage="https://github.com/ionelmc/python-process-tests"
+changelog="https://github.com/ionelmc/python-process-tests/blob/master/CHANGELOG.rst"
+distfiles="${PYPI_SITE}/p/process-tests/process-tests-${version}.tar.gz"
+checksum=a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba
+make_check=no  # no tests available
+
+post_install() {
+	vlicense LICENSE
+}

From fd5fc0a007c726910134b3d0144bdd116e6f8c75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 17:08:42 -0300
Subject: [PATCH 06/12] python3-pytest-asyncio: update to 0.21.0.

---
 srcpkgs/python3-pytest-asyncio/template | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/python3-pytest-asyncio/template b/srcpkgs/python3-pytest-asyncio/template
index 4e747d5c5b41..784f54619182 100644
--- a/srcpkgs/python3-pytest-asyncio/template
+++ b/srcpkgs/python3-pytest-asyncio/template
@@ -1,22 +1,16 @@
 # Template file for 'python3-pytest-asyncio'
 pkgname=python3-pytest-asyncio
-version=0.20.3
+version=0.21.0
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-pytest"
-checkdepends="$depends python3-hypothesis"
+checkdepends="$depends python3-flaky python3-hypothesis
+ python3-pytest-trio"
 short_desc="Pytest support for asyncio"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/pytest-dev/pytest-asyncio"
+changelog="https://github.com/pytest-dev/pytest-asyncio/raw/master/docs/source/reference/changelog.rst"
 distfiles="${PYPI_SITE}/p/pytest-asyncio/pytest-asyncio-${version}.tar.gz"
-checksum=83cbf01169ce3e8eb71c6c278ccb0574d1a7a3bb8eaaf5e50e0ad342afb33b36
-
-do_check() {
-	local skiptests="test_auto_mode_cmdline or \
-		test_strict_mode_ignores_trio_fixtures or \
-		test_unused_port_fixture or test_unused_port_factory_fixture"
-
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k "not (${skiptests})"
-}
+checksum=2b38a496aef56f56b0e87557ec313e11e1ab9276fc3863f6a7be0f1d0e415e1b

From 9f1dd541f3339fe721fc86cd0fe14eddcb1b21a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 23 May 2023 20:58:14 -0300
Subject: [PATCH 07/12] New package: python3-pytest-console-scripts-1.4.1

---
 .../python3-pytest-console-scripts/template   | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-console-scripts/template

diff --git a/srcpkgs/python3-pytest-console-scripts/template b/srcpkgs/python3-pytest-console-scripts/template
new file mode 100644
index 000000000000..26ccde4d03bb
--- /dev/null
+++ b/srcpkgs/python3-pytest-console-scripts/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-pytest-console-scripts'
+pkgname=python3-pytest-console-scripts
+version=1.4.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools_scm python3-wheel"
+depends="python3-pytest"
+checkdepends="$depends"
+short_desc="Pytest plugin for testing console scripts"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/kvas-it/pytest-console-scripts"
+changelog="https://github.com/kvas-it/pytest-console-scripts/raw/master/CHANGELOG.md"
+distfiles="${PYPI_SITE}/p/pytest-console-scripts/pytest-console-scripts-${version}.tar.gz"
+checksum=5a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895
+
+post_install() {
+	vlicense LICENSE
+}

From 7cbd7a5706a7a224b78661c0209efe4c9099f715 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 22:46:04 -0300
Subject: [PATCH 08/12] python3-pytest-cov: update to 4.1.0.

---
 srcpkgs/python3-pytest-cov/template | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/python3-pytest-cov/template b/srcpkgs/python3-pytest-cov/template
index 47dc36d44017..dc6b7f3b5db5 100644
--- a/srcpkgs/python3-pytest-cov/template
+++ b/srcpkgs/python3-pytest-cov/template
@@ -1,20 +1,33 @@
 # Template file for 'python3-pytest-cov'
 pkgname=python3-pytest-cov
-version=3.0.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=4.1.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3-pytest python3-coverage"
-checkdepends="$depends python3-toml python3-py python3-pluggy python3-packaging
- python3-more-itertools python3-attrs python3-six python3-parsing"
+checkdepends="$depends python3-fields python3-process-tests
+ python3-pytest-xdist python3-virtualenv"
 short_desc="Pytest plugin for measuring coverage"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
 homepage="https://pytest-cov.readthedocs.io/en/latest/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-cov/pytest-cov-${version}.tar.gz"
-checksum=e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470
-make_check=no # requires unpackaged xdist, fields, process_tests
+checksum=3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip $testdir
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	# coverage needs to be installed inside venv (?)
+	# see: https://github.com/pytest-dev/pytest-cov/issues/517
+	ln -s /${py3_sitelib}/coverage ${testdir}${py3_sitelib#usr}
+	python3 -m pytest -n $XBPS_MAKEJOBS
+}
 
 post_install() {
 	vlicense LICENSE

From 97a03902e127c69eae819b362053b9585fc623ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 20:40:38 -0300
Subject: [PATCH 09/12] python3-pytest-mock: update to 3.10.0.

---
 srcpkgs/python3-pytest-mock/template | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template
index 602337199a41..3ae4ec6cb3c0 100644
--- a/srcpkgs/python3-pytest-mock/template
+++ b/srcpkgs/python3-pytest-mock/template
@@ -1,28 +1,18 @@
 # Template file for 'python3-pytest-mock'
 pkgname=python3-pytest-mock
-version=3.9.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.10.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel python3-setuptools_scm"
 depends="python3-pytest"
-checkdepends="$depends"
-short_desc="Thin-wrapper around mock for easier use with py.test (Python3)"
+checkdepends="python3-pytest-asyncio python3-mock"
+short_desc="Thin-wrapper around mock for easier use with pytest"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/pytest-dev/pytest-mock/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-mock/main/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
-checksum=c899a0dcc8a5f22930acd020b500abd5f956911f326864a3b979e4866e14da82
-
-# pytest-mock requires pytest-mock to be installed so it'll always fail during
-# packaging
-make_check=no
-
-pre_build() {
-	vsed -i setup.py \
-		-e '/setup_requires=/d' \
-		-e "s|use_scm_version=.*|version='${version}',|"
-}
+checksum=fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f
 
 post_install() {
 	vlicense LICENSE

From fb679e2d1b10732f4a997af879cc59978ad2cedd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 02:54:48 -0300
Subject: [PATCH 10/12] New package: python3-pytest-trio-0.8.0

---
 srcpkgs/python3-pytest-trio/template | 36 ++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-trio/template

diff --git a/srcpkgs/python3-pytest-trio/template b/srcpkgs/python3-pytest-trio/template
new file mode 100644
index 000000000000..afae8a2db221
--- /dev/null
+++ b/srcpkgs/python3-pytest-trio/template
@@ -0,0 +1,36 @@
+# Template file for 'python3-pytest-trio'
+pkgname=python3-pytest-trio
+version=0.8.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
+depends="python3-trio python3-outcome python3-pytest"
+checkdepends="$depends python3-hypothesis"
+short_desc="Pytest plugin for trio"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT, Apache-2.0"
+homepage="https://github.com/python-trio/pytest-trio"
+changelog="https://github.com/python-trio/pytest-trio/raw/master/docs/source/history.rst"
+distfiles="${PYPI_SITE}/p/pytest-trio/pytest-trio-${version}.tar.gz"
+checksum=8363db6336a79e6c53375a2123a41ddbeccc4aa93f93788651641789a56fb52e
+
+post_patch() {
+	# Defining 'pytest_plugins' in a non-top-level conftest is no
+	# longer supported
+	mv pytest_trio/_tests/conftest.py .
+}
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip "${testdir}"
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	python3 -m pytest
+}
+
+post_install() {
+	vlicense LICENSE
+}

From fe08f39fca2545294120b19a58689db17b79e455 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 21:01:36 -0300
Subject: [PATCH 11/12] python3-pytest-xdist: enable tests.

---
 srcpkgs/python3-pytest-xdist/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/python3-pytest-xdist/template b/srcpkgs/python3-pytest-xdist/template
index b327702316a3..d64c3b6df8c7 100644
--- a/srcpkgs/python3-pytest-xdist/template
+++ b/srcpkgs/python3-pytest-xdist/template
@@ -5,6 +5,7 @@ revision=1
 build_style=python3-pep517
 hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
 depends="python3-pytest python3-execnet"
+checkdepends="$depends python3-filelock python3-pexpect python3-psutil"
 short_desc="Pytest plugin for distributed testing & loop-on-failures testing modes"
 maintainer="classabbyamp <void@placeviolette.net>"
 license="MIT"
@@ -12,8 +13,6 @@ homepage="https://github.com/pytest-dev/pytest-xdist"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-xdist/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-xdist/pytest-xdist-${version}.tar.gz"
 checksum=d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93
-# tests only work in tox
-make_check=no
 
 post_install() {
 	vlicense LICENSE

From 37a44fbb2b2f9e0a28888f402d352c6c17af0d0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 13:16:19 -0300
Subject: [PATCH 12/12] python3-testpath: update to 0.6.0.

---
 srcpkgs/python3-testpath/template | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-testpath/template b/srcpkgs/python3-testpath/template
index a439b95a62b0..3a3cf2f2647d 100644
--- a/srcpkgs/python3-testpath/template
+++ b/srcpkgs/python3-testpath/template
@@ -1,16 +1,18 @@
 # Template file for 'python3-testpath'
 pkgname=python3-testpath
-version=0.4.4
-revision=3
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=0.6.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-flit_core"
 depends="python3"
+checkdepends="python3-pytest"
 short_desc="Test utilities for code working with files and commands (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/jupyter/testpath"
+changelog="https://github.com/jupyter/testpath/raw/master/doc/history.rst"
 distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
-checksum=60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e
+checksum=2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f
 
 pre_build() {
 	rm -f testpath/cli-*.exe

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
@ 2023-06-05 14:41 ` tornaria
  2023-06-05 14:44 ` tornaria
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-05 14:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pytest
https://github.com/void-linux/void-packages/pull/44272

Updates to python test packages
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Mostly taken from #44160, this updates several packages used for testing:
 - python3-coverage: update to 7.2.7.
 - python3-flaky: update to 3.7.0.
 - python3-hypothesis: update to 6.76.0.
 - python3-mock: update to 5.0.2.
 - python3-pytest-asyncio: update to 0.21.0.
 - python3-pytest-cov: update to 4.1.0.
 - python3-pytest-mock: update to 3.10.0.
 - python3-pytest-xdist: enable tests.
 - python3-testpath: update to 0.6.0.

There are also 3 new packages:
 - python3-process-tests-2.1.2, needed to check pytest-cov
 - python3-pytest-console-scripts-1.4.1, need to check jupyter_server
 - python3-pytest-trio-0.8.0, need to check pytest-asyncio


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44272.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pytest-44272.patch --]
[-- Type: text/x-diff, Size: 22497 bytes --]

From 33487df92d7b891d84404eb3d3271af23a77b800 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 18:48:26 -0300
Subject: [PATCH 01/12] python3-coverage: update to 7.2.7.

---
 .../patches/no-versioned-coverage.patch       | 16 --------
 srcpkgs/python3-coverage/template             | 41 ++++++++++++++-----
 2 files changed, 31 insertions(+), 26 deletions(-)
 delete mode 100644 srcpkgs/python3-coverage/patches/no-versioned-coverage.patch

diff --git a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch b/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
deleted file mode 100644
index fefbfc0af761..000000000000
--- a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -86,12 +86,9 @@ setup_args = dict(
-     },
- 
-     entry_points={
--        # Install a script as "coverage", and as "coverage[23]", and as
--        # "coverage-2.7" (or whatever).
-+        # Install a script as "coverage"
-         'console_scripts': [
-             'coverage = coverage.cmdline:main',
--            'coverage%d = coverage.cmdline:main' % sys.version_info[:1],
--            'coverage-%d.%d = coverage.cmdline:main' % sys.version_info[:2],
-         ],
-     },
- 
diff --git a/srcpkgs/python3-coverage/template b/srcpkgs/python3-coverage/template
index 223f93ac4447..cc7659f521ed 100644
--- a/srcpkgs/python3-coverage/template
+++ b/srcpkgs/python3-coverage/template
@@ -1,17 +1,38 @@
 # Template file for 'python3-coverage'
 pkgname=python3-coverage
-version=5.0.3
-revision=5
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=7.2.7
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 makedepends="python3-devel"
-depends="python3-setuptools"
-checkdepends="python3-pytest-xdist python3-flaky python3-unittest-mixins"
+checkdepends="$depends python3-pytest-xdist python3-flaky
+ python3-hypothesis"
 short_desc="Code coverage testing for Python3"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
-homepage="https://bitbucket.org/ned/coveragepy"
+homepage="https://github.com/nedbat/coveragepy"
+changelog="https://github.com/nedbat/coveragepy/raw/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
-checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
-# coverage executable needs to run for many tests
-make_check=no
+checksum=924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59
+
+pre_check() {
+	# required setup, see tox.ini
+	python igor.py zip_mods
+}
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip $testdir
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	python3 -m pytest -n $XBPS_MAKEJOBS
+}
+
+post_install() {
+	# remove versioned scripts (keep only /usr/bin/coverage)
+	rm ${DESTDIR}/usr/bin/coverage3
+	rm ${DESTDIR}/usr/bin/coverage-${py3_ver}
+}

From 35f45041e40c7b1545ad7e233c9636ff0efc7dac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:53:02 -0300
Subject: [PATCH 02/12] python3-flaky: update to 3.7.0.

---
 srcpkgs/python3-flaky/template | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-flaky/template b/srcpkgs/python3-flaky/template
index 8f80d84d295b..0082b1247b90 100644
--- a/srcpkgs/python3-flaky/template
+++ b/srcpkgs/python3-flaky/template
@@ -1,13 +1,15 @@
 # Template file for 'python3-flaky'
 pkgname=python3-flaky
-version=3.6.1
-revision=6
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.7.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3"
-short_desc="Plugin for nose/py.test that automatically reruns flaky tests (Python3)"
+short_desc="Plugin for nose or pytest that automatically reruns flaky tests"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/box/flaky"
+changelog="https://github.com/box/flaky/raw/master/HISTORY.rst"
 distfiles="${PYPI_SITE}/f/flaky/flaky-${version}.tar.gz"
-checksum=8cd5455bb00c677f787da424eaf8c4a58a922d0e97126d3085db5b279a98b698
+checksum=3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d
+make_check=no  # Tests are broken

From 8a6e3c9c60f8fd408c548984d719dde40714454b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 01:58:55 -0300
Subject: [PATCH 03/12] python3-hypothesis: update to 6.76.0.

---
 srcpkgs/python3-hypothesis/template | 46 ++++++++++++++++++-----------
 1 file changed, 28 insertions(+), 18 deletions(-)

diff --git a/srcpkgs/python3-hypothesis/template b/srcpkgs/python3-hypothesis/template
index 30def188b53f..ad5e0a8c8578 100644
--- a/srcpkgs/python3-hypothesis/template
+++ b/srcpkgs/python3-hypothesis/template
@@ -1,32 +1,42 @@
 # Template file for 'python3-hypothesis'
 pkgname=python3-hypothesis
-version=6.75.0
+version=6.76.0
 revision=1
 build_wrksrc=hypothesis-python
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3-attrs python3-sortedcontainers"
 checkdepends="python3-pytest-xdist black python3-typing_extensions
- python3-pytz python3-numpy python3-pexpect python3-dateutil $depends"
+ python3-pytz python3-numpy python3-pexpect python3-dateutil
+ python3-pandas $depends"
 short_desc="Python3 library for property based testing"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="MPL-2.0"
 homepage="https://hypothesis.works/"
-changelog="https://hypothesis.readthedocs.io/en/latest/changes.html"
+changelog="https://github.com/HypothesisWorks/hypothesis/raw/master/hypothesis-python/docs/changes.rst"
 distfiles="https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-${version}.tar.gz"
-checksum=b5aae201b1758beb00c6d8eea3d860a461fe9f628c14d01f7a90a978b23e9178
+checksum=4564bbd860413af105dcdee6d5a9f8a1d08274f940266dfd2b45492d61f8b847
 
-do_check() {
+# disable tests that need python packages not available:
+#     libcst (codemods) dpcontracts lark fakeredis
+# test_registered_from_entrypoint needs to be installed
+make_check_args="
+ --ignore=tests/codemods/test_codemods.py
+ --ignore=tests/codemods/test_codemod_cli.py
+ --ignore=tests/dpcontracts/test_contracts.py
+ --ignore=tests/lark/test_grammar.py
+ --ignore=tests/patching/test_patching.py
+ --ignore=tests/redis/test_redis_exampledatabase.py
+ -k not(test_registered_from_entrypoint)
+"
+
+if [ "$XBPS_CHECK_PKGS" != full ]; then
 	# Manually run the tests that tox considers part of the "full" suite,
 	# less any related to packages not provided by Void.
-	#
-	# The tests in ghostwriter/test_ghostwriter_cli require a "hypothesis"
-	# entrypoint script, which does not exist until install time.
-	#
-	# The test_subTest_no_self function tries to run a separate
-	# interpreter, which will not see the local PYTHONPATH here.
-	PYTHONPATH=src python3 -m pytest -n $XBPS_MAKEJOBS \
-		-k 'not test_settings_alone and not test_subTest_no_self' \
-		--ignore=tests/ghostwriter/test_ghostwriter_cli.py \
-		tests/{cover,datetime,typing_extensions,ghostwriter}
-}
+	make_check_target="
+	 tests/cover tests/pytest
+	 tests/datetime
+	 tests/typing_extensions
+	 tests/ghostwriter
+	 "
+fi

From 18ab203a03bca3dde8df1c65a9682764f8552a4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:36:00 -0300
Subject: [PATCH 04/12] python3-mock: update to 5.0.2.

---
 srcpkgs/python3-mock/template | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/python3-mock/template b/srcpkgs/python3-mock/template
index b237c4789a27..5c44bb8e421e 100644
--- a/srcpkgs/python3-mock/template
+++ b/srcpkgs/python3-mock/template
@@ -1,23 +1,18 @@
 # Template file for 'python3-mock'
 pkgname=python3-mock
-version=4.0.3
-revision=4
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=5.0.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3"
 checkdepends="python3-pytest"
 short_desc="Python3 mock library"
 maintainer="Alex Childs <misuchiru03+void@gmail.com>"
 license="BSD-2-Clause"
 homepage="http://mock.readthedocs.org/en/latest/"
-changelog="https://mock.readthedocs.io/en/latest/changelog.html"
+changelog="https://github.com/testing-cabal/mock/raw/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
-checksum=7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc
-
-do_check() {
-	# The skipped test checks internal Python unittest behavior and fails
-	python3 -m pytest -k "not test_bool_not_called"
-}
+checksum=06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891
 
 post_install() {
 	vlicense LICENSE.txt

From 54393ad24f12fa8d537228427824eb7d772b59ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 19:06:45 -0300
Subject: [PATCH 05/12] New package: python3-process-tests-2.1.2

---
 srcpkgs/python3-process-tests/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-process-tests/template

diff --git a/srcpkgs/python3-process-tests/template b/srcpkgs/python3-process-tests/template
new file mode 100644
index 000000000000..75a7398f5d1b
--- /dev/null
+++ b/srcpkgs/python3-process-tests/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-process-tests'
+pkgname=python3-process-tests
+version=2.1.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
+depends="python3"
+short_desc="Tools for testing processes"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="BSD-2-Clause"
+homepage="https://github.com/ionelmc/python-process-tests"
+changelog="https://github.com/ionelmc/python-process-tests/blob/master/CHANGELOG.rst"
+distfiles="${PYPI_SITE}/p/process-tests/process-tests-${version}.tar.gz"
+checksum=a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba
+make_check=no  # no tests available
+
+post_install() {
+	vlicense LICENSE
+}

From 1374a46387b28ddff8c1b16bbd37a1e1a7d02d40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 17:08:42 -0300
Subject: [PATCH 06/12] python3-pytest-asyncio: update to 0.21.0.

---
 srcpkgs/python3-pytest-asyncio/template | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/srcpkgs/python3-pytest-asyncio/template b/srcpkgs/python3-pytest-asyncio/template
index 4e747d5c5b41..0f6f7ecfc36e 100644
--- a/srcpkgs/python3-pytest-asyncio/template
+++ b/srcpkgs/python3-pytest-asyncio/template
@@ -1,22 +1,24 @@
 # Template file for 'python3-pytest-asyncio'
 pkgname=python3-pytest-asyncio
-version=0.20.3
+version=0.21.0
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-pytest"
-checkdepends="$depends python3-hypothesis"
+checkdepends="$depends python3-flaky python3-hypothesis
+ python3-pytest-trio"
 short_desc="Pytest support for asyncio"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/pytest-dev/pytest-asyncio"
+changelog="https://github.com/pytest-dev/pytest-asyncio/raw/master/docs/source/reference/changelog.rst"
 distfiles="${PYPI_SITE}/p/pytest-asyncio/pytest-asyncio-${version}.tar.gz"
-checksum=83cbf01169ce3e8eb71c6c278ccb0574d1a7a3bb8eaaf5e50e0ad342afb33b36
+checksum=2b38a496aef56f56b0e87557ec313e11e1ab9276fc3863f6a7be0f1d0e415e1b
 
-do_check() {
-	local skiptests="test_auto_mode_cmdline or \
-		test_strict_mode_ignores_trio_fixtures or \
-		test_unused_port_fixture or test_unused_port_factory_fixture"
-
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k "not (${skiptests})"
-}
+if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
+	# these tests fail on CI (bind to a tcp address)
+	make_check_args="
+	 --deselect=tests/test_simple.py::test_unused_port_fixture
+	 --deselect=tests/test_simple.py::test_unused_port_factory_fixture
+	 "
+fi

From 345a93e831da8cea41be81caa1c9ab2c669cfbc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 23 May 2023 20:58:14 -0300
Subject: [PATCH 07/12] New package: python3-pytest-console-scripts-1.4.1

---
 .../python3-pytest-console-scripts/template   | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-console-scripts/template

diff --git a/srcpkgs/python3-pytest-console-scripts/template b/srcpkgs/python3-pytest-console-scripts/template
new file mode 100644
index 000000000000..26ccde4d03bb
--- /dev/null
+++ b/srcpkgs/python3-pytest-console-scripts/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-pytest-console-scripts'
+pkgname=python3-pytest-console-scripts
+version=1.4.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools_scm python3-wheel"
+depends="python3-pytest"
+checkdepends="$depends"
+short_desc="Pytest plugin for testing console scripts"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/kvas-it/pytest-console-scripts"
+changelog="https://github.com/kvas-it/pytest-console-scripts/raw/master/CHANGELOG.md"
+distfiles="${PYPI_SITE}/p/pytest-console-scripts/pytest-console-scripts-${version}.tar.gz"
+checksum=5a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895
+
+post_install() {
+	vlicense LICENSE
+}

From d4c517cb0b0ec14d82b0ebabd57a9a1cb3acc704 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 22:46:04 -0300
Subject: [PATCH 08/12] python3-pytest-cov: update to 4.1.0.

---
 srcpkgs/python3-pytest-cov/template | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/python3-pytest-cov/template b/srcpkgs/python3-pytest-cov/template
index 47dc36d44017..dc6b7f3b5db5 100644
--- a/srcpkgs/python3-pytest-cov/template
+++ b/srcpkgs/python3-pytest-cov/template
@@ -1,20 +1,33 @@
 # Template file for 'python3-pytest-cov'
 pkgname=python3-pytest-cov
-version=3.0.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=4.1.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
 depends="python3-pytest python3-coverage"
-checkdepends="$depends python3-toml python3-py python3-pluggy python3-packaging
- python3-more-itertools python3-attrs python3-six python3-parsing"
+checkdepends="$depends python3-fields python3-process-tests
+ python3-pytest-xdist python3-virtualenv"
 short_desc="Pytest plugin for measuring coverage"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
 homepage="https://pytest-cov.readthedocs.io/en/latest/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-cov/pytest-cov-${version}.tar.gz"
-checksum=e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470
-make_check=no # requires unpackaged xdist, fields, process_tests
+checksum=3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip $testdir
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	# coverage needs to be installed inside venv (?)
+	# see: https://github.com/pytest-dev/pytest-cov/issues/517
+	ln -s /${py3_sitelib}/coverage ${testdir}${py3_sitelib#usr}
+	python3 -m pytest -n $XBPS_MAKEJOBS
+}
 
 post_install() {
 	vlicense LICENSE

From fe6c6f76696dfd9e3da55974f1756eff2f9f57e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 20:40:38 -0300
Subject: [PATCH 09/12] python3-pytest-mock: update to 3.10.0.

---
 srcpkgs/python3-pytest-mock/template | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template
index 602337199a41..3ae4ec6cb3c0 100644
--- a/srcpkgs/python3-pytest-mock/template
+++ b/srcpkgs/python3-pytest-mock/template
@@ -1,28 +1,18 @@
 # Template file for 'python3-pytest-mock'
 pkgname=python3-pytest-mock
-version=3.9.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.10.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel python3-setuptools_scm"
 depends="python3-pytest"
-checkdepends="$depends"
-short_desc="Thin-wrapper around mock for easier use with py.test (Python3)"
+checkdepends="python3-pytest-asyncio python3-mock"
+short_desc="Thin-wrapper around mock for easier use with pytest"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/pytest-dev/pytest-mock/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-mock/main/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
-checksum=c899a0dcc8a5f22930acd020b500abd5f956911f326864a3b979e4866e14da82
-
-# pytest-mock requires pytest-mock to be installed so it'll always fail during
-# packaging
-make_check=no
-
-pre_build() {
-	vsed -i setup.py \
-		-e '/setup_requires=/d' \
-		-e "s|use_scm_version=.*|version='${version}',|"
-}
+checksum=fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f
 
 post_install() {
 	vlicense LICENSE

From 38dd2e842e6dc19db04505eff2218918ef3078f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 02:54:48 -0300
Subject: [PATCH 10/12] New package: python3-pytest-trio-0.8.0

---
 srcpkgs/python3-pytest-trio/template | 36 ++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-trio/template

diff --git a/srcpkgs/python3-pytest-trio/template b/srcpkgs/python3-pytest-trio/template
new file mode 100644
index 000000000000..afae8a2db221
--- /dev/null
+++ b/srcpkgs/python3-pytest-trio/template
@@ -0,0 +1,36 @@
+# Template file for 'python3-pytest-trio'
+pkgname=python3-pytest-trio
+version=0.8.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-wheel"
+depends="python3-trio python3-outcome python3-pytest"
+checkdepends="$depends python3-hypothesis"
+short_desc="Pytest plugin for trio"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT, Apache-2.0"
+homepage="https://github.com/python-trio/pytest-trio"
+changelog="https://github.com/python-trio/pytest-trio/raw/master/docs/source/history.rst"
+distfiles="${PYPI_SITE}/p/pytest-trio/pytest-trio-${version}.tar.gz"
+checksum=8363db6336a79e6c53375a2123a41ddbeccc4aa93f93788651641789a56fb52e
+
+post_patch() {
+	# Defining 'pytest_plugins' in a non-top-level conftest is no
+	# longer supported
+	mv pytest_trio/_tests/conftest.py .
+}
+
+do_check() {
+	# Running via PYTHONPATH breaks... venv works
+	# This could be moved to build-style/python3-pep517.sh
+	local testdir="${wrksrc}/.xbps-testdir"
+	rm -rf "${testdir}"
+	python3 -m venv --system-site-packages --without-pip "${testdir}"
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	python3 -m pytest
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 0d11e23e484378987cf9da4f7a47caa9fca8b819 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 21:01:36 -0300
Subject: [PATCH 11/12] python3-pytest-xdist: enable tests.

---
 srcpkgs/python3-pytest-xdist/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/python3-pytest-xdist/template b/srcpkgs/python3-pytest-xdist/template
index b327702316a3..d64c3b6df8c7 100644
--- a/srcpkgs/python3-pytest-xdist/template
+++ b/srcpkgs/python3-pytest-xdist/template
@@ -5,6 +5,7 @@ revision=1
 build_style=python3-pep517
 hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
 depends="python3-pytest python3-execnet"
+checkdepends="$depends python3-filelock python3-pexpect python3-psutil"
 short_desc="Pytest plugin for distributed testing & loop-on-failures testing modes"
 maintainer="classabbyamp <void@placeviolette.net>"
 license="MIT"
@@ -12,8 +13,6 @@ homepage="https://github.com/pytest-dev/pytest-xdist"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-xdist/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-xdist/pytest-xdist-${version}.tar.gz"
 checksum=d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93
-# tests only work in tox
-make_check=no
 
 post_install() {
 	vlicense LICENSE

From ce31b260c82de9aaecd927cdf416fcc7a80d23e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 13:16:19 -0300
Subject: [PATCH 12/12] python3-testpath: update to 0.6.0.

---
 srcpkgs/python3-testpath/template | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/python3-testpath/template b/srcpkgs/python3-testpath/template
index a439b95a62b0..3a3cf2f2647d 100644
--- a/srcpkgs/python3-testpath/template
+++ b/srcpkgs/python3-testpath/template
@@ -1,16 +1,18 @@
 # Template file for 'python3-testpath'
 pkgname=python3-testpath
-version=0.4.4
-revision=3
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=0.6.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-flit_core"
 depends="python3"
+checkdepends="python3-pytest"
 short_desc="Test utilities for code working with files and commands (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/jupyter/testpath"
+changelog="https://github.com/jupyter/testpath/raw/master/doc/history.rst"
 distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
-checksum=60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e
+checksum=2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f
 
 pre_build() {
 	rm -f testpath/cli-*.exe

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
  2023-06-05 14:41 ` [PR PATCH] [Updated] " tornaria
@ 2023-06-05 14:44 ` tornaria
  2023-06-05 17:26 ` [PR REVIEW] " mhmdanas
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-05 14:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#issuecomment-1576938030

Comment:
Force push: disabled two tests  in `python3-pytest-asyncio` which fail on CI (due to binding to a tcp address).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
  2023-06-05 14:41 ` [PR PATCH] [Updated] " tornaria
  2023-06-05 14:44 ` tornaria
@ 2023-06-05 17:26 ` mhmdanas
  2023-06-05 21:26 ` classabbyamp
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mhmdanas @ 2023-06-05 17:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#discussion_r1218376690

Comment:
This changelog is a redirect to raw.githubusercontent.com, fooling `xchangelog` from xtools into opening the changelog in the browser instead of in the pager. Using the redirect URL fixes this.
```suggestion
changelog="https://raw.githubusercontent.com/nedbat/coveragepy/master/CHANGES.rst"
```

Ditto for all the other changelogs you added.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (2 preceding siblings ...)
  2023-06-05 17:26 ` [PR REVIEW] " mhmdanas
@ 2023-06-05 21:26 ` classabbyamp
  2023-06-05 21:29 ` mhmdanas
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2023-06-05 21:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#discussion_r1218613282

Comment:
I think this could be fixed by telling curl within xchangelog to follow redirects when getting the mimetype

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (3 preceding siblings ...)
  2023-06-05 21:26 ` classabbyamp
@ 2023-06-05 21:29 ` mhmdanas
  2023-06-06  0:17 ` tornaria
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mhmdanas @ 2023-06-05 21:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

New review comment by mhmdanas on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#discussion_r1218615958

Comment:
I guess so, yeah, though I like to use the direct link anyway for consistency's sake (and because there's no good reason to add an extra redirect for everybody opening the URL).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (4 preceding siblings ...)
  2023-06-05 21:29 ` mhmdanas
@ 2023-06-06  0:17 ` tornaria
  2023-06-06  2:59 ` [PR PATCH] [Updated] " tornaria
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-06  0:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

New review comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#discussion_r1218734802

Comment:
Fair enough, thanks for the comments.

I just right-clicked and used "copy link" to get the link, and my xchangelog uses `curl -sL` to download so it works and I didn't realize this was a redirect. The server changes so it's not even a "free" redirect.

OTOH I'd worry about which URL is the most stable one of the two (for some reason gh itself links via the first one and then redirects) but I guess it's unlikely that either one changes.

I'll review everything and update all the changelog links (on the bright side, I think I got text changelogs for everything).

Moreover, I want to work out a little bit more on the templates that use a venv to check, to see if a similar workaround as in #44268 might work instead of a custom `do_check()`. Keep tuned.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (5 preceding siblings ...)
  2023-06-06  0:17 ` tornaria
@ 2023-06-06  2:59 ` tornaria
  2023-06-06  2:59 ` [PR REVIEW] " tornaria
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-06  2:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pytest
https://github.com/void-linux/void-packages/pull/44272

Updates to python test packages
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Mostly taken from #44160, this updates several packages used for testing:
 - python3-coverage: update to 7.2.7.
 - python3-flaky: update to 3.7.0.
 - python3-hypothesis: update to 6.76.0.
 - python3-mock: update to 5.0.2.
 - python3-pytest-asyncio: update to 0.21.0.
 - python3-pytest-cov: update to 4.1.0.
 - python3-pytest-mock: update to 3.10.0.
 - python3-pytest-xdist: enable tests.
 - python3-testpath: update to 0.6.0.

There are also 3 new packages:
 - python3-process-tests-2.1.2, needed to check pytest-cov
 - python3-pytest-console-scripts-1.4.1, need to check jupyter_server
 - python3-pytest-trio-0.8.0, need to check pytest-asyncio


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44272.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pytest-44272.patch --]
[-- Type: text/x-diff, Size: 22791 bytes --]

From 7c0ff02c6c653e6976f4d3aa26ceac65db33e626 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 18:48:26 -0300
Subject: [PATCH 01/12] python3-coverage: update to 7.2.7.

---
 .../patches/no-versioned-coverage.patch       | 16 --------
 srcpkgs/python3-coverage/template             | 40 ++++++++++++++-----
 2 files changed, 29 insertions(+), 27 deletions(-)
 delete mode 100644 srcpkgs/python3-coverage/patches/no-versioned-coverage.patch

diff --git a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch b/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
deleted file mode 100644
index fefbfc0af761..000000000000
--- a/srcpkgs/python3-coverage/patches/no-versioned-coverage.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -86,12 +86,9 @@ setup_args = dict(
-     },
- 
-     entry_points={
--        # Install a script as "coverage", and as "coverage[23]", and as
--        # "coverage-2.7" (or whatever).
-+        # Install a script as "coverage"
-         'console_scripts': [
-             'coverage = coverage.cmdline:main',
--            'coverage%d = coverage.cmdline:main' % sys.version_info[:1],
--            'coverage-%d.%d = coverage.cmdline:main' % sys.version_info[:2],
-         ],
-     },
- 
diff --git a/srcpkgs/python3-coverage/template b/srcpkgs/python3-coverage/template
index 223f93ac4447..33977ca41522 100644
--- a/srcpkgs/python3-coverage/template
+++ b/srcpkgs/python3-coverage/template
@@ -1,17 +1,35 @@
 # Template file for 'python3-coverage'
 pkgname=python3-coverage
-version=5.0.3
-revision=5
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=7.2.7
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 makedepends="python3-devel"
-depends="python3-setuptools"
-checkdepends="python3-pytest-xdist python3-flaky python3-unittest-mixins"
-short_desc="Code coverage testing for Python3"
+checkdepends="$depends python3-pytest-xdist python3-flaky python3-hypothesis"
+short_desc="Code coverage tool for Python"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
-homepage="https://bitbucket.org/ned/coveragepy"
+homepage="https://github.com/nedbat/coveragepy"
+changelog="https://raw.githubusercontent.com/nedbat/coveragepy/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
-checksum=77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef
-# coverage executable needs to run for many tests
-make_check=no
+checksum=924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59
+
+pre_check() {
+	# required setup, see tox.ini
+	python igor.py zip_mods
+}
+
+do_check() {
+	# Running via PYTHONPATH breaks a few tests so we use a venv
+	local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
+	python3 -m venv --system-site-packages --without-pip "${testdir}"
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	python3 -m pytest -n ${XBPS_MAKEJOBS}
+}
+
+post_install() {
+	# remove versioned scripts (keep only /usr/bin/coverage)
+	rm ${DESTDIR}/usr/bin/coverage3
+	rm ${DESTDIR}/usr/bin/coverage-${py3_ver}
+}

From e18e94d83ab8afb9812a021fc9d225d791b80524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:53:02 -0300
Subject: [PATCH 02/12] python3-flaky: update to 3.7.0.

---
 srcpkgs/python3-flaky/template | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-flaky/template b/srcpkgs/python3-flaky/template
index 8f80d84d295b..5d1bbe305358 100644
--- a/srcpkgs/python3-flaky/template
+++ b/srcpkgs/python3-flaky/template
@@ -1,13 +1,15 @@
 # Template file for 'python3-flaky'
 pkgname=python3-flaky
-version=3.6.1
-revision=6
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.7.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 depends="python3"
-short_desc="Plugin for nose/py.test that automatically reruns flaky tests (Python3)"
+short_desc="Plugin for nose or pytest that automatically reruns flaky tests"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/box/flaky"
+changelog="https://raw.githubusercontent.com/box/flaky/master/HISTORY.rst"
 distfiles="${PYPI_SITE}/f/flaky/flaky-${version}.tar.gz"
-checksum=8cd5455bb00c677f787da424eaf8c4a58a922d0e97126d3085db5b279a98b698
+checksum=3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d
+make_check=no  # Tests are broken

From e216baf8223f61951d1d3abc86c0c310ef4cba5b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 01:58:55 -0300
Subject: [PATCH 03/12] python3-hypothesis: update to 6.76.0.

---
 srcpkgs/python3-hypothesis/template | 49 +++++++++++++++++------------
 1 file changed, 29 insertions(+), 20 deletions(-)

diff --git a/srcpkgs/python3-hypothesis/template b/srcpkgs/python3-hypothesis/template
index 30def188b53f..66b297ddbc5e 100644
--- a/srcpkgs/python3-hypothesis/template
+++ b/srcpkgs/python3-hypothesis/template
@@ -1,32 +1,41 @@
 # Template file for 'python3-hypothesis'
 pkgname=python3-hypothesis
-version=6.75.0
+version=6.76.0
 revision=1
 build_wrksrc=hypothesis-python
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 depends="python3-attrs python3-sortedcontainers"
-checkdepends="python3-pytest-xdist black python3-typing_extensions
- python3-pytz python3-numpy python3-pexpect python3-dateutil $depends"
-short_desc="Python3 library for property based testing"
+checkdepends="python3-pytest-xdist black python3-typing_extensions python3-pytz
+ python3-numpy python3-pexpect python3-dateutil python3-pandas $depends"
+short_desc="Python library for property-based testing"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="MPL-2.0"
 homepage="https://hypothesis.works/"
-changelog="https://hypothesis.readthedocs.io/en/latest/changes.html"
+changelog="https://raw.githubusercontent.com/HypothesisWorks/hypothesis/master/hypothesis-python/docs/changes.rst"
 distfiles="https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-${version}.tar.gz"
-checksum=b5aae201b1758beb00c6d8eea3d860a461fe9f628c14d01f7a90a978b23e9178
+checksum=4564bbd860413af105dcdee6d5a9f8a1d08274f940266dfd2b45492d61f8b847
 
-do_check() {
+# - disable test files that need the following python packages (not available)
+#     libcst dpcontracts lark fakeredis
+# - test_registered_from_entrypoint requires an entrypoint to be installed
+make_check_args="
+ --ignore=tests/codemods/test_codemods.py
+ --ignore=tests/codemods/test_codemod_cli.py
+ --ignore=tests/dpcontracts/test_contracts.py
+ --ignore=tests/lark/test_grammar.py
+ --ignore=tests/patching/test_patching.py
+ --ignore=tests/redis/test_redis_exampledatabase.py
+ -k not(test_registered_from_entrypoint)
+"
+
+if [ "$XBPS_CHECK_PKGS" != full ]; then
 	# Manually run the tests that tox considers part of the "full" suite,
 	# less any related to packages not provided by Void.
-	#
-	# The tests in ghostwriter/test_ghostwriter_cli require a "hypothesis"
-	# entrypoint script, which does not exist until install time.
-	#
-	# The test_subTest_no_self function tries to run a separate
-	# interpreter, which will not see the local PYTHONPATH here.
-	PYTHONPATH=src python3 -m pytest -n $XBPS_MAKEJOBS \
-		-k 'not test_settings_alone and not test_subTest_no_self' \
-		--ignore=tests/ghostwriter/test_ghostwriter_cli.py \
-		tests/{cover,datetime,typing_extensions,ghostwriter}
-}
+	make_check_target="
+	 tests/cover tests/pytest
+	 tests/datetime
+	 tests/typing_extensions
+	 tests/ghostwriter
+	 "
+fi

From ee172a8f5aadc899f7cfcddcf4173a733cb440ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 23:36:00 -0300
Subject: [PATCH 04/12] python3-mock: update to 5.0.2.

---
 srcpkgs/python3-mock/template | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/python3-mock/template b/srcpkgs/python3-mock/template
index b237c4789a27..314da43a1740 100644
--- a/srcpkgs/python3-mock/template
+++ b/srcpkgs/python3-mock/template
@@ -1,23 +1,18 @@
 # Template file for 'python3-mock'
 pkgname=python3-mock
-version=4.0.3
-revision=4
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=5.0.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 depends="python3"
 checkdepends="python3-pytest"
-short_desc="Python3 mock library"
+short_desc="Python mock library"
 maintainer="Alex Childs <misuchiru03+void@gmail.com>"
 license="BSD-2-Clause"
 homepage="http://mock.readthedocs.org/en/latest/"
-changelog="https://mock.readthedocs.io/en/latest/changelog.html"
+changelog="https://raw.githubusercontent.com/testing-cabal/mock/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/m/mock/mock-${version}.tar.gz"
-checksum=7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc
-
-do_check() {
-	# The skipped test checks internal Python unittest behavior and fails
-	python3 -m pytest -k "not test_bool_not_called"
-}
+checksum=06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891
 
 post_install() {
 	vlicense LICENSE.txt

From 51cfd4bd599702d878da0c117a7d29b7a9a50a03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 19:06:45 -0300
Subject: [PATCH 05/12] New package: python3-process-tests-2.1.2

---
 srcpkgs/python3-process-tests/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-process-tests/template

diff --git a/srcpkgs/python3-process-tests/template b/srcpkgs/python3-process-tests/template
new file mode 100644
index 000000000000..3f129be9880b
--- /dev/null
+++ b/srcpkgs/python3-process-tests/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-process-tests'
+pkgname=python3-process-tests
+version=2.1.2
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+depends="python3"
+short_desc="Tools for testing processes"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="BSD-2-Clause"
+homepage="https://github.com/ionelmc/python-process-tests"
+changelog="https://raw.githubusercontent.com/ionelmc/python-process-tests/master/CHANGELOG.rst"
+distfiles="${PYPI_SITE}/p/process-tests/process-tests-${version}.tar.gz"
+checksum=a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba
+make_check=no  # no tests available
+
+post_install() {
+	vlicense LICENSE
+}

From bcec2bf8e6393ee52084f99f9ebf5a7c13341377 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 4 Jun 2023 17:08:42 -0300
Subject: [PATCH 06/12] python3-pytest-asyncio: update to 0.21.0.

---
 srcpkgs/python3-pytest-asyncio/template | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/python3-pytest-asyncio/template b/srcpkgs/python3-pytest-asyncio/template
index 4e747d5c5b41..ec0fdcb061f3 100644
--- a/srcpkgs/python3-pytest-asyncio/template
+++ b/srcpkgs/python3-pytest-asyncio/template
@@ -1,22 +1,23 @@
 # Template file for 'python3-pytest-asyncio'
 pkgname=python3-pytest-asyncio
-version=0.20.3
+version=0.21.0
 revision=1
 build_style=python3-pep517
 hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-pytest"
-checkdepends="$depends python3-hypothesis"
-short_desc="Pytest support for asyncio"
+checkdepends="$depends python3-flaky python3-hypothesis python3-pytest-trio"
+short_desc="Pytest plugin for asyncio"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/pytest-dev/pytest-asyncio"
+changelog="https://raw.githubusercontent.com/pytest-dev/pytest-asyncio/master/docs/source/reference/changelog.rst"
 distfiles="${PYPI_SITE}/p/pytest-asyncio/pytest-asyncio-${version}.tar.gz"
-checksum=83cbf01169ce3e8eb71c6c278ccb0574d1a7a3bb8eaaf5e50e0ad342afb33b36
+checksum=2b38a496aef56f56b0e87557ec313e11e1ab9276fc3863f6a7be0f1d0e415e1b
 
-do_check() {
-	local skiptests="test_auto_mode_cmdline or \
-		test_strict_mode_ignores_trio_fixtures or \
-		test_unused_port_fixture or test_unused_port_factory_fixture"
-
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -k "not (${skiptests})"
-}
+if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
+	# these tests fail on CI (bind to a tcp address)
+	make_check_args="
+	 --deselect=tests/test_simple.py::test_unused_port_fixture
+	 --deselect=tests/test_simple.py::test_unused_port_factory_fixture
+	 "
+fi

From d8d253c37695f528d1711c210b991937aae595eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 23 May 2023 20:58:14 -0300
Subject: [PATCH 07/12] New package: python3-pytest-console-scripts-1.4.1

---
 .../python3-pytest-console-scripts/template   | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-console-scripts/template

diff --git a/srcpkgs/python3-pytest-console-scripts/template b/srcpkgs/python3-pytest-console-scripts/template
new file mode 100644
index 000000000000..2c6281267898
--- /dev/null
+++ b/srcpkgs/python3-pytest-console-scripts/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-pytest-console-scripts'
+pkgname=python3-pytest-console-scripts
+version=1.4.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools_scm python3-wheel"
+depends="python3-pytest"
+checkdepends="$depends"
+short_desc="Pytest plugin for testing console scripts"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/kvas-it/pytest-console-scripts"
+changelog="https://raw.githubusercontent.com/kvas-it/pytest-console-scripts/master/CHANGELOG.md"
+distfiles="${PYPI_SITE}/p/pytest-console-scripts/pytest-console-scripts-${version}.tar.gz"
+checksum=5a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895
+
+post_install() {
+	vlicense LICENSE
+}

From 4744c54fff6df845970516d8105a777a3f63ad22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 22:46:04 -0300
Subject: [PATCH 08/12] python3-pytest-cov: update to 4.1.0.

---
 srcpkgs/python3-pytest-cov/template | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/python3-pytest-cov/template b/srcpkgs/python3-pytest-cov/template
index 47dc36d44017..1feb29dedaa0 100644
--- a/srcpkgs/python3-pytest-cov/template
+++ b/srcpkgs/python3-pytest-cov/template
@@ -1,20 +1,31 @@
 # Template file for 'python3-pytest-cov'
 pkgname=python3-pytest-cov
-version=3.0.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=4.1.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 depends="python3-pytest python3-coverage"
-checkdepends="$depends python3-toml python3-py python3-pluggy python3-packaging
- python3-more-itertools python3-attrs python3-six python3-parsing"
+checkdepends="$depends python3-fields python3-process-tests
+ python3-pytest-xdist python3-virtualenv"
 short_desc="Pytest plugin for measuring coverage"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
 license="MIT"
 homepage="https://pytest-cov.readthedocs.io/en/latest/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-cov/pytest-cov-${version}.tar.gz"
-checksum=e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470
-make_check=no # requires unpackaged xdist, fields, process_tests
+checksum=3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6
+
+do_check() {
+	# Running via PYTHONPATH breaks a few tests so we use a venv
+	local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
+	python3 -m venv --system-site-packages --without-pip "${testdir}"
+	local -x PATH="${testdir}/bin:${PATH}"
+	python3 -m installer dist/*.whl
+	# coverage needs to be installed inside venv
+	# see: https://github.com/pytest-dev/pytest-cov/issues/517
+	ln -s /${py3_sitelib}/coverage ${testdir}${py3_sitelib#usr}
+	python3 -m pytest -n ${XBPS_MAKEJOBS}
+}
 
 post_install() {
 	vlicense LICENSE

From e0e075e72479cb60524b43127e92c7c89e6b33f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 20:40:38 -0300
Subject: [PATCH 09/12] python3-pytest-mock: update to 3.10.0.

---
 srcpkgs/python3-pytest-mock/template | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/srcpkgs/python3-pytest-mock/template b/srcpkgs/python3-pytest-mock/template
index 602337199a41..abb1557f6655 100644
--- a/srcpkgs/python3-pytest-mock/template
+++ b/srcpkgs/python3-pytest-mock/template
@@ -1,28 +1,18 @@
 # Template file for 'python3-pytest-mock'
 pkgname=python3-pytest-mock
-version=3.9.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=3.10.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-pytest"
-checkdepends="$depends"
-short_desc="Thin-wrapper around mock for easier use with py.test (Python3)"
+checkdepends="python3-pytest-asyncio python3-mock"
+short_desc="Pytest plugin for mock"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/pytest-dev/pytest-mock/"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-mock/main/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
-checksum=c899a0dcc8a5f22930acd020b500abd5f956911f326864a3b979e4866e14da82
-
-# pytest-mock requires pytest-mock to be installed so it'll always fail during
-# packaging
-make_check=no
-
-pre_build() {
-	vsed -i setup.py \
-		-e '/setup_requires=/d' \
-		-e "s|use_scm_version=.*|version='${version}',|"
-}
+checksum=fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f
 
 post_install() {
 	vlicense LICENSE

From 5440aef635fd51eadfec162bf57cf362ede61290 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 5 Jun 2023 02:54:48 -0300
Subject: [PATCH 10/12] New package: python3-pytest-trio-0.8.0

---
 srcpkgs/python3-pytest-trio/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/python3-pytest-trio/template

diff --git a/srcpkgs/python3-pytest-trio/template b/srcpkgs/python3-pytest-trio/template
new file mode 100644
index 000000000000..4009a6de72c4
--- /dev/null
+++ b/srcpkgs/python3-pytest-trio/template
@@ -0,0 +1,26 @@
+# Template file for 'python3-pytest-trio'
+pkgname=python3-pytest-trio
+version=0.8.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+depends="python3-trio python3-outcome python3-pytest"
+checkdepends="$depends python3-hypothesis"
+short_desc="Pytest plugin for trio"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT, Apache-2.0"
+homepage="https://github.com/python-trio/pytest-trio"
+changelog="https://raw.githubusercontent.com/python-trio/pytest-trio/master/docs/source/history.rst"
+distfiles="${PYPI_SITE}/p/pytest-trio/pytest-trio-${version}.tar.gz"
+checksum=8363db6336a79e6c53375a2123a41ddbeccc4aa93f93788651641789a56fb52e
+make_check_pre="env PYTHONPATH=."
+
+post_patch() {
+	# Defining 'pytest_plugins' in a non-top-level conftest is no
+	# longer supported in pytest
+	mv pytest_trio/_tests/conftest.py .
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 1f158c89c07e15e364c529f1b874126e26e98f83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 29 May 2023 21:01:36 -0300
Subject: [PATCH 11/12] python3-pytest-xdist: enable tests.

---
 srcpkgs/python3-pytest-xdist/template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-pytest-xdist/template b/srcpkgs/python3-pytest-xdist/template
index b327702316a3..91a4f148cf5c 100644
--- a/srcpkgs/python3-pytest-xdist/template
+++ b/srcpkgs/python3-pytest-xdist/template
@@ -3,8 +3,9 @@ pkgname=python3-pytest-xdist
 version=3.3.1
 revision=1
 build_style=python3-pep517
-hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
+hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-pytest python3-execnet"
+checkdepends="$depends python3-filelock python3-pexpect python3-psutil"
 short_desc="Pytest plugin for distributed testing & loop-on-failures testing modes"
 maintainer="classabbyamp <void@placeviolette.net>"
 license="MIT"
@@ -12,8 +13,6 @@ homepage="https://github.com/pytest-dev/pytest-xdist"
 changelog="https://raw.githubusercontent.com/pytest-dev/pytest-xdist/master/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/p/pytest-xdist/pytest-xdist-${version}.tar.gz"
 checksum=d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93
-# tests only work in tox
-make_check=no
 
 post_install() {
 	vlicense LICENSE

From 16556d22d0687a311913574dc604dc8f83445984 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Wed, 24 May 2023 13:16:19 -0300
Subject: [PATCH 12/12] python3-testpath: update to 0.6.0.

---
 srcpkgs/python3-testpath/template | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-testpath/template b/srcpkgs/python3-testpath/template
index a439b95a62b0..ef041edb6a91 100644
--- a/srcpkgs/python3-testpath/template
+++ b/srcpkgs/python3-testpath/template
@@ -1,20 +1,23 @@
 # Template file for 'python3-testpath'
 pkgname=python3-testpath
-version=0.4.4
-revision=3
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=0.6.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-flit_core"
 depends="python3"
-short_desc="Test utilities for code working with files and commands (Python3)"
+checkdepends="python3-pytest"
+short_desc="Test utilities for Python code working with files and commands"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/jupyter/testpath"
+changelog="https://raw.githubusercontent.com/jupyter/testpath/master/doc/history.rst"
 distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
-checksum=60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e
+checksum=2f1b97e6442c02681ebe01bd84f531028a7caea1af3825000f52345c30285e0f
 
 pre_build() {
 	rm -f testpath/cli-*.exe
 }
+
 post_install() {
 	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (6 preceding siblings ...)
  2023-06-06  2:59 ` [PR PATCH] [Updated] " tornaria
@ 2023-06-06  2:59 ` tornaria
  2023-06-06  3:27 ` tornaria
  2023-06-09  1:46 ` [PR PATCH] [Closed]: " ahesford
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-06  2:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

New review comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#discussion_r1218805480

Comment:
All changelog entries are replaced by the direct link.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (7 preceding siblings ...)
  2023-06-06  2:59 ` [PR REVIEW] " tornaria
@ 2023-06-06  3:27 ` tornaria
  2023-06-09  1:46 ` [PR PATCH] [Closed]: " ahesford
  9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-06-06  3:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/44272#issuecomment-1577842799

Comment:
Major changes from previous version:
 - changelog entries are replaced by the direct link
 - explicitly depend on `python3-setuptools`, not just via `python3-wheel`
 - `python3-pytest-trio` no longer needs a venv for testing (uses the trick from #44268, i.e., set `PYTHONPATH=.`)
 - `python3-coverage` and `python3-pytest-cov` still test in a venv; if using `PYTHONPATH` some tests will fail

@ahesford comments welcome

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Closed]: Updates to python test packages
  2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
                   ` (8 preceding siblings ...)
  2023-06-06  3:27 ` tornaria
@ 2023-06-09  1:46 ` ahesford
  9 siblings, 0 replies; 11+ messages in thread
From: ahesford @ 2023-06-09  1:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]

There's a closed pull request on the void-packages repository

Updates to python test packages
https://github.com/void-linux/void-packages/pull/44272

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Mostly taken from #44160, this updates several packages used for testing:
 - python3-coverage: update to 7.2.7.
 - python3-flaky: update to 3.7.0.
 - python3-hypothesis: update to 6.76.0.
 - python3-mock: update to 5.0.2.
 - python3-pytest-asyncio: update to 0.21.0.
 - python3-pytest-cov: update to 4.1.0.
 - python3-pytest-mock: update to 3.10.0.
 - python3-pytest-xdist: enable tests.
 - python3-testpath: update to 0.6.0.

There are also 3 new packages:
 - python3-process-tests-2.1.2, needed to check pytest-cov
 - python3-pytest-console-scripts-1.4.1, need to check jupyter_server
 - python3-pytest-trio-0.8.0, need to check pytest-asyncio


<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-06-09  1:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05  6:41 [PR PATCH] Updates to python test packages tornaria
2023-06-05 14:41 ` [PR PATCH] [Updated] " tornaria
2023-06-05 14:44 ` tornaria
2023-06-05 17:26 ` [PR REVIEW] " mhmdanas
2023-06-05 21:26 ` classabbyamp
2023-06-05 21:29 ` mhmdanas
2023-06-06  0:17 ` tornaria
2023-06-06  2:59 ` [PR PATCH] [Updated] " tornaria
2023-06-06  2:59 ` [PR REVIEW] " tornaria
2023-06-06  3:27 ` tornaria
2023-06-09  1:46 ` [PR PATCH] [Closed]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).