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 os.path
import pathlib import pathlib
import shutil import shutil
import subprocess
from tempfile import TemporaryDirectory from tempfile import TemporaryDirectory
import yaml import yaml
@@ -148,11 +149,14 @@ def generate_core_docs(args):
def generate_full_docs(args): def generate_full_docs(args):
"""Regenerate the documentation for all plugins listed in the plugin_to_collection_file.""" """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 # imports here so that they don't cause unnecessary deps for all of the plugins
import sh
from antsibull_docs.cli import antsibull_docs from antsibull_docs.cli import antsibull_docs
with TemporaryDirectory() as tmp_dir: 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, # If we want to validate that the ansible version and ansible-core branch version match,
# this would be the place to do it. # this would be the place to do it.

View File

@@ -2,4 +2,4 @@
# and antsibull-docs that production builds rely upon. # and antsibull-docs that production builds rely upon.
sphinx == 7.2.5 sphinx == 7.2.5
antsibull-docs == 2.7.0 # currently approved version antsibull-docs == 2.10.0 # currently approved version

View File

@@ -20,9 +20,11 @@ ansible-pygments==0.1.1
# via # via
# antsibull-docs # antsibull-docs
# sphinx-ansible-theme # sphinx-ansible-theme
antsibull-changelog==0.26.0
# via antsibull-docs
antsibull-core==3.0.0 antsibull-core==3.0.0
# via antsibull-docs # via antsibull-docs
antsibull-docs==2.9.0 antsibull-docs==2.10.0
# via -r tests/requirements-relaxed.in # via -r tests/requirements-relaxed.in
antsibull-docs-parser==1.0.1 antsibull-docs-parser==1.0.1
# via antsibull-docs # via antsibull-docs
@@ -46,6 +48,7 @@ click==8.1.7
# via sphinx-intl # via sphinx-intl
docutils==0.18.1 docutils==0.18.1
# via # via
# antsibull-changelog
# antsibull-docs # antsibull-docs
# rstcheck # rstcheck
# sphinx # sphinx
@@ -73,6 +76,7 @@ multidict==6.0.5
# yarl # yarl
packaging==24.0 packaging==24.0
# via # via
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
# build # build
@@ -94,6 +98,7 @@ pyproject-hooks==1.0.0
pyyaml==6.0.1 pyyaml==6.0.1
# via # via
# -r tests/requirements-relaxed.in # -r tests/requirements-relaxed.in
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
requests==2.31.0 requests==2.31.0
@@ -104,9 +109,11 @@ rstcheck==5.0.0
# via # via
# -c tests/constraints-base.in # -c tests/constraints-base.in
# -r tests/requirements-relaxed.in # -r tests/requirements-relaxed.in
# antsibull-changelog
# antsibull-docs # antsibull-docs
semantic-version==2.10.0 semantic-version==2.10.0
# via # via
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
six==1.16.0 six==1.16.0

View File

@@ -14,13 +14,17 @@ aiosignal==1.3.1
# via aiohttp # via aiohttp
alabaster==0.7.16 alabaster==0.7.16
# via sphinx # via sphinx
annotated-types==0.6.0
# via pydantic
ansible-pygments==0.1.1 ansible-pygments==0.1.1
# via # via
# antsibull-docs # antsibull-docs
# sphinx-ansible-theme # sphinx-ansible-theme
antsibull-core==2.2.0 antsibull-changelog==0.26.0
# via antsibull-docs # via antsibull-docs
antsibull-docs==2.7.0 antsibull-core==3.0.0
# via antsibull-docs
antsibull-docs==2.10.0
# via # via
# -c tests/constraints.in # -c tests/constraints.in
# -r tests/requirements-relaxed.in # -r tests/requirements-relaxed.in
@@ -46,6 +50,7 @@ click==8.1.7
# via sphinx-intl # via sphinx-intl
docutils==0.18.1 docutils==0.18.1
# via # via
# antsibull-changelog
# antsibull-docs # antsibull-docs
# rstcheck # rstcheck
# sphinx # sphinx
@@ -73,16 +78,19 @@ multidict==6.0.5
# yarl # yarl
packaging==24.0 packaging==24.0
# via # via
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
# build # build
# sphinx # sphinx
perky==0.9.2 perky==0.9.2
# via antsibull-core # via antsibull-core
pydantic==1.10.15 pydantic==2.7.0
# via # via
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
pydantic-core==2.18.1
# via pydantic
pygments==2.17.2 pygments==2.17.2
# via # via
# ansible-pygments # ansible-pygments
@@ -92,6 +100,7 @@ pyproject-hooks==1.0.0
pyyaml==6.0.1 pyyaml==6.0.1
# via # via
# -r tests/requirements-relaxed.in # -r tests/requirements-relaxed.in
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
requests==2.31.0 requests==2.31.0
@@ -102,13 +111,13 @@ rstcheck==5.0.0
# via # via
# -c tests/constraints-base.in # -c tests/constraints-base.in
# -r tests/requirements-relaxed.in # -r tests/requirements-relaxed.in
# antsibull-changelog
# antsibull-docs # antsibull-docs
semantic-version==2.10.0 semantic-version==2.10.0
# via # via
# antsibull-changelog
# antsibull-core # antsibull-core
# antsibull-docs # antsibull-docs
sh==1.14.3
# via antsibull-core
six==1.16.0 six==1.16.0
# via twiggy # via twiggy
snowballstemmer==2.2.0 snowballstemmer==2.2.0
@@ -163,6 +172,7 @@ types-docutils==0.18.3
typing-extensions==4.11.0 typing-extensions==4.11.0
# via # via
# pydantic # pydantic
# pydantic-core
# rstcheck # rstcheck
urllib3==2.2.1 urllib3==2.2.1
# via requests # via requests