[arch-commits] Commit in nvchecker/repos/community-any (3 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Apr 15 10:03:51 UTC 2020


    Date: Wednesday, April 15, 2020 @ 10:03:50
  Author: yan12125
Revision: 614552

archrelease: copy trunk to community-any

Added:
  nvchecker/repos/community-any/PKGBUILD
    (from rev 614551, nvchecker/trunk/PKGBUILD)
  nvchecker/repos/community-any/nvchecker-update-tests-4.patch
    (from rev 614551, nvchecker/trunk/nvchecker-update-tests-4.patch)
Deleted:
  nvchecker/repos/community-any/PKGBUILD

--------------------------------+
 PKGBUILD                       |   87 ++++++++++++++++++---------------------
 nvchecker-update-tests-4.patch |   29 +++++++++++++
 2 files changed, 70 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-15 10:03:29 UTC (rev 614551)
+++ PKGBUILD	2020-04-15 10:03:50 UTC (rev 614552)
@@ -1,46 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=nvchecker
-pkgver=1.6
-pkgrel=1
-pkgdesc="New version checker for software releases"
-arch=('any')
-url="https://github.com/lilydjwg/nvchecker"
-license=('MIT')
-depends=('python' 'python-setuptools' 'python-structlog' 'python-tornado' 'python-pycurl')
-checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'git' 'mercurial')
-optdepends=(
-  'pyalpm: allow using "sort_version_key = vercmp" in configuration files'
-  'bzr: for VCS sources'
-  'git: for VCS sources'
-  'mercurial: for VCS sources'
-  'subversion: for VCS sources'
-)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz"
-        $pkgname-update-tests-4.patch::https://github.com/lilydjwg/nvchecker/commit/4fc62d35888c3d695956793d5724a52ba3a99574.patch)
-sha512sums=('adca20abcae1fcab2b87d166f18bc14d7e374de3041fcabd35eaaa8bc3d4b086ad16f9c94c5d242259011a0b1435a9c74e0d7959dffabf8da4eda6cf0694f5ee'
-            'ddf02d38b38560ee8edd8b814197e015d77425d546b4f436c42bea202f1e7514766e47bfaaec9733cb6df6d416c9a68c67baf48994045f07533e0cbc707f0b7d')
-
-prepare() {
-  cd nvchecker-$pkgver
-  patch -Np1 -i ../$pkgname-update-tests-4.patch
-}
-
-build() {
-  cd nvchecker-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd nvchecker-$pkgver
-  pytest
-}
-
-package() {
-  cd nvchecker-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}
-
-# vim:set ts=2 sw=2 et:

Copied: nvchecker/repos/community-any/PKGBUILD (from rev 614551, nvchecker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-15 10:03:50 UTC (rev 614552)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# 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=1
+pkgdesc="New version checker for software releases"
+arch=('any')
+url="https://github.com/lilydjwg/nvchecker"
+license=('MIT')
+depends=('python' 'python-setuptools' 'python-structlog' 'python-tornado' 'python-pycurl')
+checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-flaky' 'git' 'mercurial')
+optdepends=(
+  'pyalpm: allow using "sort_version_key = vercmp" in configuration files'
+  'bzr: for VCS sources'
+  'git: for VCS sources'
+  'mercurial: for VCS sources'
+  'subversion: for VCS sources'
+)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz")
+sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c')
+
+build() {
+  cd nvchecker-$_commit
+  python setup.py build
+}
+
+check() {
+  cd nvchecker-$_commit
+  pytest
+}
+
+package() {
+  cd nvchecker-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:

Copied: nvchecker/repos/community-any/nvchecker-update-tests-4.patch (from rev 614551, nvchecker/trunk/nvchecker-update-tests-4.patch)
===================================================================
--- nvchecker-update-tests-4.patch	                        (rev 0)
+++ nvchecker-update-tests-4.patch	2020-04-15 10:03:50 UTC (rev 614552)
@@ -0,0 +1,29 @@
+From 4fc62d35888c3d695956793d5724a52ba3a99574 Mon Sep 17 00:00:00 2001
+From: lilydjwg <lilydjwg at gmail.com>
+Date: Wed, 8 Apr 2020 18:17:32 +0800
+Subject: [PATCH] tests: update test_archpkg
+
+---
+ tests/test_archpkg.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_archpkg.py b/tests/test_archpkg.py
+index 36f7222..3096394 100644
+--- a/tests/test_archpkg.py
++++ b/tests/test_archpkg.py
+@@ -18,7 +18,7 @@ async def test_archpkg_provided(get_version):
+     assert await get_version("jsoncpp", {
+         "archpkg": None,
+         "provided": "libjsoncpp.so",
+-    }) == "21-64"
++    }) == "22-64"
+ 
+ @flaky
+ async def test_archpkg_provided_strip(get_version):
+@@ -26,5 +26,5 @@ async def test_archpkg_provided_strip(get_version):
+         "archpkg": None,
+         "provided": "libjsoncpp.so",
+         "strip-release": True,
+-    }) == "21"
++    }) == "22"
+ 



More information about the arch-commits mailing list