[arch-commits] Commit in nvchecker/repos/community-any (3 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 10:37:45 UTC 2019
Date: Monday, November 4, 2019 @ 10:37:45
Author: felixonmars
Revision: 524023
archrelease: copy trunk to community-any
Added:
nvchecker/repos/community-any/PKGBUILD
(from rev 524022, nvchecker/trunk/PKGBUILD)
Deleted:
nvchecker/repos/community-any/PKGBUILD
nvchecker/repos/community-any/fix-tests.patch
-----------------+
PKGBUILD | 82 +++++++++++++++++++++++++-----------------------------
fix-tests.patch | 17 -----------
2 files changed, 39 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-04 10:37:30 UTC (rev 524022)
+++ PKGBUILD 2019-11-04 10:37:45 UTC (rev 524023)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=nvchecker
-pkgver=1.4.4
-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-flaky')
-optdepends=(
- 'pyalpm: allow using "sort_version_key = vercmp" in configuration files'
-)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz"
- 'fix-tests.patch')
-sha512sums=('5fb95901641953a093a8d6c10d5b72ad9982dc8cc6161e769b30a861e4057100b861dbe9ae26c288b4fa1126b261f34c82afeb0052670429c1b7f97d1b2cf6ff'
- '398dd6d080bdd4d50905a32012fb33fb3d057d4e655a5a908c3ddf0f9f944a55ab5b20fd0545cb2b3e2d9ff2325c596cad8116012e6a281ca01414ead66be92e')
-
-prepare() {
- cd nvchecker-$pkgver
- patch -Np1 -i ../fix-tests.patch
-}
-
-build() {
- cd nvchecker-$pkgver
- python setup.py build
-}
-
-check() {
- cd nvchecker-$pkgver
- # Debian API appears broken
- pytest -k 'not test_debianpkg'
-}
-
-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 524022, nvchecker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-04 10:37:45 UTC (rev 524023)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=nvchecker
+pkgver=1.5
+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")
+sha512sums=('78902e43bbd9208b6668eab9a59036fe699918a87dc84ffbf174941597c6f23bf6952952d839a3a2941fad3cbcdc5a8c6336367d6d232491b67caa4631f85a58')
+
+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:
Deleted: fix-tests.patch
===================================================================
--- fix-tests.patch 2019-11-04 10:37:30 UTC (rev 524022)
+++ fix-tests.patch 2019-11-04 10:37:45 UTC (rev 524023)
@@ -1,17 +0,0 @@
-diff --git a/tests/test_regex.py b/tests/test_regex.py
-index d131cdd..6f40efa 100644
---- a/tests/test_regex.py
-+++ b/tests/test_regex.py
-@@ -5,10 +5,10 @@ import pytest
- pytestmark = pytest.mark.asyncio
-
- async def test_regex_httpbin_default_user_agent(get_version):
-- assert await get_version("example", {
-+ assert (await get_version("example", {
- "url": "https://httpbin.org/get",
- "regex": r'"User-Agent": "([^"]+)"',
-- }) == "lilydjwg/nvchecker"
-+ })).startswith("lilydjwg/nvchecker")
-
- async def test_regex_httpbin_user_agent(get_version):
- assert await get_version("example", {
More information about the arch-commits
mailing list