Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

twill

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twill - npm Package Compare versions

Comparing version
3.2.3
to
3.2.4
+4
-0
docs/changelog.rst

@@ -7,2 +7,6 @@ .. _changelog:

3.2.4 (released 2024-04-27)
---------------------------
* Support latest version of httpx.
3.2.3 (released 2024-03-05)

@@ -9,0 +13,0 @@ ---------------------------

+3
-3
Metadata-Version: 2.1
Name: twill
Version: 3.2.3
Version: 3.2.4
Summary: A web browsing and testing language

@@ -57,6 +57,6 @@ Author: C. Titus Brown, Ben R. Taylor, Christoph Zwerschke

Requires-Dist: lxml<5,>=4.9
Requires-Dist: httpx<1,>=0.26.0
Requires-Dist: httpx<1,>=0.27.0
Requires-Dist: pyparsing<4,>=3.1
Provides-Extra: docs
Requires-Dist: sphinx<8,>=7.2; extra == "docs"
Requires-Dist: sphinx<8,>=7.3; extra == "docs"
Requires-Dist: sphinx_rtd_theme<3,>=2; extra == "docs"

@@ -63,0 +63,0 @@ Provides-Extra: tidy

[project]
name = "twill"
version = "3.2.3"
version = "3.2.4"

@@ -43,3 +43,3 @@ description = "A web browsing and testing language"

"lxml >=4.9, <5",
"httpx >=0.26.0, <1",
"httpx >=0.27.0, <1",
"pyparsing >=3.1, <4",

@@ -50,3 +50,3 @@ ]

docs = [
"sphinx >=7.2, <8",
"sphinx >=7.3, <8",
"sphinx_rtd_theme >=2, <3"

@@ -84,3 +84,3 @@ ]

[tool.mypy]
python_version = 3.11
python_version = 3.12
check_untyped_defs = true

@@ -93,2 +93,12 @@ no_implicit_optional = true

[tool.pyright]
reportIncompatibleVariableOverride = false
reportMissingTypeArgument = false
reportUnknownArgumentType = false
reportUnknownMemberType = false
reportUnknownParameterType = false
reportUnnecessaryIsInstance = false
reportUnknownVariableType = false
ignore = ["**/test_*"] # test functions
[tool.black]

@@ -156,3 +166,3 @@ line-length = 79

"EM101", "EM102", # allows exceptions with literal and f-strings
"ISC001", # allow string literal concatenatin for auto-formatting
"ISC001", # allow string literal concatenation for auto-formatting
"PTH123", # allow builtin-open

@@ -204,3 +214,3 @@ "TRY003", # allow specific messages outside the exception class

"D", # do not require docstrings
"ANN201", # do no trequre return types
"ANN201", # do not require return types
"S101", # allow assert statements

@@ -210,4 +220,12 @@ "PLR2004", # allow magic values

[tool.pylint.messages_control]
disable = [
"method-hidden",
"missing-module-docstring", # test modules
"redefined-outer-name",
"unused-variable", # test functions
]
[build-system]
requires = ["setuptools >=69"]
build-backend = "setuptools.build_meta"
Metadata-Version: 2.1
Name: twill
Version: 3.2.3
Version: 3.2.4
Summary: A web browsing and testing language

@@ -57,6 +57,6 @@ Author: C. Titus Brown, Ben R. Taylor, Christoph Zwerschke

Requires-Dist: lxml<5,>=4.9
Requires-Dist: httpx<1,>=0.26.0
Requires-Dist: httpx<1,>=0.27.0
Requires-Dist: pyparsing<4,>=3.1
Provides-Extra: docs
Requires-Dist: sphinx<8,>=7.2; extra == "docs"
Requires-Dist: sphinx<8,>=7.3; extra == "docs"
Requires-Dist: sphinx_rtd_theme<3,>=2; extra == "docs"

@@ -63,0 +63,0 @@ Provides-Extra: tidy

lxml<5,>=4.9
httpx<1,>=0.26.0
httpx<1,>=0.27.0
pyparsing<4,>=3.1
[docs]
sphinx<8,>=7.2
sphinx<8,>=7.3
sphinx_rtd_theme<3,>=2

@@ -8,0 +8,0 @@

@@ -29,2 +29,3 @@ """Implementation of the TwillBrowser."""

Timeout,
WSGITransport,
)

@@ -156,3 +157,2 @@

self._client = Client(
app=app,
base_url=base_url,

@@ -162,2 +162,3 @@ follow_redirects=follow_redirects,

timeout=timeout,
transport=WSGITransport(app=app) if app else None,
)

@@ -164,0 +165,0 @@

@@ -197,3 +197,3 @@ """Code parsing and evaluation for the twill mini-language."""

def execute_string(buf: str, **kw) -> None:
def execute_string(buf: str, **kw: Any) -> None:
"""Execute commands from a string buffer."""

@@ -209,3 +209,3 @@ fp = StringIO(buf)

def execute_file(filename: str, **kw) -> None:
def execute_file(filename: str, **kw: Any) -> None:
"""Execute commands from a file."""

@@ -223,3 +223,3 @@ with (

def _execute_script(inp: TextIO, **kw) -> None:
def _execute_script(inp: TextIO, **kw: Any) -> None:
"""Execute lines taken from a file-like iterator."""

@@ -270,3 +270,3 @@ # initialize new local dictionary and get global and current local

f"{error_type} raised on line {line_no}"
f"of '{source_info}'"
f" of '{source_info}'"
)

@@ -273,0 +273,0 @@ if line:

@@ -306,3 +306,3 @@ """Various ugly utility functions for twill.

ival = int(value)
except Exception as error: # noqa: BLE001
except Exception as error:
raise TwillException(

@@ -309,0 +309,0 @@ f"unable to convert '{value}' into an int"

@@ -26,3 +26,3 @@ """Shared test configuration for pytest."""

find("These are the twill tests")
except Exception as error: # noqa: BLE001
except Exception as error:
raise RuntimeError(

@@ -29,0 +29,0 @@ """

@@ -5,4 +5,4 @@ [tox]

[testenv:ruff]
basepython = python3.11
deps = ruff>=0.3,<0.4
basepython = python3.12
deps = ruff>=0.4,<0.5
commands =

@@ -13,5 +13,5 @@ ruff check src/twill tests extras

[testenv:mypy]
basepython = python3.11
basepython = python3.12
deps =
mypy >= 1.8, <1.9
mypy >= 1.10, <1.11
dnspython >=2.5, <3

@@ -24,4 +24,4 @@ types-lxml

[testenv:docs]
basepython = python3.11
deps = sphinx >=7.2, <8
basepython = python3.12
deps = sphinx >=7.3, <8
extras =

@@ -33,3 +33,3 @@ docs

[testenv:manifest]
basepython = python3.11
basepython = python3.12
deps = check-manifest>=0.49,<1

@@ -36,0 +36,0 @@ commands =