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

David Runge dvzrv at archlinux.org
Mon Dec 7 19:36:52 UTC 2020


    Date: Monday, December 7, 2020 @ 19:36:52
  Author: dvzrv
Revision: 771502

archrelease: copy trunk to community-x86_64

Added:
  python-orjson/repos/community-x86_64/PKGBUILD
    (from rev 771501, 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-07 19:36:45 UTC (rev 771501)
+++ PKGBUILD	2020-12-07 19:36:52 UTC (rev 771502)
@@ -1,55 +0,0 @@
-# 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}"
-}

Copied: python-orjson/repos/community-x86_64/PKGBUILD (from rev 771501, python-orjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-07 19:36:52 UTC (rev 771502)
@@ -0,0 +1,55 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=orjson
+pkgname=python-orjson
+pkgver=3.4.6
+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=('9e080d8004f317de25223fa858611a24649a292972d775fffaa4c7ebbbd8c0e67624ce74e3d93aab5c435bfb61ed53d21ff79f78b26aabf701f7e490abe80b7e')
+b2sums=('ad34cbc56d1a545399661e710f8d87a8f71436302c234e6b626244ca45dc423c803ec5beed30f3f0de0cec0cc16f9e103a76f3d104e05f8487c10f4737ed62d1')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  rustup override set nightly-2020-11-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