Github messages for voidlinux
 help / color / mirror / Atom feed
From: Goorzhel <Goorzhel@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-click: update to 8.1.3.
Date: Fri, 24 Jun 2022 03:06:50 +0200	[thread overview]
Message-ID: <20220624010650.IeItXfAi4-2HU8dg2izyQcVo2IrtlY9JXuIp5zEmvQA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37629@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 6231 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages python3-click
https://github.com/void-linux/void-packages/pull/37629

python3-click: update to 8.1.3.
<details>
<summary>python3-click tests pass</summary>

```
$ git log --oneline --decorate | head -2
72184752a3 (HEAD -> python3-click) python3-click: update to 8.1.3.
fce1ba0a35 (upstream/master, upstream/HEAD, master) riff: update to 2.17.0.
$ ./xbps-src check python3-click
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-us.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-us.voidlinux.org/current/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> python3-click-8.1.3_1: removing autodeps, please wait...
=> python3-click-8.1.3_1: building [python3-module] for x86_64...
   [host] python3-setuptools-62.3.3_1: found (https://repo-default.voidlinux.org/current)
   [check] python3-pytest-7.1.2_1: found (https://repo-default.voidlinux.org/current)
   [target] python3-3.10.5_1: found (https://repo-default.voidlinux.org/current)
   [runtime] python3-3.10.5_1: found (https://repo-default.voidlinux.org/current)
=> python3-click-8.1.3_1: installing host dependencies: python3-setuptools-62.3.3_1 python3-pytest-7.1.2_1 ...
=> python3-click-8.1.3_1: installing target dependencies: python3-3.10.5_1 ...
=> python3-click-8.1.3_1: running do_check ...
============================= test session starts ==============================
platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0
rootdir: /builddir/click-8.1.3, configfile: setup.cfg, testpaths: tests
collected 598 items

tests/test_arguments.py ...................................              [  5%]
tests/test_basic.py .................................................... [ 14%]
....                                                                     [ 15%]
tests/test_chain.py ...............x                                     [ 17%]
tests/test_command_decorators.py ...                                     [ 18%]
tests/test_commands.py ........................                          [ 22%]
tests/test_compat.py .                                                   [ 22%]
tests/test_context.py .......................                            [ 26%]
tests/test_custom_classes.py ......                                      [ 27%]
tests/test_defaults.py ...                                               [ 27%]
tests/test_formatting.py ................                                [ 30%]
tests/test_imports.py .                                                  [ 30%]
tests/test_info_dict.py ......................                           [ 34%]
tests/test_normalization.py ...                                          [ 34%]
tests/test_options.py .................................................. [ 43%]
...............................................................          [ 53%]
tests/test_parser.py .......                                             [ 55%]
tests/test_shell_completion.py .....................................     [ 61%]
tests/test_termui.py ...........................................ssssssss [ 69%]
sssssssssssss.................                                           [ 74%]
tests/test_testing.py .......................                            [ 78%]
tests/test_types.py ..................................                   [ 84%]
tests/test_utils.py .................................................... [ 92%]
..........................................                               [100%]

================== 576 passed, 21 skipped, 1 xfailed in 0.97s ==================
```
</details>

<details>
<summary>How I tested each reverse dependency</summary>

```
$ xbps-query -RX python3-click
activityrelay-0.2.1_1
black-21.9b0_2
fava-1.18_2
gandi-cli-1.6_2
khal-0.10.4_2
litecli-1.8.0_1
magic-wormhole-0.12.0_3
pantalaimon-0.8.0_2
papis-0.11.1_2
pgcli-3.4.1_1
platformio-5.2.5_1
python3-Flask-2.0.2_1
python3-click-log-0.3.2_5
python3-click-plugins-1.1.1_4
python3-click-repl-0.1.6_3
python3-click-threading-0.4.4_5
python3-dotenv-0.19.0_2
python3-httpx-0.23.0_1
python3-pgspecial-1.13.1_1
python3-proselint-0.12.0_1
python3-pyinfra-2.1_1
python3-quart-0.17.0_1
python3-shodan-1.25.0_2
python3-tmuxp-1.10.1_1
python3-userpath-1.7.0_2
subliminal-2.1.0_6
termdown-1.17.0_3
vdirsyncer-0.18.0_2
yubikey-manager-4.0.7_1

$ for i in $(xbps-query -RX python3-click); do
  i=${i%-*}  # strip version
  ./xbps-src check $i &> ~Temp/click/$i
done
```
</details>

## Results of `xbps-src check`

### Pass
- khal-0.10.4_2
- litecli-1.8.0_1
- pantalaimon-0.8.0_2
- platformio-5.2.5_1
- python3-click-log-0.3.2_5
- python3-click-plugins-1.1.1_4
- python3-dotenv-0.19.0_2
- python3-proselint-0.12.0_1
- python3-pyinfra-2.1_1
- python3-quart-0.17.0_1
- python3-tmuxp-1.10.1_1
- python3-userpath-1.7.0_2
- subliminal-2.1.0_6
- yubikey-manager-4.0.7_1

### Fail
- black-21.9b0_2 (and 22.3.0_1)
- fava-1.18_2
- python3-Flask-2.0.2_1
- python3-click-threading-0.4.4_5
- gandi-cli-1.6_2
- python3-shodan-1.25.0_2
- vdirsyncer-0.18.0_2

### Don't test (`make_check=no`)
- activityrelay-0.2.1_1
- python3-click-repl-0.1.6_3
- pgcli-3.4.1_1
- python3-httpx-0.23.0_1
- python3-pgspecial-1.13.1_1

### Can't test
All of these fail with
> /usr/bin/python3: No module named pip

- magic-wormhole-0.12.0_3
- papis-0.11.1_2
- termdown-1.17.0_3

A patch file from https://github.com/void-linux/void-packages/pull/37629.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-click-37629.patch --]
[-- Type: text/x-diff, Size: 3449 bytes --]

From 9499908f9d0fc9dedab53abeaa460c3d7c2a26ae Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Mon, 20 Jun 2022 12:31:35 -0700
Subject: [PATCH 1/2] python3-click: update to 8.1.3.

---
 srcpkgs/python3-click/template | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-click/template b/srcpkgs/python3-click/template
index 2583a95cc4ad..921ddbbe0cb2 100644
--- a/srcpkgs/python3-click/template
+++ b/srcpkgs/python3-click/template
@@ -1,17 +1,19 @@
 # Template file for 'python3-click'
 pkgname=python3-click
-version=7.1.2
-revision=5
+version=8.1.3
+revision=1
 wrksrc="click-${version}"
 build_style="python3-module"
 hostmakedepends="python3-setuptools"
 depends="python3"
+checkdepends="python3-pytest"
 short_desc="Python3 package for creating beautiful command line interfaces"
 maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
 license="BSD-3-Clause"
-homepage="http://click.pocoo.org/"
+homepage="https://palletsprojects.com/p/click/"
+changelog="https://raw.githubusercontent.com/pallets/click/main/CHANGES.rst"
 distfiles="${PYPI_SITE}/c/click/click-${version}.tar.gz"
-checksum=d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
+checksum=7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e
 
 post_install() {
 	vlicense LICENSE.rst

From 9ae0f5f9f152881d27685ade2801b7cde9b4f1cb Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Tue, 21 Jun 2022 22:14:38 -0700
Subject: [PATCH 2/2] fava: update to 1.21.

make_check=no because:
```
=> fava-1.21_1: running do_check ...
ImportError while loading conftest '/builddir/fava-1.21/tests/conftest.py'.
tests/conftest.py:19: in <module>
    from fava.application import _load_file
build/lib/fava/application.py:40: in <module>
    from fava import __version__ as fava_version
E   ImportError: cannot import name '__version__' from 'fava'
 (/builddir/fava-1.21/build/lib/fava/__init__.py)
=> ERROR: fava-1.21_1: do_check: 'PYTHONPATH="$PWD/build/lib" python3 -m
 pytest tests -k 'not cli and not static_url'' exited with 4
=> ERROR:   in do_check() at srcpkgs/fava/template:20
```
---
 srcpkgs/fava/template | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/fava/template b/srcpkgs/fava/template
index 9b0f83e540b9..75ed00f9e9f7 100644
--- a/srcpkgs/fava/template
+++ b/srcpkgs/fava/template
@@ -1,19 +1,20 @@
 # Template file for 'fava'
 pkgname=fava
-version=1.18
-revision=2
-build_style=python3-module
+version=1.21
+revision=1
+build_style=python3-pep517
 hostmakedepends="python3-setuptools_scm"
 depends="python3-Babel python3-Cheroot python3-Flask-Babel python3-Flask
  python3-Jinja2 beancount python3-click python3-markdown2 python3-ply
- python3-simplejson python3-Werkzeug python3-aiohttp"
+ python3-simplejson python3-Werkzeug python3-aiohttp python3-wheel"
 checkdepends="$depends"
 short_desc="Web interface for Beancount"
 maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
 license="MIT"
 homepage="https://beancount.github.io/fava/"
 distfiles="${PYPI_SITE}/f/fava/fava-${version}.tar.gz"
-checksum=21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5
+checksum=d1a1422848e65e7eb275d80d322f6de2bcea1dc37b5412e8cf72c483d6a998d6
+make_check=no  # "ImportError: cannot import name '__version__' from 'fava'"
 
 do_check() {
 	# CLI test expects fava on $PATH.  Not sure why static_url fails.

  parent reply	other threads:[~2022-06-24  1:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21  0:14 [PR PATCH] " Goorzhel
2022-06-21  0:14 ` Goorzhel
2022-06-21  0:38 ` Goorzhel
2022-06-22  2:28 ` Goorzhel
2022-06-22  2:39 ` Goorzhel
2022-06-22  2:39 ` Goorzhel
2022-06-22  3:46 ` Goorzhel
2022-06-22 11:53 ` leahneukirchen
2022-06-22 12:11 ` leahneukirchen
2022-06-24  1:05 ` Goorzhel
2022-06-24  1:06 ` Goorzhel [this message]
2022-06-24  2:50 ` [PR PATCH] [Updated] " Goorzhel
2022-06-24  3:03 ` Goorzhel
2022-06-24  3:04 ` Goorzhel
2022-06-24 15:36 ` ahesford
2022-06-24 16:48 ` [PR PATCH] [Updated] " leahneukirchen
2022-06-24 18:45 ` paper42
2022-06-24 18:49 ` leahneukirchen
2022-06-24 19:28 ` icp1994
2022-06-24 19:38 ` [PR PATCH] [Updated] " leahneukirchen
2022-06-24 19:52 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220624010650.IeItXfAi4-2HU8dg2izyQcVo2IrtlY9JXuIp5zEmvQA@z \
    --to=goorzhel@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).