Repository navigation
Conversation
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>
… 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>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for 55ab3b71 |
| Diff coverage | ∅ diff coverage |
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.
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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1 +/- ##
=======================================
Coverage ? 84.89%
=======================================
Files ? 24
Lines ? 4879
Branches ? 785
=======================================
Hits ? 4142
Misses ? 626
Partials ? 111
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
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>
* 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>
* 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>
* `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>
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>
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>
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>
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 packagepyTooling.Sphinx:pyTooling.Sphinx(the extension'ssetup()and shared code):BaseDirective,SphinxExtensionError,strip(),stripAndNormalize()andextendProlog(), which appends the substitutions torst_prolog(Transfer the Sphinx extension from pyTooling #2).setup()installs the static files ofpyTooling.Sphinx.Resources(installStaticFiles(), unicode-table: icons with their Unicode names, code points and copy buttons #34) and, for LaTeX, the packagepyTooling.Sphinx.sty(installLaTeXPackage(), GitHub-flavoured Markdown converted into docutils nodes #38); it loadssphinx.ext.graphvizandsphinx.ext.imgconverter(GitHub-flavoured Markdown converted into docutils nodes #38).report, transferred from sphinx-reports v0.11.2 (Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20):ReportDomain,ReportExtensionError,ReportsPackageMissingError,LegendStyle; configuration values renamed topyTooling_Unittest_Testsuites,pyTooling_CodeCoverage_Packages,pyTooling_CodeCoverage_Levels,pyTooling_DocCoverage_Packages,pyTooling_DocCoverage_Levels. The new extrareportsinstallspyEDAA.Reports(anddocstr_coverageuntil Documentation coverage on pyEDAA.Reports' language-neutral model #39); it is imported only when a report is read, and its absence is reported with an install hint. Fixes the legends'NameErrorin stylehorizontal-tableand the empty message of an invalidlevels.reportserves any role referring to objects of reports with pages (Share the page machinery of the unit test reports with other reports #25):ReportEntry,ReportRole,REPORT_ROLES,AddEntry()/FindEntries(); it takes part in a parallel build (sphinx-build -j N):ReportDomain.merge_domaindata(Let the report domain take part in a parallel build #24).NODES, as sphinx-reports registersLandscape(Draw a hierarchy as a tree with the 'tree' directive #18).setLaTeXDefaults()(LaTeX defaults: table style 'booktabs' and a list depth of 10 #43): setslatex_table_style = ["booktabs"](Sphinx' default addscolorrows, which stops a PDF build with MiKTeX in the first table) andlatex_elements["maxlistdepth"] = "10"(atreedeeper than LaTeX' 4 list levels), unlessconf.pyor-Dsets them.pyTooling.Sphinx.Abbreviation(List abbreviations with the 'abbreviations' directive, and refer to them like LaTeX' acro #19): directiveabbreviationsand roles:acs:,:acl:,:acf:and their plurals, named as in LaTeX'acro- a list of abbreviations with long form, plurals and an optional description; a role writes the form it names and links to the list. In HTML, a short form shows its long form - optionally the description's summary (pyTooling_Abbreviation_ShowSummary) - in a box on hover. The list is sorted alphabetically unless:ordered: no. Domainabbreviationcollects the lists of all documents.pyTooling.Sphinx.CodeCoverage: directivesreport:code-coverageandreport:code-coverage-legend(Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20).report:code-coveragereads Cobertura XML or coverage.py's JSON through pyEDAA.Reports' format models;report:file-coveragereplaces the prototypereport:module-coverage(Code coverage pages per directory and source file, with a highlighted listing and the role ':cov:' #26). A package'slevelsmay be a palette of its own, a dictionary checked like the palettes inpyTooling_CodeCoverage_Levels(Coverage levels declared as a dictionary per package #42).pyTooling.Sphinx.CodeCoveragePages(Code coverage pages per directory and source file, with a highlighted listing and the role ':cov:' #26): a report declared withpagesandsourcesgets a page per directory (coverage, tables of its directories and files) and per file (coverage, missed lines, and the source as a listing highlighted by Pygments, each line marked covered, partial, uncovered or excluded, in HTML and LaTeX); the role:cov:links a file or directory page.pyTooling.Sphinx.CondensedClass: directivecondensed-class(CondensedClass, Transfer the Sphinx extension from pyTooling #2).pyTooling.Sphinx.CondensedSource(Documentation coverage: a page per package and module, with a condensed listing #35): the condensed listing of a source file for the documentation coverage pages, each declaration marked by its documentation state - also fields, module variables, protected and private names, and assignments insideif/try(Documentation coverage on pyEDAA.Reports' language-neutral model #39).pyTooling.Sphinx.DependencyTable: directivedependency-table(DependencyTable, Transfer the Sphinx extension from pyTooling #2).DependencyCollector.UnresolvedLicensesis keyed by the canonical package name, so a package whose license needs an override is reported once, under the key the override file is looked up by, not once per spelling (Report a package needing a license override once, by its canonical name #15).:depth:says so (Mark a dependency tree the depth limit cut off #28): a package whose own dependencies the limit cuts off gets a line … N more dependencies not expanded.-r, and every warning of a release's details other than an unknown license are reported as Sphinx warnings with entrypoint, file and line; they were dropped silently (Report broken requirements in dependency tables as Sphinx warnings #31).pyTooling.Sphinx.DocCoverage: directivesreport:doc-coverageandreport:doc-coverage-legend(Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20).pagesgets a page per package and module with a condensed listing of the source; role:doccov:;DocCoverageReportPages(Documentation coverage on pyEDAA.Reports' language-neutral model #39).levelsmay be a palette of its own, checked like the palettes inpyTooling_DocCoverage_Levels(Coverage levels declared as a dictionary per package #42).pyTooling.Sphinx.ExternalLink(External link icons #36): an icon behind each external link in HTML, chosen by its host - GitHub, GitLab, Python (also PyPI), NumPy, PyPy, pytest, Pydantic, Read the Docs, Sphinx -, an envelope for an e-mail address, a square with an arrow otherwise; a:download:link gets a download icon, an archive (.zip,.tar.gz,.tar.zst, …) a zipper icon. Links open in a new tab; download links show their size, other sites' files only from an allow-list (pyTooling_ExternalLink_*); sphinx_rtd_theme's own download glyph is hidden.pyTooling.Sphinx.GitHubMarkdownandpyTooling.Sphinx.Markdown(GitHub-flavoured Markdown converted into docutils nodes #38): GitHub-flavoured Markdown converted into docutils nodes -GitHubMarkdown(owner, repository, ...)with markdown-it-py and the GFM plugin: headings as topics, GitHub alerts as admonitions, task lists, tables, footnotes, raw HTML converted (never passed through), every line break a break as in release notes; GitHub references (#123,owner/repo#123,@user, commit hashes) linked byParse; emoji shortcodes and characters asEmojinodes from github/gemoji's table (MIT); shields.io badges fetched as PNG in LaTeX, other SVG images converted bysphinx.ext.imgconverter(ImageMagick).pyTooling.Sphinx.Node,pyTooling.Sphinx.HTML,pyTooling.Sphinx.LaTeX: node classes (RegisteredNode,visitFunc,departFunc) and their visitors per output format (Draw a hierarchy as a tree with the 'tree' directive #18).Landscape(LaTeXlandscapeenvironment, Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20); the tree's nodes (Draw a hierarchy as a tree with the 'tree' directive #18, tree: descriptions in a second column #29, tree: a legend explaining the icons #32);CopyButton(unicode-table: icons with their Unicode names, code points and copy buttons #34);CoverageListing(Code coverage pages per directory and source file, with a highlighted listing and the role ':cov:' #26),DocCoverageListing(Documentation coverage: a page per package and module, with a condensed listing #35);Emoji,TaskListCheckbox,LineBreak(GitHub-flavoured Markdown converted into docutils nodes #38).ReportIndentation(Report tables indent a name by markup instead of em quads #45): a report table indents a name by markup - in HTML a padding of--pyTooling-report-indentationper step (CSS custom property, default1em), in LaTeX\pyToolingReportIndentation, which sets\leftskipby\pyToolingReportIndentationStepper step; a wrapped name stays at its indentation. The em quads before a name (sphinx-reports' indentation) were a line-break opportunity, so a deep name wrapped below its indentation in a narrow column, and they were copied with the name.pyTooling.Sphinx.Pages(Share the page machinery of the unit test reports with other reports #25):ReportPages, the page machinery shared by every report kind - document names, registration, generation, navigation,HasPages()/GetPages(),CreateReference().pyTooling.Sphinx.Resources: the stylesheetpyTooling.css(Transfer the Sphinx extension from pyTooling #2), the scriptpyTooling.jsof the copy buttons (unicode-table: icons with their Unicode names, code points and copy buttons #34), the LaTeX packagepyTooling.Sphinx.styfor:strike:/:underline:and the report indentation (GitHub-flavoured Markdown converted into docutils nodes #38, Report tables indent a name by markup instead of em quads #45), GitHub's emoji tableGitHubEmoji.txt(GitHub-flavoured Markdown converted into docutils nodes #38).pyTooling.Sphinx.Roles: the style and break roles (Transfer the Sphinx extension from pyTooling #2).pyTooling.Sphinx.SchemaGraphandpyTooling.Sphinx.XMLSchemaGraph: directivexmlschema-graph(XMLSchemaGraph, on the language-neutralSchemaGraph; namedxsd-graphin pyTooling, renamed in Rename the directive xsd-graph to xmlschema-graph #7; option:package:draws a package's resource file, Draw a schema shipped in a package with 'xmlschema-graph' #23).DotGraphis apyTooling.Graph.GraphViz.Graphwith the shared look,AddRecord()andGetOrAddNode()(Build the schema graph on pyTooling.Graph.GraphViz #4); it calls pyTooling's renamedContainsNode(Call pyTooling's renamed 'ContainsNode' #14).pyTooling.Sphinx.Shields: directiveshields(Shields, Transfer the Sphinx extension from pyTooling #2).pyTooling.Sphinx.Tree: directivetree(Tree, Draw a hierarchy as a tree with the 'tree' directive #18) - a hierarchy written as an indented list, drawn as a tree. An entry's text is inline ReST, so roles link; markers choose an icon per entry (-by kind: root, node, leaf; more declared by:icons:);:expanded-levels:sets what is expanded initially. HTML draws each entry with children as a foldable<details>element, and the stylesheet draws the lines; other builders write a nested bullet list. An entry may have a description behind|, drawn as a second, aligned column (tree: descriptions in a second column #29). Legend (tree: a legend explaining the icons #32): an icon option takes a text behind|;:legend:(LegendPosition:top,bottom- default -,hidden) draws a legend of the icons above or below the tree; formats drawing no icons get none (RemoveTreeLegends).pyTooling.Sphinx.UnicodeTable(unicode-table: icons with their Unicode names, code points and copy buttons #34): directiveunicode-table- icons with their Unicode names and code points, each with a copy button in HTML;CodePointandCodePointType; LaTeX writes the table without the icons' column (RemoveUnicodeGlyphs).pyTooling.Sphinx.Unittest: directivereport:unittest-summary(Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20). Reports in pyTooling's XML format (<TestReport>) are read besides JUnit XML (Pages per testsuite and testcase, and the roles ':tc:' and ':ts:' #21).pyTooling.Sphinx.UnittestPages(Pages per testsuite and testcase, and the roles ':tc:' and ':ts:' #21): a unit test report declared withpagesgets a page per testsuite and testcase, generated without source files: status, counts, duration, the message and details of a failure, the captured standard output and standard error, and a pyTooling report's title, summary and description. The summary table links to them, and they are in the navigation below the summary's document.UnittestReportPagesderives fromReportPages(Share the page machinery of the unit test reports with other reports #25). Roles:tc:and:ts:(also:report:tc:,:report:ts:) refer to a testcase or testsuite by qualified name, a unique suffix of it, and an optional report ID.pyTooling.Sphinx.Workaround:FixLatexTableWidths, so LaTeX keeps the column widths a report table states (Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20).setup.py,pyproject.toml) as for pyEDAA.Reports, a namespace package next to pyTooling: Python 3.12 to 3.15 (Sphinx 9.1 requires Python 3.12; 3.15 since Python 3.15 and pyTooling/Actions@r9 #40), development status alpha, requirementspyTooling[pypi] >= 10.0.0rc2, < 11.0,sphinx >= 9.1,xmlschema ~= 4.3; extrareports:pyEDAA.Reports ~= 0.20.0rc1; extramarkdown:markdown-it-py ~= 4.2,mdit-py-plugins ~= 0.6(GitHub-flavoured Markdown converted into docutils nodes #38) (all from PyPI since Requirements from PyPI for the v0.1.0rc1 release #37;docstr_coveragedropped by Documentation coverage on pyEDAA.Reports' language-neutral model #39). The wheel has nopyTooling/__init__.py, so thepyToolingnamespace stays open for pyTooling and its sibling distributions.pyTooling/Sphinx/__init__.py:__version__ = "0.1.0rc1", author, copyright, license, keywords and project URLs.Bug Fixes
pyTooling.Sphinx.Shields(compared with pyTooling'spyTooling.Documentation.Sphinx): the badgegithubis 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.Reportsas 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
NOTICE.md(NOTICE.md: content of other projects and their licenses #41): content of other projects with source and license - GitHub's emoji table from github/gemoji (MIT) in the package, release notes of GHDL, OSVVM and pyTooling as test data; the README's License section links it, anddoc/Dependency.rstlists the bundled data under the extramarkdownand the test data under the test dependencies (rubric Test Data). Dependency page: the extramarkdownand image conversion with ImageMagick (GitHub-flavoured Markdown converted into docutils nodes #38).levelsas a dictionary (Coverage levels declared as a dictionary per package #42).doc/(Restructure the documentation #8): a landing page with the badges (including Codacy's), the Python 3.12 requirement, the setup inconf.py, an overview of the roles and directives, contributors and license; News, Installation, Dependencies (rendered withdependency-table), Competing Solutions (Move the competing solutions to a page of their own #9); a page per role group and per directive (jsonschema-graphas planned); the class reference and the reports of unit tests, code and documentation coverage and static type checking; Glossary and TODOs. The documentation uses its own roles and directives.FEATURES, as in pyTooling.GitHub and pyEDAA.CLITool (Label the roles and directives 'FEATURES' #12).--pyTooling-report-indentationand\pyToolingReportIndentationStep(Report tables indent a name by markup instead of em quads #45).ghactions(Name pyTooling.GitHub's Sphinx domain 'ghactions' #13).ghrole (Link GitHub repositories with the 'gh' role #17).treedirective, with examples, the content rules, the options and the CSS custom properties (Draw a hierarchy as a tree with the 'tree' directive #18); descriptions, with the code coverage data model as example (tree: descriptions in a second column #29).abbreviationsdirective and its roles, with rendered examples, the configuration value and the CSS custom properties (List abbreviations with the 'abbreviations' directive, and refer to them like LaTeX' acro #19).:tc:/:ts:, with a JUnit and a pyTooling example report rendered with pages; the navigation has no depth limit (Pages per testsuite and testcase, and the roles ':tc:' and ':ts:' #21).:depth: 1and cut their trees (Expand the dependency tables without a depth limit #27).sourcesandpages, the listing's states, the role,report:file-coverage, examples rendered from coverage.py and VHDL fixtures; the documentation's own code coverage report gets pages (Code coverage pages per directory and source file, with a highlighted listing and the role ':cov:' #26).dependency-table: the:depth:option describes the marker (Mark a dependency tree the depth limit cut off #28).treelegend (tree: a legend explaining the icons #32), theunicode-tabledirective with the icons a tree commonly uses (unicode-table: icons with their Unicode names, code points and copy buttons #34), the documentation coverage pages (Documentation coverage: a page per package and module, with a condensed listing #35) and the external link icons (External link icons #36); the documentation uses all of them, intersphinx links included.doc/Dependency.PackageOverrides.yaml: docutils isBSD-2-Clause AND BSD-3-Clause; the eLyXer-derived files were relicensed as BSD-2-Clause (Correct docutils' license in the override file #16).run.ps1(from pyTooling; builds the documentation withsphinx.cmd.builddirectly, so there is nodoc/make.bat).README.mdfollows the landing page - summary, requirements, setup, roles and directives, consumers (Align the README with the landing page #11) - with the Codacy badges;LICENSE.md(Apache 2.0).Unit Tests
tests/unit/Extension.py: smoke tests of the metadata, the roles, directives and nodessetup()registers, the substitutions, the style roles and the stylesheet;treebuilt as HTML and LaTeX (Draw a hierarchy as a tree with the 'tree' directive #18).tests/unit/Tree.py: thetreedirective's content parser and icon options (Draw a hierarchy as a tree with the 'tree' directive #18), and its descriptions (tree: descriptions in a second column #29).tests/unit/Abbreviation.pyandtests/unit/Extension.py: the abbreviation forms, the domain, and built lists and roles in HTML and LaTeX (List abbreviations with the 'abbreviations' directive, and refer to them like LaTeX' acro #19).tests/unit/DataModel.py,Adapter.py,CodeCoverage.py,Unittest.py,Reports.py: the report data model, the Coverage.py adapter, the configuration checks, and builds in HTML and LaTeX, also withoutpyEDAA.Reportsinstalled (Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx #20).tests/unit/UnittestPages.py: the generated pages, the navigation, the roles, the domain data and a LaTeX build (Pages per testsuite and testcase, and the roles ':tc:' and ':ts:' #21).tests/unit/CodeCoveragePages.py: document names, compacted directories, file and directory pages, navigation, LaTeX and the role:cov:; fixtures intests/data/CodeCoverage/(Code coverage pages per directory and source file, with a highlighted listing and the role ':cov:' #26).tests/unit/SchemaGraph.py: the schema graph and thexmlschema-graphrendering (Build the schema graph on pyTooling.Graph.GraphViz #4).tests/unit/DependencyTable.pyandtests/unit/Shields.py: pyTooling's testcases ofDependencyTableandShields, moved (Move pyTooling's testcases of DependencyTable and Shields #5).@testsuite/@testcase, with a title and a doc-string of what and how it checks (Mark the testcases with @testsuite and @testcase #6).tests/unit/DependencyTable.py: broken requirement lines and warnings of a release's details (Report broken requirements in dependency tables as Sphinx warnings #31).tests/unit/Tree.py: the legend (tree: a legend explaining the icons #32);tests/unit/UnicodeTable.py: content, names, code points (unicode-table: icons with their Unicode names, code points and copy buttons #34);tests/unit/DocCoverage.py(Documentation coverage: a page per package and module, with a condensed listing #35, Documentation coverage on pyEDAA.Reports' language-neutral model #39: the new model, documentation states, unreadable files,if/tryassignments);tests/unit/ExternalLink.pyandtests/unit/Download.py: link marking, icons, new tab, download sizes with a local HTTP server (External link icons #36).tests/unit/Extension.py: the LaTeX defaults, set inconf.pyand on the command line (LaTeX defaults: table style 'booktabs' and a list depth of 10 #43);tests/unit/CodeCoverage.py,tests/unit/DocCoverage.py:levelsas a dictionary (Coverage levels declared as a dictionary per package #42).tests/unit/Shields.py: the escapedgithubbadge (Escape '-' and '_' in the 'github' badge #22);tests/unit/Extension.py: a parallel build with two processes (Let the report domain take part in a parallel build #24);tests/unit/Reports.py: indented names in HTML and LaTeX (Report tables indent a name by markup instead of em quads #45).GitHub Pipeline
Pipeline.ymlonCompletePipeline.yml@r9(Add the pipeline #3,@r9since Python 3.15 and pyTooling/Actions@r9 #40): Python 3.12 to 3.15 on Linux, macOS and Windows, packaging, installation, documentation, static type check, Bandit, test reports, coverage to Codecov and Codacy, GitHub Pages.coverage_html: 'false': coverage.py's HTML report doesn't overwrite the documentation's own code coverage pages belowcoverage/on GitHub Pages (Python 3.15 and pyTooling/Actions@r9 #40).Known Issues
pylintis off (~550 messages on code pyTooling never ran pylint on).Related Issues and Pull-Requests
pyTooling.Graph.GraphViz.DependencyTableandShields.@testsuiteand@testcase.xsd-graphrenamed toxmlschema-graph.FEATURES.ghactions(with Rename the Sphinx domain 'gha' to 'ghactions' pyTooling.GitHub#11).ContainsNode(after Name membership tests 'Contains***' pyTooling#484).ghrole (with Link GitHub repositories, issues and runs with the 'gh' role pyTooling.GitHub#13).treedirective.abbreviationsdirective and its roles.reportof sphinx-reports.:tc:and:ts:.githubbadge escapes-and_of organization and repository.xmlschema-graphdraws a schema shipped in a package (:package:).reporttakes part in a parallel build (merge_domaindata).tree: descriptions in a second column.:cov:.tree: a legend explaining the icons.unicode-tabledirective.pyTooling.GitHubandpyTooling.Sphinx.