Skip to content

v1.0.0 - #89

Merged
Paebbels merged 22 commits into
mainfrom
dev
Oct 28, 2026
Merged

Paebbels merged 22 commits into
mainfrom
dev

Conversation

@pytooling-claude

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

Copy link
Copy Markdown

Note

The first release of pyTooling.Sphinx, a stable one (development status Production/Stable); these notes describe the whole release. It requires pyTooling v10.1.0 and, for the extra reports, pyEDAA.Reports v1.0.0.

First release of pyTooling.Sphinx: the Sphinx extension of the pyTooling family as a package of its own, with its repository infrastructure and pipeline. It was developed in pyTooling's dev branch and moved here before any pyTooling release contained it; the domain report comes from sphinx-reports v0.11.2.

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:

Breaking Changes

Warning

Migrating from sphinx-reports v0.11.2: pyTooling.Sphinx takes over its domain report (#20). These items break a documentation set up for sphinx-reports; a project new to pyTooling.Sphinx isn't affected.

Documentation

Unit Tests

GitHub Pipeline

Known Issues

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

Others

  • f-strings without placeholder are plain strings: f"…" became "…" (2 strings in doc/conf.py); every string keeps its value (f-strings without placeholder are plain strings #56).
  • One from <module> import statement per module and scope, continued by \ (403 → 354 import statements); pyTooling.Sphinx.DependencyTable imports DependencyError, UnknownLicense and SPDXLicense at module level instead of per call (One import statement per module #75).

Related Issues and Pull-Requests

claude-code and others added 6 commits October 28, 2026 10:43
An entrypoint '{"pyproject": "../pyproject.toml"}' stands for the build
requirements of the file's '[build-system]' table (PEP 518), read by
pyTooling's PyProjectFile.Parse (pyTooling 10.1.0). The file is read while
conf.py is processed, like a requirements file: a missing or invalid file
ends the build with a message naming the entrypoint, an unparsable
requirement is a Sphinx warning, a file without '[build-system]' has no
build requirements. The field takes one path; a project has one
pyproject.toml file, so it has no plural form.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Packaging lists the build requirements of pyproject.toml through the new
'pyproject' entrypoint, Publishing the requirements of dist/requirements.txt,
as on pyTooling's dependencies page.

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

pyTooling 10.0.0 renamed the extra 'pypi' to 'dependencies'. Three
MissingDependencyError raises (requests, packaging) still advised
'pyTooling[pypi]', which installs nothing; #86 fixed only the aiohttp
message. The directive page's attention box and a doc-string named the old
extra too.

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

New configuration value 'pyTooling_ProjectRoot': the project's root
directory, relative to conf.py. Unset, it is the parent of conf.py's
directory, so 'doc/conf.py' needs no setting and 'docs/sphinx/conf.py'
sets '../..'.

The field 'pyproject' takes:
* True: 'pyproject.toml' in the project root;
* a path relative to the project root, e.g. 'package/pyproject.toml'
  (an absolute path as it is);
* None: a project without such a file - nothing is read, the table is
  empty.
False, an empty string and other types end the build with a message
naming the accepted values. readEntrypoints() takes the project root as
a third parameter; prepareEntrypoints() computes it.

The documentation's own entrypoint 'packaging' is '{"pyproject": True}'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 28, 2026 15:24
@pytooling-claude pytooling-claude Bot added CI: GitHub Actions Continuous Integration issues related to GitHub Actions (Windows, Linux and MacOS) Dependencies Used by Dependabot. Documentation Improvements or additions to documentation Enhancement New feature or request labels Oct 28, 2026
New directive options:
* ':duplicates: Expanded | Collapsed | Reference' (default Collapsed): how a
  tree shows the dependencies of a duplicate - a package whose dependencies an
  earlier line of the table already shows. Collapsed folds them below a marker
  '... 17 dependencies, listed at sphinx' linking to that line; HTML unfolds
  them on a click (<details>, new nodes FoldedDependencies/FoldedSummary).
  Reference shows the marker alone. LaTeX, text, man and Texinfo get the
  marker without link (post-transform ReplaceFoldedDependencies).
* ':duplicate-match: Exact | Subset | Name' (default Subset): same release
  and extras / same release and the original's extras or fewer / any.

Every first-level row is an original, so a dependency listed in a row of its
own links to that row; otherwise the first line in reading order is the
original, also for a package two trees share further down. A line whose
dependencies the depth limit cut off is no original. A duplicate keeps its
own line (version constraint, license).

A package is shown with its requirement's extras, sorted:
'pyTooling[dependencies]'. Several statements of a package in one entrypoint
(files, '-r' includes, published packages, pyproject.toml) keep the last
statement's constraint with the extras of all of them, as pip does.

pyTooling.Sphinx's own documentation folds 16 duplicates; every link has a
target.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
claude-code and others added 4 commits October 28, 2026 18:13
…items

* DuplicateFormat and DuplicateMatch are StringEnums with DEFAULT
  (Collapsed, Subset), read by their Parse as option converters, like
  LegendPosition. The option values are lower case: ':duplicates: collapsed',
  ':duplicate-match: subset'. DEFAULT_DUPLICATE_FORMAT/-MATCH are gone.
* Every bullet list of a dependency tree is marked 'compact'. docutils makes
  a list 'simple' only if each item is a paragraph and at most one list; an
  item with folded dependencies (paragraph + <details>) made the whole list
  non-simple, so the theme kept the paragraph margins of every line in it -
  the gaps around the fold and before the nested lists of its siblings.
  pyTooling.Sphinx's dependency page: all 27 trees are 'simple' now.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The marker of a duplicate reads '… same 4 dependencies as listed at
requests' (was '… 4 dependencies, listed at requests'), so it says these are
the same dependencies as at the linked line.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* An original's anchor is a readable ID on its whole table row or list
  item: 'dependency-<entrypoint>-<package>' with the extras, e.g.
  '#dependency-documentation-requests' (was a counted 'id7' on the text
  line). It reads well in a URL and doesn't change when something earlier on
  the page adds an ID. A second original of the same name gets '-2'; the ID
  is registered with the document, which keeps it unique on the page.
* pyTooling.css: the row or list item a marker links to ('tr:target > td',
  'li:target') is highlighted after the jump: its background fades from
  Sphinx' highlight yellow to its own in 2.5 s (no 'to' keyframe, so a
  theme's row stripe comes back). With 'prefers-reduced-motion: reduce' the
  highlight stays. Custom property '--pyTooling-table-target-color'.

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

codacy-production Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 medium · 10 minor

Alerts:
⚠ 12 issues (≤ 0 issues of at least minor severity)

Results:
12 new issues

Category Results
UnusedCode 1 minor
Documentation 2 minor
CodeStyle 6 minor
Complexity 2 medium
1 minor

View in Codacy

🟢 Metrics 82 complexity · 0 duplication

Metric Results
Complexity 82
Duplication 0

View in Codacy

🟢 Coverage 87.79% diff coverage · +0.31% coverage variation

Metric Results
Coverage variation ✅ +0.31% coverage variation (-1.00%)
Diff coverage ✅ 87.79% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (1619c37) 5047 4477 88.71%
Head commit (0fabb17) 5197 (+150) 4626 (+149) 89.01% (+0.31%)

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 (#89) 262 230 87.79%

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%

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 3 commits October 28, 2026 19:31
Like DuplicateFormat, DuplicateMatch and LegendPosition: a StringEnum with
DEFAULT, whose Parse is the option converter. A document writes the values in
lower case with dashes:

  :version-format:    major | major-minor (default) | major-minor-patch | all
  :dependency-format: package | package-version | package-license |
                      package-version-license (default)

The member names (MajorMinor, PackageVersionLicense) were accepted before,
case-insensitive; no project here uses the two options outside this
documentation. DependencyTable._ParseFormatOption, its TypeVar and the module
constants DEFAULT_VERSION_FORMAT and DEFAULT_DEPENDENCY_FORMAT are removed;
the enums' __str__ returning the member name is gone, a member is its value.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
LegendStyle was a Flag (Table, Horizontal, Vertical and the combinations
horizontal_table/vertical_table), read by BaseDirective._ParseEnumOption,
which lower-cased the value and turned dashes into underscores. Only the two
combinations were ever chosen, so it is a StringEnum now, like the other
option enumerations: HorizontalTable = "horizontal-table" (DEFAULT),
VerticalTable = "vertical-table". Its Parse is the option converter of
report:code-coverage-legend and report:doc-coverage-legend; documents keep
writing ':style: vertical-table'. The directives compare the member instead
of testing bits.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Its only callers were the two coverage legends, which read LegendStyle with
its Parse as option converter now. No other repository uses it. The TypeVar
_EnumType and the imports of Enum, Flag and TypeVar go with it.

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

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.59004% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.14%. Comparing base (1619c37) to head (3be6fde).
⚠️ Report is 7 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
pyTooling/Sphinx/DependencyTable.py 88.68% 24 Missing and 1 partial ⚠️
pyTooling/Sphinx/HTML.py 75.00% 4 Missing ⚠️
pyTooling/Sphinx/CodeCoverage.py 40.00% 1 Missing and 2 partials ⚠️
pyTooling/Sphinx/DocCoverage.py 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   86.72%   87.14%   +0.42%     
==========================================
  Files          24       24              
  Lines        5047     5197     +150     
  Branches      804      833      +29     
==========================================
+ Hits         4377     4529     +152     
- Misses        570      571       +1     
+ Partials      100       97       -3     
Flag Coverage Δ
unittests 87.14% <86.59%> (+0.42%) ⬆️

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

claude-code and others added 3 commits October 28, 2026 21:43
The package's classifier changes from "3 - Alpha" to "5 - Production/Stable" for the v1.0.0 release.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The extra required 'pyEDAA.Reports ~= 0.20.0rc1'; the unit tests and the documentation installed pyEDAA.Reports
from its 'dev' branch. All three name the release v1.0.0 now, and the message of a missing pyEDAA.Reports when
reading a code coverage report asks for '>= 1.0'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The News section is 'Version 1.x (2026)' (as pyTooling's News) with the topic v1.0.0, the first and stable
release; release candidates aren't named. It names the requirements pyTooling 10.1 and, for the extra 'reports',
pyEDAA.Reports 1.0. The wheel names on the installation page carry the version 1.0.0.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude pytooling-claude Bot changed the title v0.1.0-rc8 v1.0.0 Oct 28, 2026
@Paebbels
Paebbels merged commit 9809947 into main Oct 28, 2026
41 of 42 checks passed
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 29, 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

CI: GitHub Actions Continuous Integration issues related to GitHub Actions (Windows, Linux and MacOS) Dependencies Used by Dependabot. Documentation Improvements or additions to documentation Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants