Skip to content

Automate json#307

Draft
tomschr wants to merge 321 commits intomainfrom
automate-json
Draft

Automate json#307
tomschr wants to merge 321 commits intomainfrom
automate-json

Conversation

@tomschr
Copy link
Copy Markdown
Contributor

@tomschr tomschr commented Jan 16, 2025

No description provided.

tomschr and others added 30 commits June 7, 2024 17:48
and as version the different projects
Find the <format> element for the requested DC file in the
deliverable section or in the default language (English).
If nothing is available, we default to HTML.
Using asyncio inside a Python script.
Create a homepage.json
Depending on tuple, dicts, or None, we need to call a command
as cmd(), cmd(*args), or cmd(**args).

Makes the commands more flexible
FutureWarning: This search incorrectly ignores the root element,
and will be fixed in a future version.
If you rely on the current behaviour, change it to
".//product[@ProductID='...']/maintainers/contact"
Disable the checkout_maintenance_branches task (again)
If SLES/15-SP6/en-us is requested, write all data to the file
JSON_CACHE_DIR/en-us/sles/15-SP6.json
Reuse this property in other properties
Set default value "" to subtitle, seo_description, seo_social_descr, and dateModified
Convert them into a real dict[str, bool] with convert2bool
* Don't use English as it's the default
* Use "/" before any other path
* Introduce _base_format_path(self, fmt: str) to be used for
  html and single-html
Disable the iofiles.open and indextmp.render_async call
* Use .expanduser() to expand the tilde in paths to home dir
* Use Mapping instead of dict
Whenever you call "git" inside a Python script, it will also
use "~/.gitconfig". In most cases, this doesn't cause problems.

However, if you use url.*.insteadOf rules in your config, Git
will rewrite the HTTPS GitHub URLs into SSH. This may cause
some weird issues. Don't do that.

=> Hermetic behavior. Any script that uses this approach
is insulated from variations in user or system Git setups,
leading to a more reliable and predictable outcomes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant