Repository navigation
Documentation: dependency tables from the 'dependency-table' directive - #64
Conversation
Dependency.rst listed the requirements in hand-written grid tables and said their sub-dependencies weren't evaluated. pyTooling.Sphinx' 'dependency-table' directive renders them from requirements.txt, tests/requirements.txt, doc/requirements.txt and dist/requirements.txt (conf.py: 'pyTooling_Dependency_Requirements'), with sub-dependencies and licenses read from PyPI. Licenses PyPI can't answer for, and the projects' own LICENSE files, come from Dependency.PackageOverrides.yaml, collected from the sibling repositories' files and reduced to the packages these tables show. The Packaging table stays hand-written: build requirements are in pyproject.toml only, which the directive doesn't read. Its text pointed to a build/requirements.txt that doesn't exist, and the table listed wheel instead of setuptools; both follow pyproject.toml now. Documentation build: no license-override warning; the only new warnings are 47 'Skipping release ... of package pytz' from the dependency resolver, as in pyTooling's own documentation. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| CodeStyle | 2 minor |
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (8f6bb1a) 71 45 63.38% Head commit (6dd350c) 71 (+0) 45 (+0) 63.38% (+0.00%) 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 (#64) 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%
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #64 +/- ##
=======================================
Coverage 61.97% 61.97%
=======================================
Files 1 1
Lines 71 71
Branches 13 13
=======================================
Hits 44 44
Misses 26 26
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Documentation
doc/Dependency.rst: the dependency tables of the package, unit testing (tests/requirements.txt), documentation and publishing are rendered by pyTooling.Sphinx' directivedependency-tableinstead of being written by hand. Each table now lists the sub-dependencies and their licenses as the package index states them, so the text no longer says that sub-dependencies aren't evaluated.doc/conf.py:pyTooling_Dependency_Requirementsdeclares the tables' entrypoints -requirements.txt,tests/requirements.txt,doc/requirements.txtanddist/requirements.txt;pyTooling_Dependency_PackageOverridesnames the license override file.doc/Dependency.PackageOverrides.yaml(new): licenses the package index doesn't state as an SPDX identifier, and the projects' own LICENSE files as link targets. Collected from the override files of pyTooling.Sphinx, pyEDAA.Reports and VHDLDomain, reduced to the packages these tables show. The build reports no package needing an override.pyproject.tomlonly, whichdependency-tabledoesn't read (a comment in the page says so). The section pointed to abuild/requirements.txtthat doesn't exist, and the table listedwheelinstead ofsetuptools; both followpyproject.tomlnow.[dependency-table] Skipping release '2004d' of package 'pytz': version format isn't supported.(one per old pytz release, reached through Sphinx → babel) from pyTooling's dependency resolver; pyTooling's own documentation shows the same lines. No other warning changed.Related Issues and Pull-Requests
dependency-table.ruamel.yaml.pyTooling.Sphinx[reports]brings it today through pyEDAA.Reports 0.20.0rc4; from pyTooling.Sphinx 0.1.0rc7 on, pyTooling.Sphinx requirespyTooling[yaml]itself (A license override file needs pyTooling's 'yaml' extra pyTooling/pyTooling.Sphinx#76).