Date: Saturday, May 13, 2023 @ 22:46:58 Author: arojas Revision: 1460779
upgpkg: woob 3.5-1: Update to 3.5 Modified: woob/trunk/PKGBUILD ----------+ PKGBUILD | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-13 22:45:38 UTC (rev 1460778) +++ PKGBUILD 2023-05-13 22:46:58 UTC (rev 1460779) @@ -1,8 +1,8 @@ # Maintainer: Bruno Pagani <[email protected]> pkgname=woob -pkgver=3.2 -pkgrel=2 +pkgver=3.5 +pkgrel=1 pkgdesc="Core library and modules for Web outside of Browsers" arch=(any) url="https://woob.tech/" @@ -19,6 +19,7 @@ python-pillow python-babel python-simplejson + python-pycountry ) optdepends=( 'python-colorama: CLI usage' @@ -28,17 +29,18 @@ 'python-pycryptodome: required by some modules' 'python-google-api-python-client: multiple Google services like YouTube' ) -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-setuptools python-wheel) checkdepends=(python-pytest python-prettytable) replaces=(weboob) provides=(weboob) conflicts=(weboob) -source=(https://files.pythonhosted.org/packages/source/w/${pkgname}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('f3207daa894153af6e21cad8dc99ad4d68915de7316515421d8009cb90ada780') +#source=(https://files.pythonhosted.org/packages/source/w/${pkgname}/${pkgname}-${pkgver}.tar.gz) +source=(https://gitlab.com/woob/woob/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('a3927c5421a5f7af6fc21c79f8e0c7456685125eae88aede0aecb9773176d0b4') build() { cd ${pkgname}-${pkgver} - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -48,7 +50,5 @@ package() { cd ${pkgname}-${pkgver} - python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 - local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - rm -r "${pkgdir}"/${site_packages}/tests + python -m installer --destdir="${pkgdir}" dist/*.whl }
