sphinx(python), add new/updated dependency python recipes (#8775)

* sphinx(python), add new/updated dependency python recipes

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinxcontrib-jquery/sphinxcontrib_jquery-4.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

---------

Co-authored-by: OscarL <oscar.lesta@gmail.com>
This commit is contained in:
Schrijvers Luc
2023-06-03 21:48:24 +02:00
committed by GitHub
parent cd26ef5c58
commit 480e45cd2f
20 changed files with 1250 additions and 83 deletions

View File

@@ -0,0 +1,70 @@
SUMMARY="A configurable sidebar-enabled Sphinx theme"
DESCRIPTION="Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx \
documentation system. It is Python 3.6+ compatible.
It began as a third-party theme, and is still maintained separately, but as of Sphinx 1.3, \
Alabaster is an install-time dependency of Sphinx and is selected as the default theme."
HOMEPAGE="https://github.com/sphinx-doc/alabaster"
COPYRIGHT="2020 Jeff Forcier
2011 Kenneth Reitz
2010 Armin Ronacher"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="c5efad86e1bb8215d037e2890e62aa2bb5e4f13f6fa455be100413835b5bfe43"
SOURCE_FILENAME="alabaster-$portVersion.tar.gz"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,67 +0,0 @@
SUMMARY="A collection of tools for internationalizing Python applications"
DESCRIPTION="Babel is a Python library that provides an integrated \
collection of utilities that assist with internationalizing and localizing \
Python applications (in particular web-based applications.)"
HOMEPAGE="http://babel.pocoo.org/"
COPYRIGHT="2013-2022 by the Babel Team"
LICENSE="BSD (3-clause)"
REVISION="3"
SOURCE_URI="https://github.com/python-babel/babel/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="960d7a36861836081929735afe5a98aa2fb0d3720e3abc44e2d0950092e0a573"
SOURCE_FILENAME="babel-v$portVersion.tar.gz"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python38 python39 python310)
PYTHON_VERSIONS=(3.8 3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\n\
cmd:pybabel${pythonVersion} \
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
pytz_$pythonPackage\n\
setuptools_$pythonPackage\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
mv $prefix/bin/pybabel $prefix/bin/pybabel${pythonVersion}
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done
}

View File

@@ -0,0 +1,88 @@
SUMMARY="A collection of tools for internationalizing Python applications"
DESCRIPTION="Babel is a Python library that provides an integrated \
collection of utilities that assist with internationalizing and localizing \
Python applications (in particular web-based applications.)"
HOMEPAGE="http://babel.pocoo.org/"
COPYRIGHT="2013-2022 by the Babel Team"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/python-babel/babel/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="37de3435fdec7c3267430765fc3ebe05cd234e65774ff1dc42a7b3b5cd39ef97"
SOURCE_FILENAME="babel-v$portVersion.tar.gz"
SOURCE_URI_2="https://unicode.org/Public/cldr/42/cldr-common-42.0.zip#noarchive"
CHECKSUM_SHA256_2="53cd4fd1ac2ee4d4cbcae362e7af5d02e98e5e39c826ce9d723d41ca836fc846"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultVersion=3.9
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
cmd:pybabel_$pythonVersion = $portVersion
\""
# Provide non-suffixed cmd only for the default Python version
if [ $pythonVersion = $defaultVersion ]; then
eval "PROVIDES_$pythonPackage+=\"
cmd:pybabel = $portVersion
\""
fi
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
setuptools_$pythonPackage
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage
"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion
"
done
INSTALL()
{
cp $sourceDir2/* cldr
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py import_cldr build install \
--root=/ --prefix=$prefix
# Version suffix the script
mv $prefix/bin/pybabel $prefix/bin/pybabel-$pythonVersion
# And provide suffix-less symlink for the default version
if [ $pythonVersion = $defaultVersion ]; then
ln -sr $prefix/bin/pybabel-$pythonVersion $prefix/bin/pybabel
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done
}

View File

@@ -0,0 +1,77 @@
SUMMARY="A platform independent file lock"
DESCRIPTION="This package contains a single module, which implements a platform independent file \
lock in Python, which provides a simple way of inter-process communication."
HOMEPAGE="https://github.com/tox-dev/py-filelock"
COPYRIGHT="2023 Bernát Gábor"
LICENSE="Unlicense"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="4a26dad7207539e765a1f7a3cdbce868b5a266120366b660f1736f8955bc3ccb"
SOURCE_FILENAME="filelock-$portVersion.tar.gz"
SOURCE_DIR="py-filelock-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
hatch_vcs_$pythonPackage
hatchling_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
filelock_$defaultTestVersion
pytest_mock_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>

View File

@@ -0,0 +1,75 @@
SUMMARY="Hatch plugin for versioning with your preferred VCS"
DESCRIPTION="This provides a plugin for Hatch that uses your preferred version control system \
(like Git) to determine project versions."
HOMEPAGE="https://github.com/ofek/hatch-vcs"
COPYRIGHT="2022-present Ofek Lev"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/h/hatch-vcs/hatch_vcs-$portVersion.tar.gz"
CHECKSUM_SHA256="cec5107cfce482c67f8bc96f18bbc320c9aa0d068180e14ad317bbee5a153fee"
PATCHES="26.patch" # from upstream
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
hatchling_$pythonPackage
setuptools_scm_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
hatchling_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
hatch_vcs_$defaultTestVersion
cmd:git
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,29 @@
From 2bf0d32f92f6609258f85131b94d0952fc0ec149 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Mon, 19 Dec 2022 20:20:11 -0500
Subject: [PATCH] Work with setuptools_scm 7.1 (fix #25)
Make test_write less brittle (see also #8, #9) so that it works with
_version.py files generated by at least setuptools_scm 7.1, 7.0, and
6.x.
---
tests/test_build.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/test_build.py b/tests/test_build.py
index 2fde601..7c76343 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -75,8 +75,10 @@ def test_write(new_project_write):
assert os.path.isfile(version_file)
lines = read_file(version_file).splitlines()
- assert lines[3].startswith(('version =', '__version__ ='))
- assert lines[3].endswith("version = '1.2.3'")
+ version_starts = ('version = ', '__version__ = ')
+ assert any(line.startswith(version_starts) for line in lines)
+ version_line = next(line for line in lines if line.startswith(version_starts))
+ assert version_line.endswith(" = '1.2.3'")
@pytest.mark.skipif(sys.version_info[0] == 2, reason='Depends on fix in 6.4.0 which is Python 3-only')

View File

@@ -4,9 +4,9 @@ the mock package for py.test."
HOMEPAGE="https://pytest.org"
COPYRIGHT="2016 Bruno Oliveira"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://pypi.io/packages/source/p/pytest-mock/pytest-mock-$portVersion.tar.gz"
CHECKSUM_SHA256="5112bd92cc9f186ee96e1a92efc84969ea494939c3aead39c50f421c4cc69534"
CHECKSUM_SHA256="fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"
SOURCE_DIR="pytest-mock-$portVersion"
ARCHITECTURES="any"
@@ -27,20 +27,22 @@ PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
pytest_$pythonPackage\n\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_scm_$pythonPackage
"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion
"
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion\
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
pytest_$pythonPackage
\""
BUILD_REQUIRES+="
setuptools_scm_$pythonPackage
"
BUILD_PREREQUIRES+="
packaging_$pythonPackage
pip_$pythonPackage
cmd:python$pythonVersion
"
done
INSTALL()

View File

@@ -0,0 +1,79 @@
SUMMARY="Snowball stemming library collection for Python"
DESCRIPTION="This package provides 29 stemmers for 28 languages generated from Snowball algorithms.
Stemming maps different forms of the same word to a common *stem* - for example, the English \
stemmer maps *connection*, *connections*, *connective*, *connected*, and *connecting* to \
*connect*. So a searching for *connected* would also find documents which only have the other \
forms.
This stem form is often a word itself, but this is not always the case as this is not a \
requirement for text search systems, which are the intended field of use. We also aim to conflate \
words with the same meaning, rather than all words with a common linguistic root (so *awe* and \
*awful* don't have the same stem), and over-stemming is more problematic than under-stemming so we \
tend not to stem in cases that are hard to resolve. If you want to always reduce words to a root \
form and/or get a root form which is itself a word then Snowball's stemming algorithms likely \
aren't the right answer."
HOMEPAGE="https://github.com/snowballstem/snowball"
COPYRIGHT="2001, Dr Martin Porter
2004,2005, Richard Boulton
2013, Yoshiki Shibukawa
2006-2019 Olly Betts"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-$portVersion.tar.gz"
CHECKSUM_SHA256="09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -0,0 +1,136 @@
SUMMARY="Python documentation generator"
DESCRIPTION="Sphinx makes it easy to create intelligent and beautiful documentation.
Sphinx uses reStructuredText as its markup language, and many of its strengths come from the \
power and straightforwardness of reStructuredText and its parsing and translating suite, the \
Docutils.
Features:
* Output formats: HTML, PDF, plain text, EPUB, TeX, manual pages, and more
* Extensive cross-references: semantic markup and automatic links for functions, classes, \
glossary terms and similar pieces of information
* Hierarchical structure: easy definition of a document tree, with automatic links to siblings, \
parents and children
* Automatic indices: general index as well as a module index
* Code highlighting: automatic highlighting using the Pygments highlighter
* Templating: Flexible HTML output using the Jinja 2 templating engine
* Extension ecosystem: Many extensions are available, for example for automatic function \
documentation or working with Jupyter notebooks.
* Language Support: Python, C, C++, JavaScript, mathematics, and many other languages through \
extensions."
HOMEPAGE="https://www.sphinx-doc.org/"
COPYRIGHT="2023 Georg Brandl"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/sphinx-doc/sphinx/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="07615442c34dbbf1844d4b514c659c27a8fa14819d6999b920773aed798d00c9"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultVersion=3.9
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
cmd:sphinx_apidoc_$pythonVersion = $portVersion
cmd:sphinx_autogen_$pythonVersion = $portVersion
cmd:sphinx_build_$pythonVersion = $portVersion
cmd:sphinx_quickstart_$pythonVersion = $portVersion
\""
# Provide non-suffixed cmd only for the default Python version
if [ $pythonVersion = $defaultVersion ]; then
eval "PROVIDES_$pythonPackage+=\"
cmd:sphinx_apidoc = $portVersion
cmd:sphinx_autogen = $portVersion
cmd:sphinx_build = $portVersion
cmd:sphinx_quickstart = $portVersion
\""
fi
eval "REQUIRES_$pythonPackage=\"
haiku
alabaster_$pythonPackage
babel_$pythonPackage
docutils_$pythonPackage
imagesize_$pythonPackage
importlib_metadata_$pythonPackage # only for Python < 3.10
jinja_$pythonPackage
packaging_$pythonPackage
pygments_$pythonPackage
requests_$pythonPackage
sphinxcontrib_applehelp_$pythonPackage
sphinxcontrib_devhelp_$pythonPackage
sphinxcontrib_htmlhelp_$pythonPackage
sphinxcontrib_jsmath_$pythonPackage
sphinxcontrib_qthelp_$pythonPackage
sphinxcontrib_serializinghtml_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
cython_$pythonPackage
filelock_$defaultTestVersion
html5lib_$defaultTestVersion
sphinx_$defaultTestVersion
snowballstemmer_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
# Version suffix all the scripts
for f in $binDir/*; do
mv $f $f-$pythonVersion
done
# And provide suffix-less symlinks for the default version
if [ $pythonVersion = $defaultVersion ]; then
for f in $binDir/*; do
ln -sr $f $f-$pythonVersion
done
fi
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python* \
$prefix/bin
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,73 @@
SUMMARY="A Sphinx extension which outputs Apple help books"
DESCRIPTION="sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books."
HOMEPAGE="https://www.sphinx-doc.org/
https://github.com/sphinx-doc/sphinxcontrib-applehelp"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-applehelp/sphinxcontrib-applehelp-$portVersion.tar.gz"
CHECKSUM_SHA256="828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e"
SOURCE_DIR="sphinxcontrib-applehelp-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,73 @@
SUMMARY="A sphinx extension which outputs Devhelp_ document"
DESCRIPTION="sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp_ document."
HOMEPAGE="http://sphinx-doc.org/
https://github.com/sphinx-doc/sphinxcontrib-devhelp"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-devhelp/sphinxcontrib-devhelp-$portVersion.tar.gz"
CHECKSUM_SHA256="ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"
SOURCE_DIR="sphinxcontrib-devhelp-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,74 @@
SUMMARY="A sphinx extension which renders HTML help files"
DESCRIPTION="sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
HOMEPAGE="https://www.sphinx-doc.org/
https://github.com/sphinx-doc/sphinxcontrib-htmlhelp"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp-$portVersion.tar.gz"
CHECKSUM_SHA256="0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff"
SOURCE_DIR="sphinxcontrib-htmlhelp-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
html5lib_$defaultTestVersion
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,14 @@
BSD Zero Clause Licence
Copyright 2022, Adam Turner
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

View File

@@ -0,0 +1,76 @@
SUMMARY="Extension to include jQuery on newer Sphinx releases"
DESCRIPTION="sphinxcontrib-jquery ensures that jQuery is always installed for use in Sphinx \
themes or extensions."
HOMEPAGE="https://github.com/sphinx-contrib/jquery/
https://pypi.org/project/sphinxcontrib-jquery/"
COPYRIGHT="2022 Adam Turner"
LICENSE="MIT
0BSD"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-jquery/sphinxcontrib-jquery-$portVersion.tar.gz"
CHECKSUM_SHA256="1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a"
SOURCE_DIR="sphinxcontrib-jquery-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
sphinx$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
sphinxcontrib_jquery_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,39 @@
From 3297b27177ab4862d1b2408a2db66235397fe212 Mon Sep 17 00:00:00 2001
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
Date: Sat, 17 Jul 2021 19:25:37 +0900
Subject: [PATCH 1/2] Fix #9361: RemovedInSphinx50Warning on testing
---
tests/test_jsmath.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test_jsmath.py b/tests/test_jsmath.py
index 573d262..eea8a95 100644
--- a/tests/test_jsmath.py
+++ b/tests/test_jsmath.py
@@ -14,7 +14,7 @@
@pytest.mark.sphinx('html', testroot='basic')
def test_basic(app, status, warning):
app.builder.build_all()
- content = (app.outdir / 'math.html').text()
+ content = (app.outdir / 'math.html').read_text()
print(content)
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
assert ('<span class="eqno">(1)<a class="headerlink" href="#equation-pythagorean" '
@@ -34,7 +34,7 @@ def test_basic(app, status, warning):
def test_numfig_enabled(app, status, warning):
app.builder.build_all()
- content = (app.outdir / 'math.html').text()
+ content = (app.outdir / 'math.html').read_text()
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
assert ('<span class="eqno">(1.1)<a class="headerlink" href="#equation-pythagorean" '
'title="Permalink to this equation">¶</a></span>'
@@ -52,5 +52,5 @@ def test_numfig_enabled(app, status, warning):
def test_disabled_when_equations_not_found(app, status, warning):
app.builder.build_all()
- content = (app.outdir / 'index.html').text()
+ content = (app.outdir / 'index.html').read_text()
assert 'jsmath.js' not in content

View File

@@ -0,0 +1,75 @@
SUMMARY="A sphinx extension which renders display math in HTML via JavaScript"
DESCRIPTION="sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via \
JavaScript."
HOMEPAGE="http://sphinx-doc.org/
https://pypi.org/project/sphinxcontrib-jsmath/"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-$portVersion.tar.gz"
CHECKSUM_SHA256="a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"
SOURCE_DIR="sphinxcontrib-jsmath-$portVersion"
PATCHES="10.patch" # fetched from upstream
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,82 @@
From 40f9dc8921486b7fd8ac84964f1e45103b540b81 Mon Sep 17 00:00:00 2001
From: MeggyCal <MeggyCal@users.noreply.github.com>
Date: Wed, 1 Jun 2022 10:35:11 +0200
Subject: [PATCH] Fix tests with Sphinx 5.0
---
tests/test_qthelp.py | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tests/test_qthelp.py b/tests/test_qthelp.py
index fd83241..4c5f77d 100644
--- a/tests/test_qthelp.py
+++ b/tests/test_qthelp.py
@@ -17,7 +17,7 @@
def test_qthelp_basic(app, status, warning):
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<customFilter name="Python ">' in qhp
assert '<filterAttribute>Python</filterAttribute>' in qhp
assert '<filterAttribute></filterAttribute>' in qhp
@@ -26,7 +26,7 @@ def test_qthelp_basic(app, status, warning):
assert '<file>index.html</file>' in qhp
assert '<file>_static/basic.css</file>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Python documentation</title>' in qhcp
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
@@ -91,10 +91,10 @@ def test_qthelp_namespace(app, status, warning):
# default namespace
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<namespace>org.sphinx.python</namespace>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
@@ -102,10 +102,10 @@ def test_qthelp_namespace(app, status, warning):
app.config.qthelp_namespace = 'org.sphinx-doc.sphinx'
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<namespace>org.sphinx-doc.sphinx</namespace>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<homePage>qthelp://org.sphinx-doc.sphinx/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx-doc.sphinx/doc/index.html</startPage>' in qhcp
@@ -115,10 +115,10 @@ def test_qthelp_title(app, status, warning):
# default title
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<section title="Python documentation" ref="index.html">' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Python documentation</title>' in qhcp
# give a title
@@ -126,9 +126,9 @@ def test_qthelp_title(app, status, warning):
app.config.html_short_title = 'Sphinx <b>"short"</b> title'
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert ('<section title="Sphinx &lt;b&gt;&#34;full&#34;&lt;/b&gt; title" ref="index.html">'
in qhp)
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Sphinx &lt;b&gt;&#34;short&#34;&lt;/b&gt; title</title>' in qhcp

View File

@@ -0,0 +1,74 @@
SUMMARY="A sphinx extension which outputs QtHelp document"
DESCRIPTION="sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document."
HOMEPAGE="http://sphinx-doc.org/
https://pypi.org/project/sphinxcontrib-qthelp/"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-qthelp/sphinxcontrib-qthelp-$portVersion.tar.gz"
CHECKSUM_SHA256="4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72"
SOURCE_DIR="sphinxcontrib-qthelp-$portVersion"
PATCHES="14.patch" # from upstream
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}

View File

@@ -0,0 +1,74 @@
SUMMARY="A sphinx extension which outputs *serialized* HTML files"
DESCRIPTION="sphinxcontrib-serializinghtml is a sphinx extension which outputs *serialized* HTML \
files (json and pickle)."
HOMEPAGE="http://sphinx-doc.org/
https://pypi.org/project/sphinxcontrib-serializinghtml/"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml-$portVersion.tar.gz"
CHECKSUM_SHA256="aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"
SOURCE_DIR="sphinxcontrib-serializinghtml-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}