Skip to content

v0.1.0-rc1 - #1

Merged
Paebbels merged 173 commits into
mainfrom
dev
Oct 17, 2026
Merged

Paebbels merged 173 commits into
mainfrom
dev

Conversation

@pytooling-claude

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

Copy link
Copy Markdown

Note

The first release candidate of v0.1.0. It requires pyTooling v10.0.0-rc2 or later and, for the extra reports, pyEDAA.Reports v0.20.0-rc1 or later - both pre-releases on PyPI.

First release of pyTooling.Sphinx: pyTooling's Sphinx extension as a package of its own, with its repository infrastructure and pipeline.

New Features

The Sphinx extension moved from pyTooling's pyTooling.Documentation.Sphinx (#2), code unchanged apart from import paths; everything else is new in this repository. Grouped by module of the namespace package pyTooling.Sphinx:

Bug Fixes

  • pyTooling.Sphinx.Shields (compared with pyTooling's pyTooling.Documentation.Sphinx): the badge github is a static shields.io badge, whose fields are separated at -, and _ is read as a space. An organization or repository containing either was drawn wrongly - edaa-org/pyEDAA.Reports as label edaa, message org. Both are escaped now (--, __); the badge's link keeps the names as written (Escape '-' and '_' in the 'github' badge #22).

Documentation

Unit Tests

GitHub Pipeline

Known Issues

  • MSYS2 jobs are disabled.
  • pylint is off (~550 messages on code pyTooling never ran pylint on).

Related Issues and Pull-Requests

Packaging (setup.py, pyproject.toml, requirements.txt), the package's version file, test directories with their
requirements, and the Sphinx documentation skeleton.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@Paebbels
Paebbels self-requested a review October 3, 2026 10:00
Comment thread doc/conf.py Resolved
Comment thread doc/Installation.rst Resolved
Comment thread doc/make.bat Resolved
claude-code and others added 5 commits October 3, 2026 10:16
… make.bat

doc/conf.py imports pyTooling.Packaging at the top again: a namespace package's path is recomputed when sys.path
changes, so the checkout's sub-package is found after the inserts anyway.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
pyTooling.Documentation.Sphinx (pyTooling dev 47a7877b) becomes pyTooling.Sphinx, its stylesheet
pyTooling.Resources.Sphinx becomes pyTooling.Sphinx.Resources; the domain 'gha' goes to pyTooling.GitHub. Code
unchanged apart from the import paths, the version and the extras: Sphinx, xmlschema and pyTooling's 'pypi' extra
are requirements now. pyTooling 10 isn't on PyPI yet, so it is installed from its 'dev' branch.

doc/Documentation/Sphinx.rst becomes doc/Extension.rst; the documentation uses the extension itself. New smoke
tests: registration, roles, substitutions, stylesheet.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
pyTooling.Sphinx.Resources' 'pyTooling.css' wasn't package data, so a build with the installed extension failed in
'installStylesheet'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* SphinxExtensionError, strip, stripAndNormalize and BaseDirective move from pyTooling.Sphinx.Directives into the
  package; setup() imports the directive modules, so they can import their base-class from the package.
* Every file's banner spells pyTooling.Sphinx.
* Imports aligned to the column the shorter module paths need.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@codacy-production

codacy-production Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage

Metric Results
Coverage variation Report missing for 55ab3b71
Diff coverage ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (55ab3b7) Report Missing Report Missing Report Missing
Head commit (fd80949) 4879 4253 87.17%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

claude-code and others added 5 commits October 3, 2026 17:30
Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Actions' ComputePacboyPackages doesn't recognize a requirement with a URL ('pyTooling[pypi] @ git+...'), which
pyTooling needs until v10.0.0 is on PyPI. pylint isn't run on this code in pyTooling either.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The secrets CODECOV_TOKEN and CODACY_TOKEN are set up.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* `DotGraph` derives from `pyTooling.Graph.GraphViz.Graph`; its constructor sets the shared look (left to right,
  record nodes, fonts), which replaces `GRAPH_ATTRIBUTES`.
* `AddRecord()` builds a flipped `RecordLabel` and returns the node; `GetOrAddNode()` adds a plain node for an
  edge's target without a record. The hand-written escaping, compartments and attribute lists are gone.
* `XSDSchemaGraph` adds `Node` and `Edge` objects.
* `tests/unit/SchemaGraph.py`: pyTooling's testcases of the schema graph, ported to the new output.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21452% with 624 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@55ab3b7). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
pyTooling/Sphinx/DependencyTable.py 56.76% 208 Missing and 6 partials ⚠️
pyTooling/Sphinx/CondensedClass.py 26.50% 122 Missing ⚠️
pyTooling/Sphinx/DocCoverage.py 81.13% 70 Missing and 13 partials ⚠️
pyTooling/Sphinx/CodeCoverage.py 80.60% 59 Missing and 11 partials ⚠️
pyTooling/Sphinx/Markdown.py 91.52% 16 Missing and 13 partials ⚠️
pyTooling/Sphinx/Shields.py 88.23% 22 Missing ⚠️
pyTooling/Sphinx/GitHubMarkdown.py 90.49% 13 Missing and 8 partials ⚠️
pyTooling/Sphinx/Abbreviation.py 92.85% 7 Missing and 4 partials ⚠️
pyTooling/Sphinx/CodeCoveragePages.py 94.73% 7 Missing and 2 partials ⚠️
pyTooling/Sphinx/CondensedSource.py 94.70% 4 Missing and 5 partials ⚠️
... and 4 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage        ?   84.89%           
=======================================
  Files           ?       24           
  Lines           ?     4879           
  Branches        ?      785           
=======================================
  Hits            ?     4142           
  Misses          ?      626           
  Partials        ?      111           
Flag Coverage Δ
unittests 84.89% <84.21%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

claude-code and others added 3 commits October 3, 2026 21:44
Unchanged from pyTooling's tests/unit/Documentation.py (dev d75c9990) apart from the import paths and the dropped
Python 3.11 guard - pyTooling.Sphinx starts at Python 3.12.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The sentence a name spelled out is the doc-string now, where a testcase had none.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 3 commits October 3, 2026 21:58
* Every test class is a @testsuite with a title, every testcase a @testcase with a title; the methods lose their
  'test_' prefix.
* A testcase's doc-string is a one-line summary of what it checks and a paragraph on how.
* Doc-strings for the test suites 'Registration' and 'Rendering'; the configuration value is spelled
  'pyTooling_Dependency_Requirements'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
'UnknownField' declared 'files' with a string, which is a known field and fails as 'Files_String' does. It
declares the misspelt 'fiel' now and checks the error names it as unknown.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 4 commits October 3, 2026 22:40
* Directive `xsd-graph` → `xmlschema-graph`, class and module `XSDSchemaGraph` → `XMLSchemaGraph`, so a later
  `jsonschema-graph` is named alike.
* Tests and the Extension page follow.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
…ocumentation

* News, Dependencies (rendered with the extension's own 'dependency-table', with pyTooling's license overrides plus
  sphinxcontrib-jquery), Glossary and TODOs, as in pyTooling.
* Report pages: unit test summary, code coverage report and summary, documentation coverage, static type check
  report - 'sphinx_reports' reads the reports the pipeline hands to the documentation job.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* Landing page: the extension's own 'shields' directive instead of a shields include, no pyTooling logo, the Python
  3.12 requirement and the setup in conf.py after the summary, an overview of the roles and directives, and the
  competing solutions above the contributors.
* The Extension page is split: a toctree 'Roles' (style roles, inline Python code, line break and horizontal rule)
  and a toctree 'Directives' (condensed-class, dependency-table, jsonschema-graph - planned -, xmlschema-graph,
  shields).
* condensed-class shows pyTooling.GenericPath.URL.Host: a derived class with an initializer, read-only properties, a
  method and __str__(). xmlschema-graph renders a schema with the extension itself.
* Introduction: News, Installation, Dependencies; Appendix: Glossary and TODOs; References and Reports: the reports.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 3 commits October 17, 2026 11:12
* `Pipeline.yml`: `CompletePipeline.yml` of pyTooling/Actions `@r9` (was `@r8`); unit tests also on Python 3.15;
  `mingw64:*` removed from the unit test disable list (r9 has no MinGW64 system).
* `setup.py`: Python 3.15 in `pythonVersions`.
* `pyproject.toml`: mypy checks with `python_version = "3.15"`.
* `run.ps1`: Python 3.15.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The documentation renders its code coverage itself, with a page per directory and source file below 'coverage/'.
CompletePipeline@r9 (v9.2.0) has 'coverage_html'; with 'false', coverage.py's HTML report isn't published and no
longer overwrites 'coverage/index.html'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 7 commits October 17, 2026 12:57
The extension's setup loads Sphinx' ImageMagick converter, as it loads 'sphinx.ext.graphviz', so an SVG image of
converted Markdown is converted to PNG for LaTeX without an entry in 'conf.py'. Sphinx checks for ImageMagick only when
a document has an image the builder can't include, and warns once, if it's missing; HTML needs no conversion for SVG.

The SVG image test is split: converted to PNG (skipped without ImageMagick), the warning without ImageMagick (skipped
with it), and HTML.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
…ks it first.

On Windows on ARM, GitHub's runner has ImageMagick 7 without its SVG delegate 'rsvg-convert', so the conversion failed
and Sphinx stopped the build ("convert exited with error") - Sphinx raises an error for a failed conversion, it warns
only for a missing converter. The test of the PNG conversion first converts the SVG image with ImageMagick and skips,
if that fails. 'doc/Dependency.rst' names the requirement.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
… package's doc-string.

* 'GitHubEmoji.txt': the MIT license text of github/gemoji is framed by separator lines.
* The resource package's doc-string uses '.. rubric::' headings - Stylesheets, Scripts, LaTeX Packages, Data Files -,
  as pyTooling's and pyEDAA.Reports' resource packages do.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
…ad of 'ConvertText'.

* 'GitHubMarkdown(owner, repository, ...)' keeps both in fields of their own and has the properties 'Owner' and
  'Repository', as pyTooling.GitHub's models do. Each is checked against its pattern: 'OWNER_PATTERN' and
  'REPOSITORY_NAME_PATTERN', which make up 'REPOSITORY_PATTERN' of a reference's '<owner>/<name>'; a user reference
  uses 'OWNER_PATTERN' too.
* 'Convert' converts a Markdown document into docutils nodes; the method parsing a text without Markdown for GitHub's
  references and emoji is 'Parse' (was 'ConvertText').
* Raw HTML's whitespace is collapsed with string methods instead of a regular expression: same results, about 3.4x as
  fast in a benchmark of typical fragments.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* Bundled in the package: GitHub's emoji table from github/gemoji v4.1.0 (MIT, Copyright (c) 2019 GitHub, Inc.).
* Test data in the repository only: release notes of GHDL (GPL-2.0), OSVVM and pyTooling (Apache-2.0).

The README's license section links it. setuptools adds 'NOTICE*' files to a distribution's license files by default.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* Extra 'markdown', rubric 'Bundled Data': a table of the emoji table's content, file, source and license, as in
  NOTICE.md, which it links.
* Section 'Unit Testing / Coverage', new rubric 'Test Data': the release notes of GHDL, OSVVM and pyTooling, which the
  Markdown converter's tests use as fixtures, with their source and the source project's license.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 4 commits October 17, 2026 14:10
A package's 'levels' given as a dictionary was checked for level 100 and level 'error', then stored as an empty dictionary, so rendering its table raised a KeyError. The palette check is shared as '_CheckLevels' by the palettes and a package's own levels, in both coverage modules.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
… conf.py sets them.

Sphinx' default table style adds 'colorrows', which stops a PDF build with MiKTeX in the first table. LaTeX nests lists at most 4 levels deep, and a tree with more levels is a deeper nested list.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 2 commits October 17, 2026 14:37
Node 'ReportIndentation' wraps a name with its number of indentation steps. HTML writes a span setting '--pyTooling-report-level', indented by a CSS padding of '--pyTooling-report-indentation' per step; LaTeX writes '\pyToolingReportIndentation', which sets '\leftskip' by '\pyToolingReportIndentationStep' per step. A wrapped name stays at its indentation. The em quads were a line-break opportunity, so a name wrapped below its indentation in a narrow column, and they were copied with the name.

Constant 'INDENTATION' is removed; the code coverage table's header writes its em quad itself.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@Paebbels
Paebbels merged commit 6d0da01 into main Oct 17, 2026
57 checks passed
This was referenced Oct 17, 2026
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants