Date: Sunday, April 16, 2023 @ 13:30:56
  Author: jelle
Revision: 1446554

archrelease: copy trunk to community-staging-any

Added:
  python-aiohttp-apispec/repos/community-staging-any/
  python-aiohttp-apispec/repos/community-staging-any/3b4d08ea.patch
    (from rev 1446553, python-aiohttp-apispec/trunk/3b4d08ea.patch)
  python-aiohttp-apispec/repos/community-staging-any/PKGBUILD
    (from rev 1446553, python-aiohttp-apispec/trunk/PKGBUILD)

----------------+
 3b4d08ea.patch |   44 ++++++++++++++++++++++++++++++++++++++++++++
 PKGBUILD       |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)

Copied: python-aiohttp-apispec/repos/community-staging-any/3b4d08ea.patch (from 
rev 1446553, python-aiohttp-apispec/trunk/3b4d08ea.patch)
===================================================================
--- community-staging-any/3b4d08ea.patch                                (rev 0)
+++ community-staging-any/3b4d08ea.patch        2023-04-16 13:30:56 UTC (rev 
1446554)
@@ -0,0 +1,44 @@
+From 3b4d08ea694fa799e94397940fb68467f3c4a8a8 Mon Sep 17 00:00:00 2001
+From: Dave <[email protected]>
+Date: Sun, 29 Aug 2021 15:54:07 -0400
+Subject: [PATCH] update unit tests
+
+---
+ tests/test_documentation.py | 133 ++++++++++++++++++++----------------
+ tests/test_web_app.py       |   6 +-
+ 2 files changed, 76 insertions(+), 63 deletions(-)
+
+diff --git a/tests/test_documentation.py b/tests/test_documentation.py
+index da60fe1..bf3dce6 100644
+--- a/tests/test_documentation.py
++++ b/tests/test_documentation.py
+@@ -132,17 +132,17 @@ async def test_app_swagger_json(aiohttp_app, 
example_for_request_schema):
+         sort_keys=True,
+     )
+ 
+-async def test_not_register_route_for_none_url():
+-    app = web.Application()
+-    routes_count = len(app.router.routes())
+-    setup_aiohttp_apispec(app=app, url=None)
+-    routes_count_after_setup_apispec = len(app.router.routes())
+-    assert routes_count == routes_count_after_setup_apispec
++# async def test_not_register_route_for_none_url():
++#     app = web.Application()
++#     routes_count = len(app.router.routes())
++#     setup_aiohttp_apispec(app=app, url=None)
++#     routes_count_after_setup_apispec = len(app.router.routes())
++#     assert routes_count == routes_count_after_setup_apispec
+ 
+ 
+-async def test_register_route_for_relative_url():
+-    app = web.Application()
+-    routes_count = len(app.router.routes())
+-    setup_aiohttp_apispec(app=app, url="api/swagger")
+-    routes_count_after_setup_apispec = len(app.router.routes())
+-    assert routes_count == routes_count_after_setup_apispec
++# async def test_register_route_for_relative_url():
++#     app = web.Application()
++#     routes_count = len(app.router.routes())
++#     setup_aiohttp_apispec(app=app, url="api/swagger")
++#     routes_count_after_setup_apispec = len(app.router.routes())
++#     assert routes_count == routes_count_after_setup_apispec

Copied: python-aiohttp-apispec/repos/community-staging-any/PKGBUILD (from rev 
1446553, python-aiohttp-apispec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-16 13:30:56 UTC (rev 1446554)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe LaĆ­ns (FFY00) <[email protected]>
+
+_pkgname=aiohttp-apispec
+pkgname=python-$_pkgname
+pkgver=2.2.3
+pkgrel=2
+pkgdesc='Build and document REST APIs with aiohttp and apispec'
+arch=('any')
+url='https://github.com/maximdanilchenko/aiohttp-apispec'
+license=('MIT')
+depends=('python-aiohttp' 'python-apispec' 'python-webargs' 'python-jinja')
+makedepends=('python-setuptools' 'python-pip')
+checkdepends=('python-pytest-runner' 'python-pytest-aiohttp' 
'python-pytest-asyncio')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+         3b4d08ea.patch)
+sha512sums=('846c92ce213c2f7165710be0f080fe8fb7c43c3fb4708f80aed3b5cc4c8dc78abf4dc4abbe63edfc8e3f634cdfa0bf7aeabb2a92129a2078d0e2e41680900c73'
+            
'8f148e0b403e3501b7d78041d1e110a87b7b8bfa574f7030d060605af2d369f86a1cbdbc4880e24faf608d0703c7c7abae787db459bbc05a92ee23385879c4a9')
+
+prepare() {
+  patch -d $_pkgname-$pkgver -p1 < 3b4d08ea.patch # Fix tests
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to