Skip to content

v10.0.0 - #627

Merged
Paebbels merged 148 commits into
mainfrom
dev
Oct 26, 2026
Merged

Paebbels merged 148 commits into
mainfrom
dev

Conversation

@pytooling-claude

@pytooling-claude pytooling-claude Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Note

This release accumulated 329 merged pull-requests, grouped by section and namespace; the linked pull-requests carry the detail, doc/News.rst the reader-facing version.

  • ✨ New packages pyTooling.ControlFlow, pyTooling.CallGraph, pyTooling.CI, pyTooling.REST, pyTooling.Documentation, pyTooling.DataModel, pyTooling.Timeout and pyTooling.Graph.GraphViz; traces render as Gantt charts and export OTLP/JSON; SPDX license expressions, version expressions and epochs; a test report format with four names per item.
    ⚠️ 32 exceptions renamed to ***Error without aliases; Stopwatch.Duration and Span.Duration are timedeltas; InheritDocString takes one strategy; membership tests are Contains***; ExtendedType enforces its slot and mixin rules; attribute scopes are enforced; versions follow PEP 440's spellings; class constants are upper case (e.g. HEADLINE).
  • 🔧 ExtendedType creates classes faster (26 to 59 % less time per class with postponed annotations) and @readonly reads 4× faster; FreeBSD is supported; packages default to Python 3.11 to 3.15.
  • 🪳 ExtendedType's abstract-method and slot handling; the GraphML writer; LineSegment2D.Length and AngleTo; calendar versions compare every part; KeyValueFlag and OptionalValuedFlag parse their values; configuration, URL and version-range corner cases.
  • 📖 Most tbd pages are written: tutorials, the glossary, competing solutions; hierarchies drawn as trees.
  • 🧪 3461 testcases instead of 1326, run in parallel.
  • ⚙️ The pipelines run on pyTooling/Actions@r9, test Python 3.15 and PyPy 3.12, run their single jobs on Python 3.15, clean up artifacts with CleanupArtifacts.yml, and refuse to tag a package PyPI would reject.

Important

The Sphinx extension and everything about GitHub Actions (run model, workflow file model, trace reader, Sphinx domain gha, the pyTooling program) moved into pyTooling.Sphinx and pyTooling.GitHub before this release; dev's history was rewritten, so no pyTooling release contains them. Their pull-requests are listed at the end, marked as moved.

Since v9.0.0 the package grew from 303 to 511 classes in 52 to 71 modules, and the testsuite from 1326 to 3461 passing testcases.

✨ New Features

⚠️ Breaking Changes

🔧 Changes

🪳 Bug Fixes

📖 Documentation

🧪 Unit Tests

⚙️ GitHub Pipeline

  • Only the wheel is published on PyPI (Pipeline: publish only the wheel on PyPI #582): publish_sdist: 'false', an input of pyTooling/Actions v9.3.0. The sdist can't build a wheel (setup.py reads requirements.txt, which it lacks); the pure-Python wheel installs everywhere.

  • Artifacts are cleaned up by CleanupArtifacts.yml (28c5b7e, pushed to dev without a pull-request): IntermediateCleanUp and ArtifactCleanUp no longer call the deprecated IntermediateCleanUp.yml and ArtifactCleanUp.yml and name the artifacts by the keys of Parameters.yml's artifact_names, like CompletePipeline.yml. IntermediateCleanUp deletes the platform tests' artifacts, keeping the package artifact on tag runs for PublishOnPyPI. Both run unless the pipeline is cancelled.

  • The single jobs and mypy use Python 3.15 (3ae2c76, pushed to dev without a pull-request): documentation, checks and packaging use pyTooling/Actions@r9's default; mypy checks with python_version = "3.15".

  • The pipelines use pyTooling/Actions@r9 (Move the pipelines to pyTooling/Actions@r8 #390, Pipeline: pyTooling/Actions @r9, MSYS2 on UCRT64 and Clang64 only #543) instead of @r7, in Pipeline.yml, Benchmark.yml and Performance.yml: MSYS2 runs on UCRT64 and Clang64 only, as Actions v9.0.0 removed mingw32 and mingw64.

  • Python 3.15 and PyPy 3.12 are tested (Test on Python 3.15, and add it to the supported and the default versions #557, Test on PyPy 3.12 (PyPy 8.0) #558): CPython 3.11 to 3.15, PyPy 3.11 and 3.12. PyPy isn't run on Windows on ARM.

  • A package PyPI would reject is neither tagged nor uploaded (Pipeline: don't tag or upload a package PyPI would reject #560): Package reports pypi_compliant (pyTooling/Actions v9.1.0); TriggerTaggedRelease fails before tagging, PublishOnPyPI checks again; before, a release PyPI refused was tagged and its release page published anyway.

  • A release version that doesn't match the code, or that PyPI already has, is neither tagged nor published (Pipeline: check the release version before tagging and publishing #588): new job VersionCheck (CheckReleaseVersion.yml@r9, as in CompletePipeline.yml) compares it with __version__ in pyTooling/Common/__init__.py and, on the release commit, asks PyPI; TriggerTaggedRelease, ReleasePage and PublishOnPyPI require its success.

  • A pre-release's release page is published as a pre-release (Publish a pre-release's page as a pre-release #437). ReleasePage passes prerelease and latest from Prepare's new output is_prerelease (pyTooling/Actions v8.5.0), so a tag like v10.0.0-rc1 doesn't replace the latest release.

Others


Related Issues and Pull-Requests

Merged into this release and not named in a section above, newest first:

Moved to pyTooling.Sphinx, newest first:

Moved to pyTooling.GitHub, newest first:

  • #473 - compare the gha domain's warnings without the temporary path on macOS and Windows too.
  • #442 - summarize a workflow with gha:parameter-table, gha:interface, gha:dependencies, gha:yaml and gha:autoinputs.
  • #441 - draw a workflow's pipeline with gha:pipeline-graph.
  • #440 - a Sphinx domain gha for GitHub Actions workflows.
  • #451 - build a pipeline from a workflow file, and give a run the dependencies of its file.
  • #450 - model a job's steps and matrix, and read the reusable workflows a workflow calls.
  • #449 - model the jobs of a workflow file, and the reusable workflows they call.
  • #448 - model the parameters of a reusable workflow.
  • #439 - read a GitHub Actions workflow file: its triggers and permissions.
  • #425 - draw the pipeline: --gantt on the pipeline command.
  • #423 - pyTooling's program: the pyTooling command line interface.
  • #411 - Workflow declares its own parent type.
  • #407 - a data model of a GitHub Actions workflow run.

Issues addressed in this release:

  • #15 - implement more SPDX identifiers and licenses.
  • #49 - __weakref__ in types with slots, implemented in #336.
  • #219 - the deprecated license classifiers.
  • #246 - JSON output for OpenTelemetry and Jaeger.
  • #346 - SPDX license expressions, implemented in #367.
  • #384 - enforce an attribute's scope, implemented in #489.

Still open (a closes keyword fires only on a merge into the default branch); they close with this release:

  • #18 - extract the description from the first paragraph of a package's doc-string.
  • #383 - an attribute's scope as a class keyword argument, implemented in #523.
  • #612 - expects accepts a typing.Protocol, implemented in #611.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 24, 2026 09:33
@pytooling-claude pytooling-claude Bot added ArgParse ArgParse or pyToolingAttributes.ArgParse related. Attribute pyTooling.Attributes bug Something isn't working CI: GitHub GitHub Actions / Workflows CLIAbstraction pyTooling.CLIAbstraction - CLI arguments abstracted incl. ordering, formatting and escaping. Configuration pyTooling.Configuration - Generic configuration reader. Decorator Generally about decorators. Dependencies Used by Dependabot. Dependency pyTooling.Dependency - Generic dependency graph and package resolutions. Documentation Improvements or additions to documentation Enhancement New feature or request Exception ExtendedType A meta-class extending 'type'. GenericPath pyTooling.GenericPath Graph pyTooling.Graph - Graph data structure. Licensing MetaClass Generally about meta-classes. Packaging pyTooling.Packaging Platform pyTooling.Common.Platform - Detecting current platform. Quality: Code Quality of code: Readabiluty, Maintainability, Testability, Correctness (absence of errors) Stopwatch pyTooling.Stopwatch - Execution duration measurement. Terminal pyTooling.TerminalUI - Helpers for writing Terminal applications. Tracing pyTooling.Tracing - Software execution tracing. Tree pyTooling.Tree - Tree data structure. Tutorial Step-by-step tutorial pages under doc/Tutorials Unit Tests Versioning pyTooling.Versioning - Version numbers. WarningCollector WarningCollector and Warnings labels Oct 24, 2026
'1.2.3foo' didn't match with micro 3, so the pattern backtracked: the micro number was dropped and '.3foo' taken as
a postfix - '1.2' with postfix '3foo'. The same happened to '1.2.3xyz1' and '1.2.3_x', and '1.2.3.4.5' was build 4
with postfix '5'. A negative lookahead forbids a digit as the first character of a postfix that follows a '.';
after '-' or '+' a postfix may start with one ('1.2.3-1'). The four strings raise a syntax error now.

The release level 'pl' stays in the pattern: '1.2.3pl1' keeps raising "Unknown release level 'pl'", clearer than a
syntax error.

Consumers with SemanticVersion (pyEDAA.CLITool, IPXACT, OSVVM, OutputFilter, Reports, ToolSetup, pyVersioning): the
same test results against dev and this branch.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 2 commits October 26, 2026 12:59
OptionalValuedFlag, ShortOptionalValuedFlag and LongOptionalValuedFlag passed a boolean flag's parameterization to
argparse (action="store_const", const=True, default=False), as KeyValueFlag did before #665: '--color' passed True,
and '--color=red' was an error ("ignored explicit argument 'red'"). They pass nargs="?" now, with const=defaultValue
and default=None: the handler receives the value ('--color=red', '--color red'), defaultValue for the option without
a value, or None without the option.

New parameters, as ValuedFlag and KeyValueFlag have: 'metaName' (default "VALUE") names the value in the help page,
'defaultValue' (default "") is the value of a bare option - an empty string, so it differs from the option not given.

The test module's import column moved to the new, longer module name.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@Paebbels Paebbels added this to the v10.0 milestone Oct 26, 2026
Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude pytooling-claude Bot changed the title v10.0.0-rc9 v10.0.0 Oct 26, 2026
The v10.0.0 topic carries its release date; the topics of v10.0.0-rc1 and -rc2 and the sentence on rc1's rejected upload are removed.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ArgParse ArgParse or pyToolingAttributes.ArgParse related. Attribute pyTooling.Attributes bug Something isn't working CI: GitHub GitHub Actions / Workflows CLIAbstraction pyTooling.CLIAbstraction - CLI arguments abstracted incl. ordering, formatting and escaping. Configuration pyTooling.Configuration - Generic configuration reader. Decorator Generally about decorators. Dependencies Used by Dependabot. Dependency pyTooling.Dependency - Generic dependency graph and package resolutions. Documentation Improvements or additions to documentation Enhancement New feature or request Exception ExtendedType A meta-class extending 'type'. GenericPath pyTooling.GenericPath Graph pyTooling.Graph - Graph data structure. Licensing MetaClass Generally about meta-classes. Packaging pyTooling.Packaging Platform pyTooling.Common.Platform - Detecting current platform. Quality: Code Quality of code: Readabiluty, Maintainability, Testability, Correctness (absence of errors) Stopwatch pyTooling.Stopwatch - Execution duration measurement. Terminal pyTooling.TerminalUI - Helpers for writing Terminal applications. Tracing pyTooling.Tracing - Software execution tracing. Tree pyTooling.Tree - Tree data structure. Tutorial Step-by-step tutorial pages under doc/Tutorials Unit Tests Versioning pyTooling.Versioning - Version numbers. WarningCollector WarningCollector and Warnings

Projects

None yet

2 participants