Date: Wednesday, February 1, 2023 @ 06:13:30
  Author: allan
Revision: 1391661

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 35 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-01 06:12:48 UTC (rev 1391660)
+++ PKGBUILD    2023-02-01 06:13:30 UTC (rev 1391661)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pook
-pkgver=1.1.1
-pkgrel=1
-pkgdesc="Versatile and expressive HTTP traffic mocking and testing made simple 
in Python"
-url="https://github.com/h2non/pook";
-license=('MIT')
-arch=('any')
-depends=('python-furl' 'python-jsonschema' 'python-xmltodict')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-pytest' 'python-aiohttp' 'python-requests')
-source=("https://github.com/h2non/pook/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('d9764f322475cb544498c3a2efb830790f058147903298e354ee02f2c14b7f1f3f8f227bf03de09ba09476ab2230d3a4064a944ada1aa327d1dba907b21dc505')
-
-build() {
-  cd pook-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd pook-$pkgver
-  pytest
-}
-
-package() {
-  cd pook-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-
-  # It's only present when tests are enabled, so adding -f
-  rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
-}

Copied: python-pook/repos/community-any/PKGBUILD (from rev 1391660, 
python-pook/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-01 06:13:30 UTC (rev 1391661)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pook
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="Versatile and expressive HTTP traffic mocking and testing made simple 
in Python"
+url="https://github.com/h2non/pook";
+license=('MIT')
+arch=('any')
+depends=('python-furl' 'python-jsonschema' 'python-xmltodict')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-pytest' 'python-aiohttp' 'python-requests')
+source=("https://github.com/h2non/pook/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('d9764f322475cb544498c3a2efb830790f058147903298e354ee02f2c14b7f1f3f8f227bf03de09ba09476ab2230d3a4064a944ada1aa327d1dba907b21dc505')
+
+build() {
+  cd pook-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pook-$pkgver
+  pytest
+}
+
+package() {
+  cd pook-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+  # It's only present when tests are enabled, so adding -f
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  rm -rf "$pkgdir"/$site_packages/tests
+}

Reply via email to