pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-twill
Module Name: pkgsrc
Committed By: adam
Date: Tue Nov 17 08:41:45 UTC 2026
Modified Files:
pkgsrc/www/py-twill: Makefile distinfo
Log Message:
py-twill: updated to 3.4.0
3.4.0 (released 2026-11-02)
* The supported Python versions are now 3.10 to 3.15.
* The development dependencies are now defined as dependency groups
instead of the optional dependencies 'tests' and 'docs'.
* Setting select fields with 'formvalue' has been improved: Options inside
optgroups are now found correctly (previously option texts and values could
be mismatched), values with whitespace work, exact value matches take
precedence, values with a leading '+' or '-' (such as '-1') are first
tried as they are, options can be chosen by their label or visible text
even if it contains markup, disabled options are ignored like in a
browser, and options with duplicate values are handled properly.
Note that trying to select a disabled option now raises an error,
while previously such an option was silently selected.
* Deselecting an option of a single select field with 'formvalue' now
clears the selection if this option was selected, so that the first
option is used like in a browser. Previously this always tried to set
an empty value and failed if there was no such option.
* Checked checkboxes and radio buttons with an empty 'value' attribute are
now submitted with an empty string like in a browser; 'on' is only sent
when the 'value' attribute is missing. Previously, 'on' was also sent for
empty values, due to an `lxml bug
<https://bugs.launchpad.net/lxml/+bug/1600773>`_. The same fix applies to
the values shown with 'showforms'. Twill now uses its own HTML parser that
creates input elements with the fixed behavior. Checkboxes and radio
buttons without a 'value' attribute can now also be selected with 'fv'
using the default value 'on' when they are part of a group. As with
select fields, checkbox values with a leading '+' or '-' are now first
tried as they are, and checkboxes with duplicate values are handled
properly.
* The new command-line option '-s NAME=VALUE' or '--set NAME=VALUE' sets
a global variable before the scripts are run, like the 'setglobal'
command. This makes it easy to pass values such as an output directory
to twill scripts. The command-line options are now also documented.
* The new command 'save_content' saves the binary content of the current
page, so that downloads such as PDF files can be stored unaltered, which
was not possible with 'save_html'. If no filename is given, it is taken
from the 'Content-Disposition' header (including RFC 5987 encoded names)
or from the URL. Filenames suggested by the server are reduced to their
final path component, so that they can never be written outside the
current directory, hidden names are ignored, reserved device names on
Windows are prefixed with an underscore, and overlong names are
truncated. 'save_html' now also respects the 'Content-Disposition'
header, and percent-encoded characters in the URL are decoded when
constructing a filename.
* The new command 'header' asserts that the current page has been sent with
a response header whose value matches a regular expression, e.g.
'header content-type ^application/pdf'. The name of the header is
case-insensitive, and like with 'url' and 'title', the matching part is
stored in the variable '__match__'. The new command 'show_headers' shows
all response headers of the current page.
* The 'info' command does not fail any more when the current page has been
sent without a 'Content-Type' header.
* If the first group of a regular expression did not participate in the
match, the commands 'find', 'url', 'title' and 'header' now set the
variable '__match__' to an empty string instead of None.
* The command 'find' with the flag 'x' now also works with XPath expressions
that return strings, numbers or booleans instead of elements.
* The 'Accept' header sent by default was malformed ('text/html; */*'
instead of 'text/html, */*'); this has been fixed.
* The command 'extend_with' now warns when an extension command replaces
an existing variable.
* The documentation of 'follow' now explains how the regular expression is
matched against the link text and URL, and the documentation of 'tidy_ok'
shows how to allow empty elements such as icons.
* The documentation and the help text of 'add_extra_header' now use the
correct name of the command (previously given as 'add_extra_headers' or
'add_header'), the documentation of 'form_clear' now shows that it
requires the name or number of the form, and the commands 'redirect_error'
and 'reset_error' are now documented.
* Support for AI coding agents has been added: The documentation now also
provides the files 'llms.txt' and 'llms-full.txt', and the repository
contains an agent skill for writing and running twill scripts that can
be installed as a Claude Code plugin or used with other coding agents.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/www/py-twill/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/www/py-twill/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-twill/Makefile
diff -u pkgsrc/www/py-twill/Makefile:1.32 pkgsrc/www/py-twill/Makefile:1.33
--- pkgsrc/www/py-twill/Makefile:1.32 Fri Oct 16 19:44:30 2026
+++ pkgsrc/www/py-twill/Makefile Tue Nov 17 08:41:45 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2026/10/16 19:44:30 adam Exp $
+# $NetBSD: Makefile,v 1.33 2026/11/17 08:41:45 adam Exp $
-DISTNAME= twill-3.3.1
+DISTNAME= twill-3.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/twill/}
@@ -11,8 +11,8 @@ COMMENT= Simple scripting language for w
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-httpx>=0.27.0:../../www/py-httpx
-DEPENDS+= ${PYPKGPREFIX}-lxml>=5.2:../../textproc/py-lxml
+DEPENDS+= ${PYPKGPREFIX}-httpx>=0.28.1:../../www/py-httpx
+DEPENDS+= ${PYPKGPREFIX}-lxml>=6:../../textproc/py-lxml
DEPENDS+= ${PYPKGPREFIX}-pyparsing>=3.1:../../devel/py-pyparsing
TEST_DEPENDS+= ${PYPKGPREFIX}-flask>=3.0:../../www/py-flask
#TEST_DEPENDS+= ${PYPKGPREFIX}-pytidylib>=0.3
@@ -20,13 +20,9 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-tox>=4:../
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 311
+PY_RENAME_BINARIES= twill twill-fork
-post-install:
-.for bin in twill twill-fork
- cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
-.endfor
+PYTHON_VERSIONS_INCOMPATIBLE= 311
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-twill/distinfo
diff -u pkgsrc/www/py-twill/distinfo:1.12 pkgsrc/www/py-twill/distinfo:1.13
--- pkgsrc/www/py-twill/distinfo:1.12 Mon Sep 8 15:05:11 2025
+++ pkgsrc/www/py-twill/distinfo Tue Nov 17 08:41:45 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2025/09/08 15:05:11 adam Exp $
+$NetBSD: distinfo,v 1.13 2026/11/17 08:41:45 adam Exp $
-BLAKE2s (twill-3.3.1.tar.gz) = 396dbd8f82984569d631b53410903d819370498bd308f7aab0e3a983f586a8ee
-SHA512 (twill-3.3.1.tar.gz) = 377924fd30fd52003939b95ef76b1f4c7c6004fb767c2938ac8d8c8048001243f42926968455764c0f660aee25ecc94cc70856cc96f3756b46c6daf90dfeac5d
-Size (twill-3.3.1.tar.gz) = 90230 bytes
+BLAKE2s (twill-3.4.0.tar.gz) = f53941408f13581d098180004b870679466c9069a6eb33bcb00dba35cfc6bb86
+SHA512 (twill-3.4.0.tar.gz) = 5f3bfcd13acacab197c175a8e8aa8c0cb36ec10b42548f0b8cd3d69149e41ef8863f4c0112c360271a4204f4b3e89d97c4c281c4e3b3b26b45614cfda4a177bf
+Size (twill-3.4.0.tar.gz) = 114262 bytes
Home |
Main Index |
Thread Index |
Old Index