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

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Jul 3 13:05:22 UTC 2020


    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
===================================================================
--- PKGBUILD	2020-07-03 13:02:45 UTC (rev 657630)
+++ PKGBUILD	2020-07-03 13:05:22 UTC (rev 657631)
@@ -2,10 +2,8 @@
 # Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 
 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.diff	2020-07-03 13:02:45 UTC (rev 657630)
+++ pytest-asyncio-0.14.diff	2020-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__
- 
-- at pytest.fixture(scope="module")
-+ at 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.



More information about the arch-commits mailing list