Date: Sunday, April 23, 2023 @ 08:36:16
Author: polyzen
Revision: 1448372
archrelease: copy trunk to community-any
Added:
python-aiohttp-apispec/repos/community-any/3b4d08ea.patch
(from rev 1448371, python-aiohttp-apispec/trunk/3b4d08ea.patch)
python-aiohttp-apispec/repos/community-any/PKGBUILD
(from rev 1448371, python-aiohttp-apispec/trunk/PKGBUILD)
Deleted:
python-aiohttp-apispec/repos/community-any/3b4d08ea.patch
python-aiohttp-apispec/repos/community-any/PKGBUILD
----------------+
3b4d08ea.patch | 88 +++++++++++++++++++++++++++----------------------------
PKGBUILD | 87 +++++++++++++++++++++++++++---------------------------
2 files changed, 88 insertions(+), 87 deletions(-)
Deleted: 3b4d08ea.patch
===================================================================
--- 3b4d08ea.patch 2023-04-23 08:35:49 UTC (rev 1448371)
+++ 3b4d08ea.patch 2023-04-23 08:36:16 UTC (rev 1448372)
@@ -1,44 +0,0 @@
-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-any/3b4d08ea.patch (from rev
1448371, python-aiohttp-apispec/trunk/3b4d08ea.patch)
===================================================================
--- 3b4d08ea.patch (rev 0)
+++ 3b4d08ea.patch 2023-04-23 08:36:16 UTC (rev 1448372)
@@ -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
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-23 08:35:49 UTC (rev 1448371)
+++ PKGBUILD 2023-04-23 08:36:16 UTC (rev 1448372)
@@ -1,43 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <[email protected]>
-
-_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:
Copied: python-aiohttp-apispec/repos/community-any/PKGBUILD (from rev 1448371,
python-aiohttp-apispec/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-23 08:36:16 UTC (rev 1448372)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+
+_pkgname=aiohttp-apispec
+pkgname=python-$_pkgname
+pkgver=2.2.3
+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-build' 'python-installer' 'python-pip' 'python-setuptools'
+ 'python-wheel')
+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 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python setup.py pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: