Date: Sunday, April 9, 2023 @ 14:13:19
  Author: felixonmars
Revision: 1443248

archrelease: copy trunk to community-staging-any

Added:
  python-py7zr/repos/community-staging-any/
  python-py7zr/repos/community-staging-any/PKGBUILD
    (from rev 1443247, python-py7zr/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: python-py7zr/repos/community-staging-any/PKGBUILD (from rev 1443247, 
python-py7zr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 14:13:19 UTC (rev 1443248)
@@ -0,0 +1,60 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+pkgname=python-py7zr
+_pyname=${pkgname#python-}
+pkgver=0.20.2
+pkgrel=2
+pkgdesc='Pure python 7-zip library'
+arch=(any)
+url="https://github.com/miurahr/${_pyname}";
+license=(LGPL)
+_pydeps=(brotli
+         brotlicffi
+         psutil
+         multivolumefile
+         pybcj
+         pycryptodomex
+         pyppmd
+         pyzstd
+         texttable
+         inflate64)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+optdepends=('python-zstandard: zstd compression')
+makedepends=(python-{build,installer,wheel}
+             python-setuptools-scm)
+checkdepends=(p7zip
+              pyannotate
+              python-py-cpuinfo
+              python-pytest-benchmark
+              python-pytest-timeout)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz";)
+sha256sums=('791ef912a295b61b91c5fe0c23adeddb80bf13500308062c082b8fec6c8c9653')
+
+prepare() {
+       cd "$_archive"
+       # Upstream setuptools version pinning is too aggressive for us.
+       # It is also outdated because current versions have toml support is 
builtin.
+       sed -i -E '/^requires /s#([a-z])[\[>][^"]*"#\1"#g' pyproject.toml
+       sed -i -E '/setuptools/s#>.*##' setup.cfg
+}
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+check() {
+       cd "$_archive"
+       python -m pytest -rsx \
+               --deselect tests/test_concurrent.py \
+               --deselect tests/test_extra_codecs.py \
+               -m 'not benchmark and not remote_data'
+}
+
+package() {
+       cd "$_archive"
+       python -m installer -d "$pkgdir" dist/*.whl
+}

Reply via email to