From dc92e6b04c83307a0360a2046e277df989ba4c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Mon, 30 Sep 2024 20:06:56 +0300 Subject: [PATCH] gitea deps --- python3-sphinx/alr.sh | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 python3-sphinx/alr.sh diff --git a/python3-sphinx/alr.sh b/python3-sphinx/alr.sh new file mode 100644 index 0000000..28a660b --- /dev/null +++ b/python3-sphinx/alr.sh @@ -0,0 +1,73 @@ +_name=sphinx +name='python3-sphinx' +version='8.0.2' +release='1' +desc='Python documentation generator.' +homepage='https://github.com/pypa/setuptools_scm' +maintainer_ru='Евгений Храмов ' +architectures=('all') +license=('BSD-2-Clause') +provides=('sphinx') +conflicts=('sphinx') + +deps=( + python3-babel + python3-docutils + python3-imagesize + python3-jinja + python3-packaging + python3-pygments + python3-requests + python3-snowballstemmer + python3-sphinx-alabaster-theme + python3-sphinxcontrib-{{apple,dev,html}help,jsmath,qthelp,serializinghtml} + +) + +build_deps=( + 'git' + 'python3-build' + 'python3-installer' + 'python3-wheel' + 'mercurial' + 'python3-pip' + 'python3-pytest' + 'python3-rich' +) + +build_deps_almalinux=( + 'git' + 'python3-build' + 'python3-installer' + 'python3-setuptools-wheel' + 'python3-pip' + 'python3-pytest' + 'python3-rich' +) + +sources=("git+https://github.com/pypa/setuptools_scm.git#tag=v$version") +checksums=('SKIP') + +build() { + cd $_name + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd $_name + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + # test_pyproject_support https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools-scm/-/issues/1 + test-env/bin/python -m pytest -vk 'not test_not_owner and not test_pyproject_support' +} + +package() { + cd $_name + python -m installer --destdir="$pkgdir" dist/*.whl + + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir"/usr/share/licenses/python3-setuptools-scm + ln -s "$site_packages"/$_name-$version.dist-info/LICENSE \ + "$pkgdir"/usr/share/licenses/python3-setuptools-scm/LICENSE +}