[arch-commits] Commit in nvchecker/trunk (PKGBUILD pytest-asyncio-0.14.diff)

2020-07-03 Thread Chih-Hsuan Yen via arch-commits
Date: Friday, July 3, 2020 @ 13:05:22
  Author: yan12125
Revision: 657631

upgpkg: nvchecker 1.7-1; go back to git tag, drop workaround for the issue 
fixed upstream

Modified:
  nvchecker/trunk/PKGBUILD
Deleted:
  nvchecker/trunk/pytest-asyncio-0.14.diff

--+
 PKGBUILD |   23 +++
 pytest-asyncio-0.14.diff |   13 -
 2 files changed, 7 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-03 13:02:45 UTC (rev 657630)
+++ PKGBUILD2020-07-03 13:05:22 UTC (rev 657631)
@@ -2,10 +2,8 @@
 # Maintainer: Chih-Hsuan Yen 
 
 pkgname=nvchecker
-pkgver=1.6.post1
-# The commit bumps version in setup.py, and it's not tagged
-_commit=bc2fcd148d460ec9c0f0c12bc77e0326adad5546
-pkgrel=2
+pkgver=1.7
+pkgrel=1
 pkgdesc="New version checker for software releases"
 arch=('any')
 url="https://github.com/lilydjwg/nvchecker;
@@ -19,28 +17,21 @@
   'mercurial: for VCS sources'
   'subversion: for VCS sources'
 )
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz;
-"pytest-asyncio-0.14.diff")
-sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c'
-
'442176e351ba1c3937fc98e2a97b8ceab59f340d438d9d59aa2c156b299061b945f2a6a5f07b125138d347ff1cc1db4623ee7043469eaf25634628aa0cb02320')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz;)
+sha512sums=('6243960747de33bd004bb3377109699f702bb64d65320e0c219f540546f33ace2d87be4eb2b18d988874eb98812176488fa5c98aec6f93cd218b8549b38482d0')
 
-prepare() {
-  cd nvchecker-$_commit
-  patch -Np1 -i ../pytest-asyncio-0.14.diff
-}
-
 build() {
-  cd nvchecker-$_commit
+  cd nvchecker-$pkgver
   python setup.py build
 }
 
 check() {
-  cd nvchecker-$_commit
+  cd nvchecker-$pkgver
   pytest
 }
 
 package() {
-  cd nvchecker-$_commit
+  cd nvchecker-$pkgver
   # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722
   PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 
--skip-build
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname

Deleted: pytest-asyncio-0.14.diff
===
--- pytest-asyncio-0.14.diff2020-07-03 13:02:45 UTC (rev 657630)
+++ pytest-asyncio-0.14.diff2020-07-03 13:05:22 UTC (rev 657631)
@@ -1,13 +0,0 @@
-diff --git a/tests/conftest.py b/tests/conftest.py
-index bddf44a..daae169 100644
 a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -54,7 +54,7 @@ async def get_version():
- 
-   return __call__
- 
--@pytest.fixture(scope="module")
-+@pytest.fixture(scope="session")
- def event_loop(request):
-   """Override pytest-asyncio's event_loop fixture,
-  Don't create an instance of the default event loop for each test case.


[arch-commits] Commit in nvchecker/trunk (PKGBUILD pytest-asyncio-0.14.diff)

2020-07-01 Thread Chih-Hsuan Yen via arch-commits
Date: Wednesday, July 1, 2020 @ 16:15:50
  Author: yan12125
Revision: 657317

nvchecker: add a patch to work-around test suite hang

Ref: https://github.com/lilydjwg/nvchecker/issues/129

Added:
  nvchecker/trunk/pytest-asyncio-0.14.diff
Modified:
  nvchecker/trunk/PKGBUILD

--+
 PKGBUILD |   11 +--
 pytest-asyncio-0.14.diff |   13 +
 2 files changed, 22 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-01 16:03:40 UTC (rev 657316)
+++ PKGBUILD2020-07-01 16:15:50 UTC (rev 657317)
@@ -19,9 +19,16 @@
   'mercurial: for VCS sources'
   'subversion: for VCS sources'
 )
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz;)
-sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz;
+"pytest-asyncio-0.14.diff")
+sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c'
+
'442176e351ba1c3937fc98e2a97b8ceab59f340d438d9d59aa2c156b299061b945f2a6a5f07b125138d347ff1cc1db4623ee7043469eaf25634628aa0cb02320')
 
+prepare() {
+  cd nvchecker-$_commit
+  patch -Np1 -i ../pytest-asyncio-0.14.diff
+}
+
 build() {
   cd nvchecker-$_commit
   python setup.py build

Added: pytest-asyncio-0.14.diff
===
--- pytest-asyncio-0.14.diff(rev 0)
+++ pytest-asyncio-0.14.diff2020-07-01 16:15:50 UTC (rev 657317)
@@ -0,0 +1,13 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index bddf44a..daae169 100644
+--- a/tests/conftest.py
 b/tests/conftest.py
+@@ -54,7 +54,7 @@ async def get_version():
+ 
+   return __call__
+ 
+-@pytest.fixture(scope="module")
++@pytest.fixture(scope="session")
+ def event_loop(request):
+   """Override pytest-asyncio's event_loop fixture,
+  Don't create an instance of the default event loop for each test case.