Skip to content

DependencyTable: requirements files are read by 'RequirementsFile.Parse' - #53

Merged
Paebbels merged 1 commit into
devfrom
claude/requirements-file-parse
Oct 20, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/requirements-file-parse

Conversation

@pytooling-claude

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

Copy link
Copy Markdown

pyTooling's RequirementsFile doesn't read a file in its initializer anymore (pyTooling/pyTooling#585): reading moved into the classmethod RequirementsFile.Parse(path). Called with a path only, the new initializer builds an empty requirements file - nothing raises, so every dependency-table read from a requirements file would come out empty.

Note

pyTooling v10.0.0-rc4 (pyTooling/pyTooling#587) contains pyTooling/pyTooling#585 and is on PyPI, so CI can install it now. The branch is rebased onto dev.

Changes

  • pyTooling.Sphinx.DependencyTable:
    • readEntrypoints reads a requirements file with RequirementsFile.Parse(path) instead of RequirementsFile(path).

Others

  • requirements.txt: pyTooling[pypi] >= 10.0.0rc4, < 11.0 (was >= 10.0.0rc2), the first release with RequirementsFile.Parse. doc/Dependency.rst renders its table from this file.

Unit Tests

  • No test changes. Locally against pyTooling 10.0.0rc4: 425 passed. Against pyTooling dev without Parse: 7 tests fail with an AttributeError, so the switch is covered.

Related Issues and Pull-Requests

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

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.

…se'.

pyTooling's 'RequirementsFile' doesn't read a file in its initializer anymore (pyTooling/pyTooling#585): called with a
path only, it builds an empty requirements file, so every 'dependency-table' read from a file came out empty without
an error. 'readEntrypoints' calls the classmethod 'RequirementsFile.Parse(path)'. The pyTooling floor rises to the
release containing it.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot force-pushed the claude/requirements-file-parse branch from f2b9039 to 1c4cc8f Compare October 20, 2026 07:27
@pytooling-claude
pytooling-claude Bot marked this pull request as ready for review October 20, 2026 07:27
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 20, 2026 07:27
@Paebbels
Paebbels merged commit dc71666 into dev Oct 20, 2026
39 of 41 checks passed
@Paebbels
Paebbels deleted the claude/requirements-file-parse branch October 20, 2026 07:32
Paebbels added a commit that referenced this pull request Oct 20, 2026
…ng 10.0.0rc4.

pyTooling.Sphinx requires pyTooling 10.0.0rc4 since #53, so the workarounds of #58 for rc3 go:
'DependencyCollector.Seconds' returns 'Stopwatch.ActivityInSeconds', and a table's time is
'Stopwatch.DurationInSeconds'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
vhdl-claude Bot pushed a commit to VHDL/pyVHDLModel that referenced this pull request Oct 21, 2026
pyTooling 10.0.0rc4 reads a requirements file included twice - 'tests/unit' and 'tests/typing' both include
'requirements.txt' - instead of reporting a circular include (pyTooling/pyTooling#601). The workaround of #193
listing both files goes. pyTooling.Sphinx 0.1.0rc5 is the first release reading requirements files the way
pyTooling 10.0.0rc4 needs (pyTooling/pyTooling.Sphinx#53).

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants