Bump antsibull-docs to 2.10.0 (#1268)

* Bump antsibull-docs to 2.10.0.

* Replace sh usage with subprocess.
This commit is contained in:
Felix Fontein
2024-04-17 19:39:10 +02:00
committed by GitHub
parent 87d8d5b5d4
commit adb97e4daa
4 changed files with 30 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ import os
import os.path
import pathlib
import shutil
import subprocess
from tempfile import TemporaryDirectory
import yaml
@@ -148,11 +149,14 @@ def generate_core_docs(args):
def generate_full_docs(args):
"""Regenerate the documentation for all plugins listed in the plugin_to_collection_file."""
# imports here so that they don't cause unnecessary deps for all of the plugins
import sh
from antsibull_docs.cli import antsibull_docs
with TemporaryDirectory() as tmp_dir:
sh.git(['clone', 'https://github.com/ansible-community/ansible-build-data'], _cwd=tmp_dir)
subprocess.run(
['git', 'clone', 'https://github.com/ansible-community/ansible-build-data'],
check=True,
cwd=tmp_dir,
)
# If we want to validate that the ansible version and ansible-core branch version match,
# this would be the place to do it.