Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-isort: update to 5.12.0, python3-pytest-isort: fix tests
Date: Sun, 29 Jan 2023 12:25:52 +0100	[thread overview]
Message-ID: <20230129112552.H9MOcBjifJam2iV0dqoJPD0z7lFSFA-p6kmh9WDNoJE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41935@inbox.vuxu.org>

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

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

https://github.com/paper42/void-packages isort
https://github.com/void-linux/void-packages/pull/41935

python3-isort: update to 5.12.0, python3-pytest-isort: fix tests
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From d544ebdcb783089808bef3ace0e0a6df4dcd08a5 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 29 Jan 2023 11:38:59 +0100
Subject: [PATCH 1/2] python3-isort: update to 5.12.0.

---
 srcpkgs/python3-isort/template | 27 +++++++++++++++++++--------
 srcpkgs/python3-isort/update   |  1 +
 2 files changed, 20 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/python3-isort/update

diff --git a/srcpkgs/python3-isort/template b/srcpkgs/python3-isort/template
index 4c0621bc0865..677e5fe36845 100644
--- a/srcpkgs/python3-isort/template
+++ b/srcpkgs/python3-isort/template
@@ -1,20 +1,31 @@
 # Template file for 'python3-isort'
 pkgname=python3-isort
-version=5.10.1
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
-depends="python3-setuptools"
-checkdepends="python3-pytest"
+version=5.12.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-poetry-core"
+depends="python3"
+checkdepends="python3-pytest python3-hypothesis python3-colorama black git
+ python3-setuptools"
 short_desc="Python3 utility/library to sort imports"
 maintainer="Michal Vasilek <michal@vasilek.cz>"
 license="MIT"
 homepage="https://github.com/PyCQA/isort"
 changelog="https://raw.githubusercontent.com/PyCQA/isort/main/CHANGELOG.md"
 distfiles="${PYPI_SITE}/i/isort/isort-${version}.tar.gz"
-checksum=e8443a5e7a020e9d7f97f1d7d9cd17c88bcb3bc7e218bf9cf5095fe550be2951
+checksum=8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504
 conflicts="python-isort>=0"
-make_check=no # needs many unpackaged dependencies
+make_check=no # FIXME
+
+do_check() {
+	rm -f tests/integration/test_hypothesmith.py # needs unpackaged libcst
+	rm -f tests/unit/test_pylama_isort.py # needs unpackaged pylama
+	rm -rf tmp # remove artifacts from previous unsuccessful check run
+	mkdir tmp
+	bsdtar xf ../dist/isort-$version-py3-none-any.whl -C tmp
+	PYTHONPATH=tmp pytest
+	rm -rf tmp
+}
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/python3-isort/update b/srcpkgs/python3-isort/update
new file mode 100644
index 000000000000..e957dc43055f
--- /dev/null
+++ b/srcpkgs/python3-isort/update
@@ -0,0 +1 @@
+ignore="*a* *b*"

From 9dc9e3be81333df40a5c34c2159ec653c5fc93b9 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 29 Jan 2023 11:52:40 +0100
Subject: [PATCH 2/2] python3-pytest-isort: fix tests

---
 srcpkgs/python3-pytest-isort/template | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pytest-isort/template b/srcpkgs/python3-pytest-isort/template
index c3566853a180..f1a52c495311 100644
--- a/srcpkgs/python3-pytest-isort/template
+++ b/srcpkgs/python3-pytest-isort/template
@@ -11,10 +11,16 @@ maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
 license="MIT"
 homepage="https://github.com/stephrdev/pytest-isort"
 changelog="https://github.com/stephrdev/pytest-isort/raw/master/CHANGELOG.rst"
-distfiles="${PYPI_SITE}/p/pytest_isort/pytest_isort-${version}.tar.gz"
-checksum=067801dc5e54a474330d074d521c815948ff6d5cf0ed3b9d057b78216851186c
-# cba for now
-make_check=no
+distfiles="https://github.com/stephrdev/pytest-isort/archive/refs/tags/${version}.tar.gz"
+checksum=c6994dd442e2fe50f2667d6fa6e14a5800192966b628cc31107c8f96c36a514b
+
+do_check() {
+	rm -rf tmp # remove artifacts from previous unsuccessful check run
+	mkdir tmp
+	bsdtar xf ../dist/pytest_isort-$version-py3-none-any.whl -C tmp
+	PYTHONPATH=tmp pytest
+	rm -rf tmp
+}
 
 post_install() {
 	vlicense LICENSE.rst

  reply	other threads:[~2023-01-29 11:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-29 11:19 [PR PATCH] " paper42
2023-01-29 11:25 ` paper42 [this message]
2023-01-29 11:28 ` [PR PATCH] [Updated] " paper42
2023-01-29 14:26 ` icp1994
2023-01-30  7:08 ` icp1994
2023-01-30  8:47 ` paper42
2023-02-01 14:54 ` icp1994
2023-02-16 21:44 ` [PR PATCH] [Merged]: " paper42

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=20230129112552.H9MOcBjifJam2iV0dqoJPD0z7lFSFA-p6kmh9WDNoJE@z \
    --to=paper42@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).