[arch-commits] Commit in python-orjson/repos/community-testing-x86_64 (2 files)
David Runge
dvzrv at archlinux.org
Sat Nov 28 13:34:25 UTC 2020
Date: Saturday, November 28, 2020 @ 13:34:24
Author: dvzrv
Revision: 765229
archrelease: copy trunk to community-testing-x86_64
Added:
python-orjson/repos/community-testing-x86_64/PKGBUILD
(from rev 765228, python-orjson/trunk/PKGBUILD)
Deleted:
python-orjson/repos/community-testing-x86_64/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-28 13:34:11 UTC (rev 765228)
+++ PKGBUILD 2020-11-28 13:34:24 UTC (rev 765229)
@@ -1,55 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=orjson
-pkgname=python-orjson
-pkgver=3.4.3
-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' '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=('3d19f88755ba66c27550d28e6aed11404d6504248723d7c9d5286a87c5b8ecfd6a3e6635b4d5a89fd9b6af032af041bc55d0b9fecbe491788739efe6eeaec51c')
-b2sums=('0c8268f8aba81b94413b96271a145457efcd71571e8dad80de0197550342ec6293b19769acaf69219a523999fe9c8f37111422905dd2b86d37420bc1e8eec86b')
-
-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-testing-x86_64/PKGBUILD (from rev 765228, python-orjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-28 13:34:24 UTC (rev 765229)
@@ -0,0 +1,55 @@
+# 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}"
+}
More information about the arch-commits
mailing list