From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] tox: update to 4.11.4, adopt.
Date: Sun, 31 Dec 2023 22:55:31 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48013@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
There is a new pull request by tornaria against master on the void-packages repository
https://github.com/tornaria/void-packages tox
https://github.com/void-linux/void-packages/pull/48013
tox: update to 4.11.4, adopt.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### 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/48013.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tox-48013.patch --]
[-- Type: text/x-diff, Size: 8055 bytes --]
From 3604f563c0f315188581d33b941623192404f5e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 31 Dec 2023 17:47:02 -0300
Subject: [PATCH 1/4] New package: python3-pyproject-api-1.6.1
---
srcpkgs/python3-pyproject-api/template | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 srcpkgs/python3-pyproject-api/template
diff --git a/srcpkgs/python3-pyproject-api/template b/srcpkgs/python3-pyproject-api/template
new file mode 100644
index 0000000000000..71ad0629e063f
--- /dev/null
+++ b/srcpkgs/python3-pyproject-api/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-pyproject-api'
+pkgname=python3-pyproject-api
+version=1.6.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="hatchling hatch-vcs"
+depends="python3-packaging"
+checkdepends="python3-pytest python3-pytest-mock python3-wheel"
+short_desc="API to interact with the python pyproject.toml based projects"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/tox-dev/pyproject-api"
+changelog="https://raw.githubusercontent.com/tox-dev/pyproject-api/main/docs/changelog.rst"
+distfiles="${PYPI_SITE}/p/pyproject-api/pyproject_api-${version}.tar.gz"
+checksum=1817dc018adc0d1ff9ca1ed8c60e1623d5aaca40814b953af14a9cf9a5cae538
+
+post_install() {
+ vlicense LICENSE
+}
From 7a1cf594f00580e8bdc8cdffaa65883cd4d8b31d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 31 Dec 2023 17:46:41 -0300
Subject: [PATCH 2/4] New package: python3-time-machine-2.13.0
---
srcpkgs/python3-time-machine/template | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 srcpkgs/python3-time-machine/template
diff --git a/srcpkgs/python3-time-machine/template b/srcpkgs/python3-time-machine/template
new file mode 100644
index 0000000000000..9754e5df92e11
--- /dev/null
+++ b/srcpkgs/python3-time-machine/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-time-machine'
+pkgname=python3-time-machine
+version=2.13.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+makedepends="python3-devel"
+depends="python3-dateutil"
+checkdepends="$depends python3-pytest"
+short_desc="Travel through time in your tests"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/adamchainz/time-machine"
+changelog="https://raw.githubusercontent.com/adamchainz/time-machine/main/CHANGELOG.rst"
+distfiles="https://github.com/adamchainz/time-machine/archive/refs/tags/${version}.tar.gz"
+checksum=a0892ada963bd16fdaf657d71ef9bec614931c467a935f3217bf08906fe3bd11
+
+post_install() {
+ vlicense LICENSE
+}
From 2107372a8e2a361177045f0f09f99f76698cae06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 31 Dec 2023 17:52:56 -0300
Subject: [PATCH 3/4] New package: python3-re-assert-1.1.0
---
srcpkgs/python3-re-assert/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-re-assert/template
diff --git a/srcpkgs/python3-re-assert/template b/srcpkgs/python3-re-assert/template
new file mode 100644
index 0000000000000..4e5a7aa78befa
--- /dev/null
+++ b/srcpkgs/python3-re-assert/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-re-assert'
+pkgname=python3-re-assert
+version=1.1.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+depends="python3-regex"
+checkdepends="$depends python3-pytest"
+short_desc="Show where your regex match assertion failed!"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="MIT"
+homepage="https://github.com/asottile/re-assert"
+distfiles="https://github.com/asottile/re-assert/archive/refs/tags/v${version}.tar.gz"
+checksum=01c4a849ed520923e4bab9afdf73b5f2698c4f92ad7f580ccb3f68ea79c69c0c
+
+post_install() {
+ vlicense LICENSE
+}
From 5a88d4e622100acb87691908d08d4ba71bda7fae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 31 Dec 2023 18:05:43 -0300
Subject: [PATCH 4/4] tox: update to 4.11.4, adopt.
---
srcpkgs/tox/patches/fix-testing.patch | 20 +++++++++++++
srcpkgs/tox/template | 42 +++++++++++++--------------
srcpkgs/tox/update | 2 +-
3 files changed, 41 insertions(+), 23 deletions(-)
create mode 100644 srcpkgs/tox/patches/fix-testing.patch
diff --git a/srcpkgs/tox/patches/fix-testing.patch b/srcpkgs/tox/patches/fix-testing.patch
new file mode 100644
index 0000000000000..011d4d1dfef55
--- /dev/null
+++ b/srcpkgs/tox/patches/fix-testing.patch
@@ -0,0 +1,20 @@
+diff --git a/src/tox/pytest.py b/src/tox/pytest.py
+index d7243bd8..c4d20e2d 100644
+--- a/src/tox/pytest.py
++++ b/src/tox/pytest.py
+@@ -16,7 +16,6 @@ from typing import TYPE_CHECKING, Any, Callable, Iterator, Protocol, Sequence, c
+
+ import pytest
+ from _pytest.fixtures import SubRequest
+-from devpi_process import IndexServer
+ from virtualenv.info import fs_supports_symlink
+
+ import tox.run
+@@ -476,6 +475,7 @@ def enable_pypi_server(monkeypatch: pytest.MonkeyPatch, url: str | None) -> None
+ def pypi_server(tmp_path_factory: pytest.TempPathFactory) -> Iterator[IndexServer]:
+ # takes around 2.5s
+ path = tmp_path_factory.mktemp("pypi")
++ from devpi_process import IndexServer
+ with IndexServer(path) as server:
+ server.create_index("empty", "volatile=False")
+ yield server
diff --git a/srcpkgs/tox/template b/srcpkgs/tox/template
index 3aa2420429413..232a63746d758 100644
--- a/srcpkgs/tox/template
+++ b/srcpkgs/tox/template
@@ -1,32 +1,30 @@
# Template file for 'tox'
pkgname=tox
-version=3.28.0
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
-depends="python3-filelock python3-packaging
- python3-pluggy python3-pytest python3-virtualenv"
-checkdepends="${depends} python3-pip python3-pytest-mock
- python3-flaky python3-pathlib2 python3-freezegun"
+version=4.11.4
+revision=1
+build_style=python3-pep517
+hostmakedepends="hatchling hatch-vcs"
+depends="python3-cachetools python3-chardet python3-colorama python3-filelock
+ python3-pyproject-api python3-virtualenv"
+checkdepends="$depends python3-distlib python3-flaky python3-psutil
+ python3-pytest python3-pytest-mock python3-pytest-xdist python3-re-assert
+ python3-time-machine python3-wheel"
short_desc="Generic virtualenv management and test command line tool"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="MIT"
-homepage="https://tox.wiki/en/legacy/"
-changelog="https://tox.wiki/en/legacy/changelog.html"
+homepage="https://tox.wiki/"
+changelog="https://raw.githubusercontent.com/tox-dev/tox/main/docs/changelog.rst"
distfiles="${PYPI_SITE}/t/tox/tox-${version}.tar.gz"
-checksum=d0d28f3fe6d6d7195c27f8b054c3e99d5451952b54abdae673b71609a581f640
+checksum=73a7240778fabf305aeb05ab8ea26e575e042ab5a18d71d0ed13e343a51d6ce1
do_check() {
- # Skipped tests fail to find module or rely on missing entrypoint script
- PYTHONPATH=src python3 -m pytest \
- -k "not test_parallel \
- and not test_provision_race \
- and not test_tox_console_script \
- and not test_tox_quickstart_script \
- and not test_provision_cli_args_ignore \
- and not test_provision_interrupt_child \
- and not test_provision_non_canonical_dep \
- and not test_package_poetry"
+ # 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 testpy="${testdir}/bin/python3"
+ "${testpy}" -m installer dist/*.whl
+ PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS}
}
post_install() {
diff --git a/srcpkgs/tox/update b/srcpkgs/tox/update
index e957dc43055f1..25ef51d109a4f 100644
--- a/srcpkgs/tox/update
+++ b/srcpkgs/tox/update
@@ -1 +1 @@
-ignore="*a* *b*"
+ignore="*a* *b* *rc*"
next reply other threads:[~2023-12-31 21:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-31 21:55 tornaria [this message]
2023-12-31 22:04 ` [PR PATCH] [Updated] " tornaria
2024-01-04 2:55 ` [PR PATCH] [Merged]: " sgn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48013@inbox.vuxu.org \
--to=tornaria@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).