[arch-commits] Commit in python-yarl/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Tue Aug 30 18:37:02 UTC 2022
Date: Tuesday, August 30, 2022 @ 18:37:01
Author: anthraxx
Revision: 1288924
archrelease: copy trunk to community-x86_64
Added:
python-yarl/repos/community-x86_64/PKGBUILD
(from rev 1288923, python-yarl/trunk/PKGBUILD)
Deleted:
python-yarl/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 83 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 43 insertions(+), 40 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-30 18:36:56 UTC (rev 1288923)
+++ PKGBUILD 2022-08-30 18:37:01 UTC (rev 1288924)
@@ -1,40 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-_pkgname=yarl
-pkgname=python-yarl
-pkgver=1.8.0
-pkgrel=1
-pkgdesc='Yet another URL library'
-url='https://github.com/aio-libs/yarl/'
-arch=('x86_64')
-license=('Apache')
-depends=('glibc' 'python' 'python-multidict' 'python-idna' 'python-typing_extensions')
-makedepends=('cython' 'python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-cov')
-source=(https://github.com/aio-libs/yarl/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('da10de61afded586947a17dd0a205bc5265c133a5259c06d56c631c7685ed78966d2c40ae6c7ce59f56dadaff753aa0c4c9273f6df6904c9f68f8c9bdb075723')
-b2sums=('3a6516105f7cb96d266773e26581bae3625866e0b98a530502863af79efe3631677ef4bd383e081bb7ebeeb770fcc54d6a7aa34b7f9c540b73ec306583bb1a1b')
-
-prepare() {
- cd ${_pkgname}-${pkgver}
- sed 's| .install-cython ||g' -i Makefile
-}
-
-build() {
- cd ${_pkgname}-${pkgver}
- make cythonize
- LANG=en_US.UTF-8 python setup.py build
-}
-
-check() {
- cd ${_pkgname}-${pkgver}
- local _python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-${_python_version}" pytest
-}
-
-package() {
- cd ${_pkgname}-${pkgver}
- LANG=en_US.UTF-8 python setup.py install --root="${pkgdir}" -O1 --skip-build
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-yarl/repos/community-x86_64/PKGBUILD (from rev 1288923, python-yarl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-30 18:37:01 UTC (rev 1288924)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=yarl
+pkgname=python-yarl
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='Yet another URL library'
+url='https://github.com/aio-libs/yarl/'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc' 'python' 'python-multidict' 'python-idna' 'python-typing_extensions')
+makedepends=('cython' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-cov')
+source=(https://github.com/aio-libs/yarl/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('267523216832c2bc83d92a42e621ff519d427e20c1ee84ac657e13f696a2df2259c837486f192d87944f5ebb834beea60ace791eb4c9c632fd7e552eb5dadf1b')
+b2sums=('c7390b78abb5074dd29e96848a77fdb31f6224e99d2bcfd5a28a8bd08881f5ff82cf55b2f54c97324d005a0fb3823732a9ed6bd3f1d837e4ac2341b89e2adb30')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ sed 's| .install-cython ||g' -i Makefile
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ make cythonize
+ export LANG=en_US.UTF-8
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ 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
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ #LANG=en_US.UTF-8 python setup.py install --root="${pkgdir}" -O1 --skip-build
+ export LANG=en_US.UTF-8
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list