[arch-commits] Commit in python-py7zr/repos/community-any (PKGBUILD PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Mar 3 11:37:58 UTC 2022
Date: Thursday, March 3, 2022 @ 11:37:58
Author: alerque
Revision: 1140470
archrelease: copy trunk to community-any
Added:
python-py7zr/repos/community-any/PKGBUILD
(from rev 1140469, python-py7zr/trunk/PKGBUILD)
Deleted:
python-py7zr/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 44 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-03 11:37:51 UTC (rev 1140469)
+++ PKGBUILD 2022-03-03 11:37:58 UTC (rev 1140470)
@@ -1,35 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=py7zr
-pkgname=python-py7zr
-pkgver=0.16.2
-pkgrel=3
-pkgdesc="Pure python 7-zip library"
-arch=('any')
-url="https://github.com/miurahr/${_pkgname}"
-license=('LGPL')
-depends=('python-pycryptodomex' 'python-texttable' 'python-multivolumefile' 'python-pyppmd' 'python-pyzstd' 'python-brotlicffi')
-optdepends=('python-zstandard: zstd compression')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pytest-benchmark' 'python-pytest-timeout' 'pyannotate' 'p7zip' 'python-py-cpuinfo')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('e741f0271ebb12551e4a4b57bf01fca226e7136ff301d15c083cd262f8c4a0d6')
-b2sums=('75b74735155b93bbaf835c44a607b8c7b321b8663b873007f7197685d4acdc34328430358eb0f8a9902a48d0c27aeb07a0f6edaef1ddd30d48ed2b4316d4e007')
-
-build(){
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py build
-}
-
-check() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python -m pytest -rsx -m 'not benchmark'
-}
-
-package() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}
Copied: python-py7zr/repos/community-any/PKGBUILD (from rev 1140469, python-py7zr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-03 11:37:58 UTC (rev 1140470)
@@ -0,0 +1,44 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=python-py7zr
+_pyname=${pkgname#python-}
+pkgver=0.17.4
+pkgrel=1
+pkgdesc='Pure python 7-zip library'
+arch=(any)
+url="https://github.com/miurahr/${_pyname}"
+license=(LGPL)
+depends=(python-pycryptodomex
+ python-texttable
+ python-multivolumefile
+ python-pyppmd
+ python-pyzstd
+ python-brotlicffi)
+optdepends=('python-zstandard: zstd compression')
+makedepends=(python-{build,installer}
+ python-setuptools-scm
+ python-wheel)
+checkdepends=(python-pytest-benchmark
+ python-pytest-timeout
+ pyannotate
+ p7zip
+ python-py-cpuinfo)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('1df67edaa8dd1613fc5a7de3354322e7bc75d989d6069924ce2d08bb7fabdd19')
+
+build(){
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ python -m pytest -rsx -m 'not benchmark and not remote_data'
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+}
More information about the arch-commits
mailing list