-
Notifications
You must be signed in to change notification settings - Fork 20
Upgrade sphinx-needs to 6.3.0 #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Upgrade sphinx-needs to 6.3.0 #361
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //src:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
ubmarco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's update SN in a first step, then do the schema validation translation.
Which Sphinx version is resolved now? We should also set a minimum version, to also fix deprecations and use latest features. Can also do that in another PR.
sphinx==8.2.3, the same than before the sphinx-needs update. I committed the minimum version directly in requirements.in. |
|
This looks way less complex than expected for that update 👍
|
Yes, at least the score doc built locally with that update.
I just applied, waiting for approval.
In fact I found the script and had some problem running it. Seems like ruff / actionlint are not found. Maybe I didn't setup my devcontainer correctly? (ide_support ran successfully) |
AlexanderLanin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
276c5ce to
fd6645c
Compare
| kwargs.setdefault("id", "test_need") | ||
| kwargs.setdefault("type", "requirement") | ||
| kwargs.setdefault("title", "") | ||
| kwargs.setdefault("status", None) | ||
| kwargs.setdefault("tags", []) | ||
| kwargs.setdefault("collapse", False) | ||
| kwargs.setdefault("hide", False) | ||
| kwargs.setdefault("layout", None) | ||
| kwargs.setdefault("style", None) | ||
| kwargs.setdefault("external_css", "") | ||
| kwargs.setdefault("type_name", "") | ||
| kwargs.setdefault("type_prefix", "") | ||
| kwargs.setdefault("type_color", "") | ||
| kwargs.setdefault("type_style", "") | ||
| kwargs.setdefault("constraints", []) | ||
| kwargs.setdefault("arch", {}) | ||
| kwargs.setdefault("sections", ()) | ||
| kwargs.setdefault("signature", None) | ||
| kwargs.setdefault("has_dead_links", False) | ||
| kwargs.setdefault("has_forbidden_dead_links", False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a bit excessive.
Do we really need to declare all the defaults again? Can't we take the ones from sphinx-needs internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional change? Is that new?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah this includes all change on main branch somehow! Can you try rebasing or whatever to clean that up?
Add support for new options (is_import, constraints) introduced in 6.3.0 and remove the plantuml workaround that was only needed for older versions.
…test_source_code_link_integration
fd6645c to
a7b7354
Compare
|
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two questions.
Though those can be also clarified after merge
| source_content_keys = { | ||
| "docname", | ||
| "lineno", | ||
| "lineno_content", | ||
| "external_url", | ||
| "is_import", | ||
| "is_external", | ||
| "doctype", | ||
| "content", | ||
| "pre_content", | ||
| "post_content", | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this?
| actual_links: set[str] = ( | ||
| set(actual_source_code_link.split(", ")) | ||
| if actual_source_code_link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will always be true as it has a default value:
treq_info.get("source_code_link", "no source link")

Upgrade sphinx-needs to 6.3.0
📌 Description
Upgrade sphinx-needs to version 6.3.0
Add support for new options (is_import, constraints) introduced in 6.3.0 and remove the plantuml workaround that was only needed for older versions.
🚨 Impact Analysis
✅ Checklist