From 5d45dbd7988d61ad19a7e0f114310b1b6d2b159b Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 25 Jun 2022 00:47:10 +0530 Subject: [PATCH] papis: update to 0.12. --- srcpkgs/papis/template | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/srcpkgs/papis/template b/srcpkgs/papis/template index c97d9c49ddcb..9c76ee807479 100644 --- a/srcpkgs/papis/template +++ b/srcpkgs/papis/template @@ -1,22 +1,34 @@ # Template file for 'papis' pkgname=papis -version=0.11.1 -revision=2 +version=0.12 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-requests python3-yaml python3-chardet python3-BeautifulSoup4 - python3-colorama python3-click python3-slugify python3-prompt_toolkit - python3-tqdm python3-Pygments python3-stevedore python3-parsing - python3-filetype python3-bibtexparser python3-habanero python3-arxiv2bib - python3-isbnlib python3 python3-setuptools python3-lxml - python3-typing_extensions python3-doi" +depends="python3-requests python3-filetype python3-parsing python3-arxiv2bib + python3-yaml python3-chardet python3-BeautifulSoup4 python3-colorama + python3-bibtexparser python3-click python3-habanero python3-isbnlib + python3-prompt_toolkit python3-tqdm python3-Pygments python3-stevedore + python3-doi python3-lxml python3-slugify python3-Whoosh" +checkdepends="${depends} python3-pytest" short_desc="Command-line based document and bibliography manager" maintainer="xaltsc " license="GPL-3.0-or-later" homepage="https://github.com/papis/papis" +changelog="https://github.com/papis/papis/blob/master/CHANGELOG.md" distfiles="https://github.com/papis/papis/archive/v${version}.tar.gz" -checksum=8ebb2f6f50e2e92e16a37ffc1a054983f6b50c6a56d3629d9f612f4197d7a7da +checksum=75a91f827927a79ac648fbd810aacb1d2a0ba475f69f2f61c421c8b1dbf10cc9 -pre_build() { - sed -i '/configparser/d' setup.py +do_patch() { + vsed -e '/configparser/d' -i setup.py + vsed -e '/--cov=papis/d' -i setup.cfg +} + +do_check() { + # Require to generate egg_info so that tests can use entry points + python3 setup.py egg_info + + # Deselected one test which fails dring upstream CI too + # https://github.com/papis/papis/runs/6558190874?check_suite_focus=true + PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest papis/ tests/ \ + --deselect=tests/downloaders/test_project_euclid.py::test_1 }