Changelog¶
0.2.4¶
- Released:
31.10.2025
- Full Changelog:
✨ Convert absolute to relative paths (PR #22)
A new configuration option needscfg_relative_path_fields was added to specify which Sphinx-Needs configuration fields containing file paths should be converted to relative paths in the exported TOML file.
Main use case are generated paths by build systems such as Bazel.
This allows to create more portable configuration files that can be used across different environments or directory structures. Committing
ubproject.tomlfiles to Git is only possible with stable paths.
0.2.3¶
- Released:
29.10.2025
- Full Changelog:
✨ New config needscfg_exclude_defaults (PR #20)
A new configuration option needscfg_exclude_defaults was added to control whether default Sphinx-Needs configuration values should be excluded from the exported TOML file.
This allows to generate cleaner configuration files by omitting settings that are already at their default values.
0.2.2¶
- Released:
29.10.2025
- Full Changelog:
✨ New needscfg builder (PR #18)
A new Sphinx builder called
needscfgwas added to generate theubproject.tomlfile without building the entire documentation. This allows to quickly generate or update the configuration file as needed.Additionally, the event for configuration collection was changed from
config-initedtoenv-before-read-docsto ensure that the Sphinx-Needs configuration is fully loaded.👌 Print diff (PR #17)
When configuration differs and needscfg_warn_on_diff is
True, the actual differences between the existing and new configuration are now printed to the console for easier debugging.
0.2.1¶
- Released:
28.10.2025
- Full Changelog:
This releases adds quality-of-life improvements and minor fixes.
📚 Restructure docs (PR #10 and PR #11)
A
Motivationpage was added to explain about problems and use-cases. Also an example for complex setups was added to illustrate how this extension can be used in real-world scenarios.🔧 Return metadata in setup (PR #12)
The extension now returns metadata such as version and whether it can be run in parallel in the
setup()call.👌 New config needscfg_exclude_vars (PR #13)
A new configuration option
needscfg_exclude_varswas added to customize which Sphinx-Needs configuration variables are excluded from the exported TOML file. See Excluded configurations for details.✨ Merge additional TOML files (PR #14)
A new configuration option
needscfg_merge_toml_fileswas added to specify additional TOML files to merge into the exportedubproject.toml. This allows to combine static configuration files with the dynamically generated one.
0.2.0¶
- Released:
28.10.2025
- Full Changelog:
This release reduce the complexity of content comparison and improves the configuration. It’s not backwards compatible as most of the configuration changed. Please check the updated documentation.
♻️ Remove hash based comparison (PR #8)
The configuration
needscfg_use_hashwas renamed to needscfg_warn_on_diff. Hashing is not required as the content can be compared directly. This is simpler with less config and less dependencies. Default isTrue.needscfg_overwrite now checks in all cases whether to overwrite differing files. Default is
Falseto prevent accidental overwrites.The configuration
needscfg_write_defaultswas renamed to needscfg_write_all to be more explicit about what it does. If enabled, all known Sphinx-Needs configuration is written, including defaults and not only explicitly set values. Default isFalse.Fix sorting of
needs_extra_optionswhich maybe given aslist[str]orlist[dict]. For the latter case it is sorted by thenamekey.
0.1.0¶
- Released:
28.10.2025
Initial release of Needs-Config-Writer
This version allows to write Sphinx-Needs TOML configuration files automatically during Sphinx builds to a customisable location.
Hash checking is supported to warn about changed configurations.