[arch-commits] Commit in python-orjson/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Thu Dec 3 10:15:37 UTC 2020


    Date: Thursday, December 3, 2020 @ 10:15:36
  Author: dvzrv
Revision: 769410

archrelease: copy trunk to community-x86_64

Added:
  python-orjson/repos/community-x86_64/PKGBUILD
    (from rev 769409, python-orjson/trunk/PKGBUILD)
Deleted:
  python-orjson/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  110 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 55 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-03 10:15:09 UTC (rev 769409)
+++ PKGBUILD	2020-12-03 10:15:36 UTC (rev 769410)
@@ -1,55 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=orjson
-pkgname=python-orjson
-pkgver=3.4.4
-pkgrel=1
-pkgdesc="Fast, correct Python JSON library supporting dataclasses and datetimes"
-arch=('x86_64')
-url="https://github.com/ijl/orjson"
-license=('Apache' 'MIT')
-depends=('python')
-makedepends=('maturin' 'python-pip' 'rustup')
-checkdepends=('python-arrow' 'python-pendulum' 'python-psutil' 'python-pytest'
-'python-pytz' 'python-xxhash')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ijl/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('2f8fc36b09bec3abeef3fbfffb550b840fdf911b6afb983b8ca9d4c2fc83ba93e2f0042f7bd6dd641e84e280bed042c7b646202927d38879adff9d7d99254761')
-b2sums=('18be22f1accf065927f2dbf05cc22aea22234de226ed0785a48be7f2dbec39fa6b24b9db1f301c402b3c5ae52565e4ab88337dd33bebbc1858da9822b76202d9')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  rustup override set nightly-2020-10-24
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  maturin build --release \
-                --strip \
-                --manylinux
-}
-
-check() {
-  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  cd "$pkgname-$pkgver"
-  mkdir -vp testdir
-  export PIP_CONFIG_FILE=/dev/null
-  pip install --isolated \
-              --root="testdir" \
-              --ignore-installed \
-              --no-deps target/wheels/*.whl
-  export PYTHONPATH="testdir/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  export PIP_CONFIG_FILE='/dev/null'
-  pip install --isolated \
-              --root="$pkgdir" \
-              --ignore-installed \
-              --no-deps target/wheels/*.whl
-  install -vDm 644 {CHANGELOG,README}.md \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE-* -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-orjson/repos/community-x86_64/PKGBUILD (from rev 769409, python-orjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-03 10:15:36 UTC (rev 769410)
@@ -0,0 +1,55 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=orjson
+pkgname=python-orjson
+pkgver=3.4.5
+pkgrel=1
+pkgdesc="Fast, correct Python JSON library supporting dataclasses and datetimes"
+arch=('x86_64')
+url="https://github.com/ijl/orjson"
+license=('Apache' 'MIT')
+depends=('python')
+makedepends=('maturin' 'python-pip' 'rustup')
+checkdepends=('python-arrow' 'python-pendulum' 'python-psutil' 'python-pytest'
+'python-pytz' 'python-xxhash')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ijl/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('93786bed02f7bf3ce484fa7cb57599515e97155ba2a13b91d2c7b90e7bba026edaf95abe17e355e9c6d1fd01a0a54c03d50ff7bfaa80ebe2fe07e344085412bc')
+b2sums=('b937605c343c459c0fe72d6115a2b3334a3ec24c8e8db18dfd7b0f422a701d6a9a202257ad8734dd3009f0d37413bd136078eace8fb5808dcd7d3ec6d115784a')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  rustup override set nightly-2020-10-24
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  maturin build --release \
+                --strip \
+                --manylinux
+}
+
+check() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  cd "$pkgname-$pkgver"
+  mkdir -vp testdir
+  export PIP_CONFIG_FILE=/dev/null
+  pip install --isolated \
+              --root="testdir" \
+              --ignore-installed \
+              --no-deps target/wheels/*.whl
+  export PYTHONPATH="testdir/usr/lib/python${python_version}/site-packages:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  export PIP_CONFIG_FILE='/dev/null'
+  pip install --isolated \
+              --root="$pkgdir" \
+              --ignore-installed \
+              --no-deps target/wheels/*.whl
+  install -vDm 644 {CHANGELOG,README}.md \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE-* -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list