Compare commits
1 Commits
tox-bindep
...
setuptools
Author | SHA1 | Date | |
---|---|---|---|
be56be7b24 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -59,6 +59,3 @@ ChangeLog
|
|||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
|
||||||
bindep.txt
|
|
||||||
packages.txt
|
|
@ -12,3 +12,4 @@ reno>=3.1.0 # Apache-2.0
|
|||||||
otc-sphinx-directives>=0.1.0
|
otc-sphinx-directives>=0.1.0
|
||||||
sphinx-minify>=0.0.1 # Apache-2.0
|
sphinx-minify>=0.0.1 # Apache-2.0
|
||||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata
|
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata
|
||||||
|
setuptools
|
||||||
|
@ -43,19 +43,15 @@ commands =
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
[testenv:docs-pdf]
|
[testenv:docs-pdf]
|
||||||
deps =
|
deps = {[testenv:docs]deps}
|
||||||
{[testenv:docs]deps}
|
|
||||||
{[testenv:bindeps]deps}
|
|
||||||
allowlist_externals =
|
allowlist_externals =
|
||||||
rm
|
rm
|
||||||
mkdir
|
mkdir
|
||||||
wget
|
|
||||||
make
|
make
|
||||||
bash
|
bash
|
||||||
cp
|
cp
|
||||||
commands =
|
commands =
|
||||||
mkdir -p doc/build/pdf
|
mkdir -p doc/build/pdf
|
||||||
{[testenv:bindeps]commands}
|
|
||||||
{%- for doc in docs %}
|
{%- for doc in docs %}
|
||||||
{%- if doc.pdf_name %}
|
{%- if doc.pdf_name %}
|
||||||
{[testenv:{{ doc.type }}-pdf-docs]commands}
|
{[testenv:{{ doc.type }}-pdf-docs]commands}
|
||||||
@ -122,21 +118,6 @@ commands =
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
[testenv:bindeps]
|
|
||||||
deps =
|
|
||||||
bindep
|
|
||||||
allowlist_externals =
|
|
||||||
wget
|
|
||||||
rm
|
|
||||||
bash
|
|
||||||
commands =
|
|
||||||
rm -rf {toxinidir}/bindep.txt
|
|
||||||
rm -rf {toxinidir}/packages.txt
|
|
||||||
wget -O {toxinidir}/bindep.txt https://raw.githubusercontent.com/opentelekomcloud/otcdocstheme/main/bindep.txt
|
|
||||||
bash -c "bindep test -b -f {toxinidir}/bindep.txt > {toxinidir}/packages.txt || true"
|
|
||||||
bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v apt &>/dev/null; then apt update && xargs apt install --no-install-recommends -y < {toxinidir}/packages.txt; fi; fi'
|
|
||||||
bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v dnf &>/dev/null; then dnf install -y $(cat {toxinidir}/packages.txt); fi; fi'
|
|
||||||
|
|
||||||
[doc8]
|
[doc8]
|
||||||
ignore = D001
|
ignore = D001
|
||||||
extensions = .rst, .yaml
|
extensions = .rst, .yaml
|
Reference in New Issue
Block a user