Skip to content

Move all required conf.py variables to generated wrapped conf.py so default user conf.py is blank#203

Merged
tfoote merged 3 commits into
ros-infrastructure:mainfrom
rkent:move-vars-to-wrapped-conf
Oct 3, 2025
Merged

Move all required conf.py variables to generated wrapped conf.py so default user conf.py is blank#203
tfoote merged 3 commits into
ros-infrastructure:mainfrom
rkent:move-vars-to-wrapped-conf

Conversation

@rkent

@rkent rkent commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Currently, the default user conf.py that is generated includes things like the package version, which must then be manually updated to match the version in package.xml. Frequently this is not done, so there is a version mismatch.

Really there is no reason currently why version = is recommended in conf.py as that is set automatically by the wrapping conf.py. But it is unclear to users (and to me for that matter) what is really required in a user-defined conf.py.

So this PR moves all of the required settings for conf.py to the wrapping conf.py, so that the correct, default user conf.py is simply blank. That way, package authors can be encouraged to only include changed or extra variables in their conf.py

This PR got expanded with a few cleanups that this change encouraged, plus changes in the README to remove unnecessary recommendations to create a user conf.py in certain circumstances (pus a few drive-by changes to README in the process.

rkent added 2 commits October 1, 2025 12:27
… to add changes. Update README.

Signed-off-by: R Kent James <kent@caspia.com>
Generated-by: Portions of this commit may include code completion from github.copilot version 1.372.0 or later
Signed-off-by: R Kent James <kent@caspia.com>
Generated-by: Portions of this commit may include code completion from github.copilot version 1.372.0 or later
@rkent rkent requested review from audrow and tfoote as code owners October 1, 2025 20:09
…rks.

Signed-off-by: R Kent James <kent@caspia.com>
Generated-by: Portions of this commit may include code completion from github.copilot version 1.372.0 or later

@tfoote tfoote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this it looks like a lot cleaner and easier to maintain in the long run.

@tfoote tfoote merged commit fcdd2f9 into ros-infrastructure:main Oct 3, 2025
5 checks passed
@rkent rkent deleted the move-vars-to-wrapped-conf branch November 22, 2025 21:26
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