twill
Advanced tools
@@ -7,2 +7,6 @@ .. _changelog: | ||
| 3.2.5 (released 2024-06-28) | ||
| --------------------------- | ||
| * Uses lxml 5 instead of lxml 4. | ||
| 3.2.4 (released 2024-04-27) | ||
@@ -9,0 +13,0 @@ --------------------------- |
+2
-2
| Metadata-Version: 2.1 | ||
| Name: twill | ||
| Version: 3.2.4 | ||
| Version: 3.2.5 | ||
| Summary: A web browsing and testing language | ||
@@ -56,3 +56,3 @@ Author: C. Titus Brown, Ben R. Taylor, Christoph Zwerschke | ||
| License-File: LICENSE.txt | ||
| Requires-Dist: lxml<5,>=4.9 | ||
| Requires-Dist: lxml<6,>=5.2 | ||
| Requires-Dist: httpx<1,>=0.27.0 | ||
@@ -59,0 +59,0 @@ Requires-Dist: pyparsing<4,>=3.1 |
+2
-2
| [project] | ||
| name = "twill" | ||
| version = "3.2.4" | ||
| version = "3.2.5" | ||
@@ -42,3 +42,3 @@ description = "A web browsing and testing language" | ||
| dependencies = [ | ||
| "lxml >=4.9, <5", | ||
| "lxml >=5.2, <6", | ||
| "httpx >=0.27.0, <1", | ||
@@ -45,0 +45,0 @@ "pyparsing >=3.1, <4", |
| Metadata-Version: 2.1 | ||
| Name: twill | ||
| Version: 3.2.4 | ||
| Version: 3.2.5 | ||
| Summary: A web browsing and testing language | ||
@@ -56,3 +56,3 @@ Author: C. Titus Brown, Ben R. Taylor, Christoph Zwerschke | ||
| License-File: LICENSE.txt | ||
| Requires-Dist: lxml<5,>=4.9 | ||
| Requires-Dist: lxml<6,>=5.2 | ||
| Requires-Dist: httpx<1,>=0.27.0 | ||
@@ -59,0 +59,0 @@ Requires-Dist: pyparsing<4,>=3.1 |
@@ -1,2 +0,2 @@ | ||
| lxml<5,>=4.9 | ||
| lxml<6,>=5.2 | ||
| httpx<1,>=0.27.0 | ||
@@ -3,0 +3,0 @@ pyparsing<4,>=3.1 |
@@ -263,3 +263,3 @@ """Code parsing and evaluation for the twill mini-language.""" | ||
| return | ||
| except Exception as error: # noqa: BLE001 | ||
| except Exception as error: | ||
| error_type = error.__class__.__name__ or "Error" | ||
@@ -287,4 +287,6 @@ error_context = ( | ||
| try: | ||
| with open(filename, encoding="utf-8") as inp: | ||
| _execute_script(inp, source=filename, no_reset=True) | ||
| with open(filename, encoding="utf-8") as cleanup: | ||
| _execute_script( | ||
| cleanup, source=filename, no_reset=True | ||
| ) | ||
| except Exception as error: # noqa: BLE001 | ||
@@ -291,0 +293,0 @@ log.error( |
@@ -267,3 +267,3 @@ """A command-line interpreter for twill. | ||
| raise | ||
| except Exception as error: # noqa: BLE001 | ||
| except Exception as error: | ||
| log.error("\nERROR: %s\n", error) | ||
@@ -485,3 +485,3 @@ if self.fail_on_unknown: | ||
| success.append(filename) | ||
| except Exception as error: # noqa: BLE001 | ||
| except Exception as error: | ||
| if dump_file: | ||
@@ -488,0 +488,0 @@ dump = browser.dump |
@@ -251,3 +251,3 @@ """Various ugly utility functions for twill. | ||
| for n, field in enumerate(form.inputs, 1): | ||
| for i, field in enumerate(form.inputs, 1): | ||
| value = field.value | ||
@@ -266,3 +266,3 @@ value_options = getattr(field, "value_options", None) | ||
| strings = ( | ||
| f"{n:2}", | ||
| f"{i:2}", | ||
| f"{trunc(field_name, 24):24}", | ||
@@ -269,0 +269,0 @@ f"{trunc(field_type, 9):9}", |
+2
-2
@@ -127,4 +127,4 @@ """Utility functions for testing twill.""" | ||
| ) | ||
| subprocess.Popen( | ||
| [sys.executable, "-u", "server.py"], # noqa: S603 | ||
| subprocess.Popen( # noqa: S603 | ||
| [sys.executable, "-u", "server.py"], | ||
| stderr=subprocess.STDOUT, | ||
@@ -131,0 +131,0 @@ stdout=out, |
+1
-1
@@ -6,3 +6,3 @@ [tox] | ||
| basepython = python3.12 | ||
| deps = ruff>=0.4,<0.5 | ||
| deps = ruff>=0.5,<0.6 | ||
| commands = | ||
@@ -9,0 +9,0 @@ ruff check src/twill tests extras |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
286827
0.04%5337
0.04%