Date: Wednesday, November 23, 2022 @ 01:46:22
Author: kgizdov
Revision: 1351992
archrelease: copy trunk to community-x86_64
Added:
python-awkward/repos/community-x86_64/PKGBUILD
(from rev 1351991, python-awkward/trunk/PKGBUILD)
Deleted:
python-awkward/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 145 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 79 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-23 01:46:16 UTC (rev 1351991)
+++ PKGBUILD 2022-11-23 01:46:22 UTC (rev 1351992)
@@ -1,66 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-_pkgname=awkward
-pkgname="python-${_pkgname}"
-pkgver=1.10.1
-pkgrel=1
-pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
-url="https://github.com/scikit-hep/awkward"
-license=('BSD')
-arch=('x86_64')
-depends=('python-numpy' 'python-packaging')
-optdepends=('cuda: CUDA support')
-makedepends=('cmake' 'git' 'python-build' 'python-installer' 'python-wheel'
'cuda')
-checkdepends=('python-pyaml' 'python-pytest' 'python-pytest-cov' 'python-hist'
'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-scikit-hep-testdata'
'python-vector'
- 'root' 'pybind11' 'rapidjson')
-source=(
- "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}#tag=v${pkgver}"
- "${pkgname}-dlpack::git+https://github.com/dmlc/dlpack.git"
- "${pkgname}-rapidjson::git+https://github.com/Tencent/rapidjson.git"
- "${pkgname}-pybind11::git+https://github.com/pybind/pybind11.git"
-)
-
-sha512sums=('SKIP'
- 'SKIP'
- 'SKIP'
- 'SKIP')
-
-get_pyver () {
- python -c 'import sys; print(str(sys.version_info[0]) + "." +
str(sys.version_info[1]))'
-}
-
-prepare() {
- cd "${srcdir}/${pkgname}"
- git submodule init
-
- git config submodule."pybind11".url "${srcdir}/${pkgname}"-pybind11
- git config submodule."rapidjson".url "${srcdir}/${pkgname}"-rapidjson
- git config submodule."dlpack".url "${srcdir}/${pkgname}"-dlpack
-
- git submodule update --init --recursive
-
- sed '/cmake/d' -i pyproject.toml
- sed \
- -e 's/setuptools.extern.packaging.version.parse/packaging.version.parse/' \
- -e 's/import setuptools/import packaging/' \
- -i src/awkward/_v2/_util.py
tests/test_0080-flatpandas-multiindex-rows-and-columns.py
-}
-
-build() {
- cd "${pkgname}"
- python -m build --wheel --no-isolation
-}
-
-check() {
- cd "${pkgname}"
- local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest ||
echo 'some tests fail'
-}
-
-package() {
- cd "${pkgname}"
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname}"/LICENSE
- cd "${pkgdir}/usr/lib/python$(get_pyver)/site-packages"
- # ln -s awkward1 awkward
-}
Copied: python-awkward/repos/community-x86_64/PKGBUILD (from rev 1351991,
python-awkward/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-23 01:46:22 UTC (rev 1351992)
@@ -0,0 +1,79 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_pkgname=awkward
+pkgbase="python-${_pkgname}"
+pkgname=("${pkgbase}" "${pkgbase}-docs")
+pkgver=1.10.2
+pkgrel=1
+pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
+url="https://github.com/scikit-hep/awkward"
+license=('BSD')
+arch=('x86_64')
+depends=('python-numpy' 'python-packaging' 'python-importlib_resources')
+optdepends=('cuda: CUDA support'
+ 'python-pyarrow: pyArrow connector'
+ 'python-numexpr: numexpr connector'
+ 'python-pandas: pandas connector')
+makedepends=('cmake' 'git' 'python-build' 'python-installer' 'python-wheel'
'cuda' 'doxygen' 'python-sphinx' 'python-sphinx_rtd_theme')
+checkdepends=('python-pyaml' 'python-pytest' 'python-pytest-cov' 'python-hist'
'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-scikit-hep-testdata'
'python-vector'
+ 'root' 'pybind11' 'rapidjson')
+source=(
+ "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}#tag=v${pkgver}"
+ "${pkgname}-dlpack::git+https://github.com/dmlc/dlpack.git"
+ "${pkgname}-rapidjson::git+https://github.com/Tencent/rapidjson.git"
+ "${pkgname}-pybind11::git+https://github.com/pybind/pybind11.git"
+)
+
+sha512sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+
+get_pyver () {
+ python -c 'import sys; print(str(sys.version_info[0]) + "." +
str(sys.version_info[1]))'
+}
+
+prepare() {
+ cd "${srcdir}/${pkgbase}"
+ git submodule init
+
+ git config submodule."pybind11".url "${srcdir}/${pkgname}"-pybind11
+ git config submodule."rapidjson".url "${srcdir}/${pkgname}"-rapidjson
+ git config submodule."dlpack".url "${srcdir}/${pkgname}"-dlpack
+
+ git -c protocol.file.allow=always submodule update --init --recursive
+
+ sed '/cmake/d' -i pyproject.toml
+ sed \
+ -e 's/setuptools.extern.packaging.version.parse/packaging.version.parse/' \
+ -e 's/import setuptools/import packaging/' \
+ -i src/awkward/_v2/_util.py
tests/test_0080-flatpandas-multiindex-rows-and-columns.py
+}
+
+build() {
+ cd "${srcdir}/${pkgbase}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "${srcdir}/${pkgbase}"
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest ||
echo 'some tests fail'
+}
+
+package_python-awkward() {
+ optdepends+=("${pkgbase}-docs: docs")
+ cd "${srcdir}/${pkgbase}"
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
+
+package_python-awkward-docs() {
+ cd "${srcdir}/${pkgbase}"
+
+ install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D README.md "${pkgdir}/usr/share/${pkgbase}/README.md"
+
+ install -d "${pkgdir}/usr/share/doc/${pkgbase}"
+ PYTHONPATH="${PWD}/build/lib" sphinx-build "${PWD}/docs-sphinx"
"${pkgdir}/usr/share/doc/${pkgbase}"
+}