[arch-commits] Commit in python-aiohttp-apispec/repos/community-any (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat Jun 18 20:53:16 UTC 2022


    Date: Saturday, June 18, 2022 @ 20:53:16
  Author: arojas
Revision: 1238565

archrelease: copy trunk to community-any

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

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

Copied: python-aiohttp-apispec/repos/community-any/3b4d08ea.patch (from rev 1238564, python-aiohttp-apispec/trunk/3b4d08ea.patch)
===================================================================
--- 3b4d08ea.patch	                        (rev 0)
+++ 3b4d08ea.patch	2022-06-18 20:53:16 UTC (rev 1238565)
@@ -0,0 +1,44 @@
+From 3b4d08ea694fa799e94397940fb68467f3c4a8a8 Mon Sep 17 00:00:00 2001
+From: Dave <pzhang65 at uwo.ca>
+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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-18 20:53:03 UTC (rev 1238564)
+++ PKGBUILD	2022-06-18 20:53:16 UTC (rev 1238565)
@@ -1,37 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=aiohttp-apispec
-pkgname=python-$_pkgname
-pkgver=2.2.1
-pkgrel=3
-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')
-checkdepends=('python-pytest-runner' 'python-pytest-aiohttp')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('c69ecf30c1e875b2961567fc599276ee559328a0e37954352b3fe45d60f486872b7a367fc2de6f186ced44ab732c0746c90dcb503db9200681fe6384b00f8ecd')
-
-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:

Copied: python-aiohttp-apispec/repos/community-any/PKGBUILD (from rev 1238564, python-aiohttp-apispec/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-18 20:53:16 UTC (rev 1238565)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiohttp-apispec
+pkgname=python-$_pkgname
+pkgver=2.2.3
+pkgrel=1
+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')
+checkdepends=('python-pytest-runner' 'python-pytest-aiohttp')
+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:



More information about the arch-commits mailing list