Date: Sunday, April 30, 2023 @ 05:16:48 Author: polyzen Revision: 1454975
archrelease: copy trunk to community-testing-any Added: python-agate/repos/community-testing-any/PKGBUILD (from rev 1454974, python-agate/trunk/PKGBUILD) Deleted: python-agate/repos/community-testing-any/PKGBUILD ----------+ PKGBUILD | 122 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 61 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-04-30 05:16:04 UTC (rev 1454974) +++ PKGBUILD 2023-04-30 05:16:48 UTC (rev 1454975) @@ -1,61 +0,0 @@ -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: Gabriel Magno <gabrielmag...@gmail.com> -# Contributor: Michał Pałubicki <maln...@gmx.com> - -_pyname=agate -pkgname=python-$_pyname -pkgver=1.7.1 -pkgrel=2 -pkgdesc='A data analysis library that is optimized for humans instead of machines' -arch=(any) -url='https://agate.readthedocs.org/' -license=(MIT) -_pydeps=(babel - isodate - leather - parsedatetime - pyicu - pytimeparse - six - slugify - sphinx_rtd_theme) -depends=(python "${_pydeps[@]/#/python-}") -makedepends=(python-setuptools - python-sphinx) -checkdepends=(python-cssselect - python-lxml - python-nose) -_archive="$_pyname-$pkgver" -source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") -sha256sums=('eadf46d980168b8922d5d396d6258eecd5e7dbef7e6f0c0b71e968545ea96389') - -prepare() { - cd "$_archive" - # Note: Upstream test suite is currently badly broken; it depends on the - # system local and fails on some. Part of the trouble is tracable to - # parsedatetime bugs so they limit allowed versions. We're going to skip - # known problematic tests to allow Arch's packaged version. - sed -i -e "/parsedatetime/s/>.*'/'/" setup.py -} - -build() { - cd "$_archive" - python setup.py build - python setup.py build_sphinx - _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')" - rm -rvf "build/sphinx/html/_static" - ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "build/sphinx/html/_static" -} - -check() { - cd "$_archive" - LC_ALL=POSIX nosetests --exclude=test_cast_format_locale -} - -package() { - cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - mkdir -p "$pkgdir/usr/share/doc" - cp -rv "build/sphinx/html" "$pkgdir/usr/share/doc/$pkgname" - install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING -} Copied: python-agate/repos/community-testing-any/PKGBUILD (from rev 1454974, python-agate/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-04-30 05:16:48 UTC (rev 1454975) @@ -0,0 +1,61 @@ +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Gabriel Magno <gabrielmag...@gmail.com> +# Contributor: Michał Pałubicki <maln...@gmx.com> + +_pyname=agate +pkgname=python-$_pyname +pkgver=1.7.1 +pkgrel=3 +pkgdesc='A data analysis library that is optimized for humans instead of machines' +arch=(any) +url='https://agate.readthedocs.org/' +license=(MIT) +_pydeps=(babel + isodate + leather + parsedatetime + pyicu + pytimeparse + six + slugify + sphinx_rtd_theme) +depends=(python "${_pydeps[@]/#/python-}") +makedepends=(python-setuptools + python-sphinx) +checkdepends=(python-cssselect + python-lxml + python-nose) +_archive="$_pyname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") +sha256sums=('eadf46d980168b8922d5d396d6258eecd5e7dbef7e6f0c0b71e968545ea96389') + +prepare() { + cd "$_archive" + # Note: Upstream test suite is currently badly broken; it depends on the + # system local and fails on some. Part of the trouble is tracable to + # parsedatetime bugs so they limit allowed versions. We're going to skip + # known problematic tests to allow Arch's packaged version. + sed -i -e "/parsedatetime/s/>.*'/'/" setup.py +} + +build() { + cd "$_archive" + python setup.py build + make -C docs html + _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')" + rm -rvf "docs/_build/html/_static" + ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "docs/_build/html/_static" +} + +check() { + cd "$_archive" + LC_ALL=POSIX nosetests --exclude=test_cast_format_locale +} + +package() { + cd "$_archive" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + mkdir -p "$pkgdir/usr/share/doc" + cp -rv "docs/_build/html" "$pkgdir/usr/share/doc/$pkgname" + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING +}