[arch-commits] Commit in python-starlette/repos/community-any (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Jun 19 18:29:51 UTC 2021


    Date: Saturday, June 19, 2021 @ 18:29:50
  Author: ffy00
Revision: 965619

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  110 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 56 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-19 18:29:42 UTC (rev 965618)
+++ PKGBUILD	2021-06-19 18:29:50 UTC (rev 965619)
@@ -1,54 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=starlette
-pkgname=python-$_pkgname
-pkgver=0.13.8
-pkgrel=3
-pkgdesc='The little ASGI framework that shines'
-arch=('any')
-url='https://github.com/encode/starlette'
-license=('BSD')
-depends=('python')
-optdepends=('python-aiofiles' 'python-graphene' 'python-itsdangerous' 'python-jinja'
-            'python-yaml' 'python-requests' 'python-ujson')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner'
-              'python-aiofiles' 'python-graphene' 'python-itsdangerous' 'python-jinja'
-              'python-yaml' 'python-requests' 'python-ujson'
-              'python-unidecode')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('362d5422868aa8541406e8d69a408bc5acdd64989c5f63e6fe3119a2e842eea248bb8646af9c9e0ac35c5c59a91ee1ff15d064c74d7f760ae536193e13ae9ced')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  # needs python-multipart
-  rm tests/test_formparsers.py
-
-  # needs python-databases
-  rm tests/test_database.py
-
-  # needs a different graphql version
-  rm tests/test_graphql.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  # test_request_form_urlencoded needs python-multipart
-  python setup.py pytest --addopts -k-test_request_form_urlencoded
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-starlette/repos/community-any/PKGBUILD (from rev 965618, python-starlette/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-19 18:29:50 UTC (rev 965619)
@@ -0,0 +1,56 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=starlette
+pkgname=python-$_pkgname
+pkgver=0.14.2
+pkgrel=1
+pkgdesc='The little ASGI framework that shines'
+arch=('any')
+url='https://github.com/encode/starlette'
+license=('BSD')
+depends=('python' 'python-anyio')
+optdepends=('python-aiofiles' 'python-graphene' 'python-itsdangerous' 'python-jinja'
+            'python-yaml' 'python-requests' 'python-ujson' 'python-python-multipart')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-trio' 'python-pytest-asyncio'
+              'python-aiofiles' 'python-graphene' 'python-itsdangerous' 'python-jinja'
+              'python-yaml' 'python-requests' 'python-ujson'
+              'python-unidecode' 'python-python-multipart')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('4321d3d1890c49dea53d7923b456772ecc9d28083d28392e0e9cd1f39f33180cc1cb28914bee443849fa8c87015dd99610ea18e03f0101b0eaf3f8df56249fab')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # remove pytest-cov usage
+  sed -i '/^  --cov.*/d' setup.cfg
+
+  # needs python-multipart
+  rm tests/test_formparsers.py
+
+  # needs python-databases
+  rm tests/test_database.py
+
+  # needs a different graphql version
+  rm tests/test_graphql.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest -p no:warnings
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list