Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] black: update to 22.10.0.
Date: Sun, 09 Oct 2022 08:47:17 +0200	[thread overview]
Message-ID: <20221009064717.OfaiRkpp35emuukR-uwaiMCWCTbUOZZ4ZtQ2YIKwcFA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39831@inbox.vuxu.org>

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

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

https://github.com/icp1994/void-packages black
https://github.com/void-linux/void-packages/pull/39831

black: update to 22.10.0.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

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

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

From 5214ebdc3ade55125d1ed07cb1e9213a16211388 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 9 Oct 2022 11:44:07 +0530
Subject: [PATCH] black: update to 22.10.0.

---
 .../patches/remove_reduntant_build_dep.patch  | 25 +++++++++++++++++++
 srcpkgs/black/template                        | 20 ++++++---------
 2 files changed, 32 insertions(+), 13 deletions(-)
 create mode 100644 srcpkgs/black/patches/remove_reduntant_build_dep.patch

diff --git a/srcpkgs/black/patches/remove_reduntant_build_dep.patch b/srcpkgs/black/patches/remove_reduntant_build_dep.patch
new file mode 100644
index 000000000000..63054e2f4b3c
--- /dev/null
+++ b/srcpkgs/black/patches/remove_reduntant_build_dep.patch
@@ -0,0 +1,25 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -26,7 +26,7 @@ preview = true
+ # NOTE: You don't need this in your own Black configuration.
+ 
+ [build-system]
+-requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
++requires = ["hatchling>=1.8.0", "hatch-vcs"]
+ build-backend = "hatchling.build"
+ 
+ [project]
+@@ -92,13 +92,6 @@ blackd = "blackd:patched_main [d]"
+ Changelog = "https://github.com/psf/black/blob/main/CHANGES.md"
+ Homepage = "https://github.com/psf/black"
+ 
+-[tool.hatch.metadata.hooks.fancy-pypi-readme]
+-content-type = "text/markdown"
+-fragments = [
+-  { path = "README.md" },
+-  { path = "CHANGES.md" },
+-]
+-
+ [tool.hatch.version]
+ source = "vcs"
+
diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 6acc211b8d4a..1ace4ae8a5ce 100644
--- a/srcpkgs/black/template
+++ b/srcpkgs/black/template
@@ -1,9 +1,9 @@
 # Template file for 'black'
 pkgname=black
-version=22.8.0
+version=22.10.0
 revision=1
-build_style=python3-module
-hostmakedepends="python3-wheel python3-setuptools_scm"
+build_style=python3-pep517
+hostmakedepends="hatchling hatch-vcs"
 depends="python3-click python3-platformdirs python3-tomli python3-pathspec python3-mypy_extensions"
 checkdepends="${depends} python3-pytest-xdist python3-aiohttp python3-colorama python3-uvloop
  python3-ipython python3-tokenize-rt"
@@ -13,17 +13,11 @@ license="MIT"
 homepage="https://github.com/psf/black"
 changelog="https://raw.githubusercontent.com/psf/black/main/CHANGES.md"
 distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
-checksum=792f7eb540ba9a17e8656538701d3eb1afcb134e3b45b71f20b25c77a8db7e6e
+checksum=f513588da599943e0cde4e32cc9879e825d58720d6557062d1098c5ad80080e1
+make_check_pre="env PYTHONPATH=src"
 
-do_check() {
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional jupyter -m jupyter
-
-	pyver=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
-	mv ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython ${XBPS_MASTERDIR}/tmp/IPython.bak
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest --run-optional no_jupyter
-	mv ${XBPS_MASTERDIR}/tmp/IPython.bak ${XBPS_MASTERDIR}/usr/lib/python${pyver}/site-packages/IPython
-
-	PYTHONPATH="$(cd build/lib* && pwd)" python3 -m black --check src tests setup.py
+post_check() {
+	PYTHONPATH=src python3 -m black --check src tests
 }
 
 post_install() {

  parent reply	other threads:[~2022-10-09  6:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09  6:25 [PR PATCH] " icp1994
2022-10-09  6:28 ` [PR PATCH] [Updated] " icp1994
2022-10-09  6:47 ` icp1994 [this message]
2022-10-09 16:14 ` [PR PATCH] [Merged]: " classabbyamp

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=20221009064717.OfaiRkpp35emuukR-uwaiMCWCTbUOZZ4ZtQ2YIKwcFA@z \
    --to=icp1994@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).