mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 06:24:34 +02:00
Patch test outputs to fix failed rst fixtures test. ``` ____________________ test_rst_fixtures[test_rst_008.rst] ______________________ rst_filename = PosixPath('/home/buildozer/aports/community/py3-readme_renderer/src/readme_renderer-44.0/tests/fixtures/test_rst_008.rst') html_filename = PosixPath('/home/buildozer/aports/community/py3-readme_renderer/src/readme_renderer-44.0/tests/fixtures/test_rst_008.html') @pytest.mark.parametrize( ("rst_filename", "html_filename"), [ (pytest.param(fn, fn.with_suffix(".html"), id=fn.name)) for fn in Path(__file__).parent.glob("fixtures/test_*.rst") ], ) def test_rst_fixtures(rst_filename, html_filename): [...] if "<" in expected: > assert out == expected E assert '<p>Here is s...code></pre>\n' == '<p>Here is s...code></pre>\n' E E Skipping 110 identical leading characters in diff, use -v to show E - ass</span> <span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w"> E ? - E + ass</span><span class="w"> </span><span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w"> E ? ++++++++++++++++++++++++ E - </span> <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span><span class="w">... E E ...Full output truncated (18 lines hidden), use '-vv' to show tests/test_rst.py:28: AssertionError ```
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-readme_renderer
|
|
pkgver=44.0
|
|
pkgrel=0
|
|
pkgdesc="readme_renderer is a library for rendering README descriptions for Warehouse"
|
|
url="https://github.com/pypa/readme_renderer"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-bleach
|
|
py3-docutils
|
|
py3-nh3
|
|
py3-pygments
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-mock
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-$pkgver.tar.gz
|
|
update-test-outputs.patch
|
|
"
|
|
builddir="$srcdir/readme_renderer-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f68b1d9f7352ce07537d82a096e0d31000b7395a5809e7d160083071dfb8fdae38dc7a3460f42abb7aec5d932866a20bbe2b2fc09480cf4505add1bc403c34c8 readme_renderer-44.0.tar.gz
|
|
f01b0daf32ff9b7aa326c736f9506e2f8e8f3d9dab4fb4d01025a5bd226c1272d8815d09c152448896c2674f4d2923d99965ab1956f4231da0ef860221ac4dee update-test-outputs.patch
|
|
"
|