Date: Monday, October 31, 2022 @ 13:19:20
  Author: alerque
Revision: 1339812

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-31 13:19:12 UTC (rev 1339811)
+++ PKGBUILD    2022-10-31 13:19:20 UTC (rev 1339812)
@@ -1,49 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Eli Schwartz <[email protected]>
-
-pkgname=python-py7zr
-_pyname=${pkgname#python-}
-pkgver=0.19.0
-pkgrel=1
-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=('cca9179c72430cbf8575ea22686344c351a14bf335c12c90e5db3628d93281a1')
-
-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
-}

Copied: python-py7zr/repos/community-any/PKGBUILD (from rev 1339811, 
python-py7zr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-31 13:19:20 UTC (rev 1339812)
@@ -0,0 +1,60 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+pkgname=python-py7zr
+_pyname=${pkgname#python-}
+pkgver=0.20.0
+pkgrel=1
+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=('2270f922f8d07bb8a83d28e1c57dd77570aea6bb876ed8eb4879a038c149ce5e')
+
+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