Skip to content

Commit

Permalink
py3-sphinx: Fix dependencies for sphinx, add rtd-theme and sphinx-7 (#…
Browse files Browse the repository at this point in the history
…26705)

Fixes: #26703

Some major sphinx themes such as for readthedocs and jupyterbooks do not
support sphinx 8 yet

See readthedocs/sphinx_rtd_theme#1582

- Adds py3-sphinx-7
- Adds py3-sphinx-rtd-theme

Signed-off-by: Pris Nasrat <[email protected]>

---------

Signed-off-by: Pris Nasrat <[email protected]>
  • Loading branch information
pnasrat authored Aug 20, 2024
1 parent e1ec173 commit a162d3a
Show file tree
Hide file tree
Showing 13 changed files with 249 additions and 33 deletions.
37 changes: 37 additions & 0 deletions py3-commonmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated from https://pypi.org/project/commonmark/
package:
name: py3-commonmark
version: 0.9.1
epoch: 0
description: Python parser for the CommonMark Markdown spec
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- py3-future

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
expected-commit: 7e02d134ba2371eef08ce3c009bc2c83b675954b
repository: https://github.com/rtfd/commonmark.py
tag: ${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
manual: false
github:
identifier: rtfd/commonmark.py
40 changes: 40 additions & 0 deletions py3-recommonmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated from https://pypi.org/project/recommonmark/
package:
name: py3-recommonmark
version: 0.7.1
epoch: 0
description: A docutils-compatibility bridge to CommonMark, enabling you to write CommonMark inside of Docutils & Sphinx projects.
copyright:
- license: MIT
dependencies:
runtime:
- py3-commonmark
- py3-docutils
- py3-sphinx

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
expected-commit: f2d906453830a1226d60dfc918527eef946cc2a9
repository: https://github.com/rtfd/recommonmark
tag: ${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
manual: false
github:
identifier: rtfd/recommonmark
use-tag: true
70 changes: 70 additions & 0 deletions py3-sphinx-7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package:
name: py3-sphinx-7
version: 7.4.7
epoch: 1
description: "Python Documentation Generator"
copyright:
- license: MIT
dependencies:
provides:
- py3-sphinx=${{package.full-version}}
runtime:
- py3-alabaster
- py3-babel
- py3-docutils
- py3-imagesize
- py3-jinja2
- py3-packaging
- py3-pygments
- py3-requests
- py3-snowballstemmer
- py3-sphinxcontrib-applehelp
- py3-sphinxcontrib-devhelp
- py3-sphinxcontrib-htmlhelp
- py3-sphinxcontrib-jsmath
- py3-sphinxcontrib-qthelp
- py3-sphinxcontrib-serializinghtml

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-flit-core
- py3-gpep517
- py3-installer
- python3
- wolfi-base

pipeline:
- uses: git-checkout
with:
repository: https://github.com/sphinx-doc/sphinx
tag: v${{package.version}}
expected-commit: 0d912c85fd3ec385432fe707f6a0678425d1e841

- runs: |
mkdir -p dist
backend="$(python3 -m gpep517 get-backend)"
python3 -m gpep517 build-wheel --wheel-dir dist --backend "$backend" --output-fd 1
- runs: |
python3 -m installer -d "${{targets.destdir}}" dist/sphinx-*.whl
- uses: strip

update:
enabled: true
github:
identifier: sphinx-doc/sphinx
use-tag: true
strip-prefix: v
tag-filter: v7.4.

test:
pipeline:
- uses: python/import
with:
import: sphinx
- runs: sphinx-build --version
40 changes: 40 additions & 0 deletions py3-sphinx-rtd-theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated from https://pypi.org/project/sphinx-rtd-theme/
package:
name: py3-sphinx-rtd-theme
version: 2.0.0
epoch: 0
description: Read the Docs theme for Sphinx
copyright:
- license: MIT
dependencies:
runtime:
- py3-sphinx-7
- py3-docutils
- py3-sphinxcontrib-jquery

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
expected-commit: 7c9b1b5d391f6d7fae72274393eb25d1df96e546
repository: https://github.com/readthedocs/sphinx_rtd_theme
tag: ${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
manual: false
github:
identifier: readthedocs/sphinx_rtd_theme
use-tag: true
19 changes: 17 additions & 2 deletions py3-sphinx.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
package:
name: py3-sphinx
version: 8.0.2
epoch: 0
epoch: 1
description: "Python Documentation Generator"
copyright:
- license: MIT
dependencies:
runtime:
- python3
- py3-alabaster
- py3-babel
- py3-docutils
- py3-imagesize
- py3-jinja2
- py3-packaging
- py3-pygments
- py3-requests
- py3-snowballstemmer
- py3-sphinxcontrib-applehelp
- py3-sphinxcontrib-devhelp
- py3-sphinxcontrib-htmlhelp
- py3-sphinxcontrib-jsmath
- py3-sphinxcontrib-qthelp
- py3-sphinxcontrib-serializinghtml

environment:
contents:
Expand Down Expand Up @@ -49,3 +63,4 @@ test:
- uses: python/import
with:
import: sphinx
- runs: sphinx-build --version
6 changes: 1 addition & 5 deletions py3-sphinxcontrib-applehelp.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package:
name: py3-sphinxcontrib-applehelp
version: 2.0.0
epoch: 0
epoch: 1
description: sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- py3-sphinx
- python3

environment:
contents:
Expand Down
6 changes: 1 addition & 5 deletions py3-sphinxcontrib-devhelp.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package:
name: py3-sphinxcontrib-devhelp
version: 2.0.0
epoch: 0
epoch: 1
description: sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- py3-sphinx
- python3

environment:
contents:
Expand Down
6 changes: 1 addition & 5 deletions py3-sphinxcontrib-htmlhelp.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package:
name: py3-sphinxcontrib-htmlhelp
version: 2.1.0
epoch: 0
epoch: 1
description: sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- py3-sphinx
- python3

environment:
contents:
Expand Down
38 changes: 38 additions & 0 deletions py3-sphinxcontrib-jquery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated from https://pypi.org/project/sphinxcontrib-jquery/
package:
name: py3-sphinxcontrib-jquery
version: "4.1"
epoch: 0
description: Extension to include jQuery on newer Sphinx releases
copyright:
- license: 0BSD
dependencies:
runtime:
- py3-sphinx

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
repository: https://github.com/sphinx-contrib/jquery
expected-commit: f45993d5657e2afb96e4a730b9033673af7ab0ef
tag: v${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
github:
identifier: sphinx-contrib/jquery
use-tag: true
strip-prefix: v
4 changes: 1 addition & 3 deletions py3-sphinxcontrib-jsmath.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package:
description: A sphinx extension which renders display math in HTML via JavaScript
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- python3

environment:
contents:
Expand Down Expand Up @@ -42,3 +39,4 @@ update:
enabled: true
github:
identifier: sphinx-doc/sphinxcontrib-jsmath
use-tag: true
4 changes: 1 addition & 3 deletions py3-sphinxcontrib-packages.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package:
name: py3-sphinxcontrib-packages
version: 1.1.2
epoch: 4
epoch: 5
description: This packages contains the Packages sphinx extension, which provides directives to display packages installed on the host machine
copyright:
- license: AGPL-3.0-or-later
dependencies:
runtime:
- py3-distro
- py3-sphinx
- python3

environment:
contents:
Expand Down
6 changes: 1 addition & 5 deletions py3-sphinxcontrib-qthelp.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package:
name: py3-sphinxcontrib-qthelp
version: 2.0.0
epoch: 0
epoch: 1
description: sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- py3-sphinx
- python3

environment:
contents:
Expand Down
6 changes: 1 addition & 5 deletions py3-sphinxcontrib-serializinghtml.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package:
name: py3-sphinxcontrib-serializinghtml
version: 2.0.0
epoch: 0
epoch: 1
description: sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle)
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- py3-sphinx
- python3

environment:
contents:
Expand Down

0 comments on commit a162d3a

Please sign in to comment.