Date: Saturday, April 8, 2023 @ 06:21:45
  Author: yan12125
Revision: 1441986

upgpkg: nvchecker 2.11-1

* python-appdirs -> python-platformdirs [1]
* Switch to PEP 517 [2]
* Add more dependencies to make namcap happy

[1] https://github.com/lilydjwg/nvchecker/pull/220
[2] https://github.com/lilydjwg/nvchecker/pull/212

Modified:
  nvchecker/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-08 06:21:41 UTC (rev 1441985)
+++ PKGBUILD    2023-04-08 06:21:45 UTC (rev 1441986)
@@ -2,16 +2,20 @@
 # Maintainer: Chih-Hsuan Yen <[email protected]>
 
 pkgname=nvchecker
-pkgver=2.10
+pkgver=2.11
 # curl https://api.github.com/repos/lilydjwg/nvchecker/git/ref/tags/v$pkgver | 
jq -r .object.sha
-_tag=c4f69f73fada059967c03bffecf6bf09398f185f
+_tag=d619049d47a98630d7c73d276892fd9ff66ac633
 pkgrel=1
 pkgdesc="New version checker for software releases"
 arch=('any')
 url="https://github.com/lilydjwg/nvchecker";
 license=('MIT')
-depends=('python' 'python-tomli' 'python-structlog' 'python-appdirs' 
'python-tornado' 'python-pycurl')
-makedepends=('git' 'python-docutils' 'python-setuptools' 'python-pygments')
+depends=('python' 'python-tomli' 'python-structlog' 'python-platformdirs' 
'python-tornado' 'python-pycurl')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel'
+             # for building docs
+             'python-docutils' 'python-pygments'
+             # optional deps
+             'python-gobject' 'python-toml' 'python-aiohttp' 'python-httpx')
 checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-httpbin' 
'python-flaky'
               'pyalpm' 'python-awesomeversion' 'python-lxml' 'git')
 optdepends=(
@@ -19,6 +23,9 @@
   'python-awesomeversion: for using "sort_version_key = awesomeversion" in 
configuration files'
   'python-lxml: for the htmlparser source'
   'python-packaging: for the pypi source'
+  'python-toml: for nvchecker-ini2toml script'
+  'python-aiohttp: alternative HTTP backend'
+  'python-httpx: alternative HTTP backend'
   'git: support for git repositories'
   'python-gobject: for nvchecker-notify'
   'libnotify: for nvchecker-notify'
@@ -33,6 +40,8 @@
 )
 
 _backports=(
+  # Fix test_alpm in Arch chroots
+  '166dfb11a4c44a7e8b8b4205350abef6bafcd667'
 )
 
 pkgver() {
@@ -53,7 +62,7 @@
 
 build() {
   cd nvchecker
-  python setup.py build
+  python -m build --wheel --no-isolation
 
   make -C docs man
 }
@@ -65,7 +74,7 @@
 
 package() {
   cd nvchecker
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 
   # bash completion scripts & docs

Reply via email to