[arch-commits] Commit in python-orjson/repos/community-staging-x86_64 (2 files)
David Runge
dvzrv at gemini.archlinux.org
Mon Dec 6 17:37:06 UTC 2021
Date: Monday, December 6, 2021 @ 17:37:06
Author: dvzrv
Revision: 1065300
archrelease: copy trunk to community-staging-x86_64
Added:
python-orjson/repos/community-staging-x86_64/PKGBUILD
(from rev 1065299, python-orjson/trunk/PKGBUILD)
Deleted:
python-orjson/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 95 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 42 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-06 17:36:55 UTC (rev 1065299)
+++ PKGBUILD 2021-12-06 17:37:06 UTC (rev 1065300)
@@ -1,53 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=orjson
-pkgname=python-orjson
-pkgver=3.6.4
-pkgrel=3
-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' 'rust')
-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=('cf4347c13f5799c42170d45cfb8aa960b75f1bf09d4de7a758fee006cf2607c25c67526e2c95907049ab8c35fc12b196074b79d5919dd46fc90921a2090b5e65')
-b2sums=('01548aca9fd04d8f678a79b1f34e5c1336cdedae3cc3ff296f70ae9b975fb75e166987a7410a26194bf7d40e3d8ec46415e7e6138d0632339bb0e607108ae4e2')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- maturin build --no-sdist \
- --release \
- --strip
-}
-
-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-staging-x86_64/PKGBUILD (from rev 1065299, python-orjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-06 17:37:06 UTC (rev 1065300)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=orjson
+pkgname=python-orjson
+pkgver=3.6.5
+pkgrel=2
+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 rust)
+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=('5a379bd58231d56a3abcf4499db17bff3e5e7708fe7c6bd1c8c943ffcc432874804ffe3f2fd24f83d27ff7ae00ff4d8b715389a92f30c61025460c9ddc77e9ac')
+b2sums=('ba2033be5f3e68d4d301f6da7a7827f80ace596a64721c5d719c8a872f42c6c70164e1e83a119313a81d846285be65f3db26659b6a03f537a6b2eded4aa83f90')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ maturin build --no-sdist --release --strip
+}
+
+check() {
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ cd "$pkgname-$pkgver"
+ mkdir -vp testdir
+
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="testdir" --ignore-installed --no-deps target/wheels/*.whl
+ PYTHONPATH="testdir/usr/lib/python${python_version}/site-packages:${PYTHONPATH}" pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ 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