Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] black: update to 22.10.0.
@ 2022-10-09  6:25 icp1994
  2022-10-09  6:28 ` [PR PATCH] [Updated] " icp1994
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: icp1994 @ 2022-10-09  6:25 UTC (permalink / raw)
  To: ml

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

There is a new 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: 3539 bytes --]

From 3c5b796eefd0bdfee7ce8afe1afd4aca6d77ede9 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 9 Oct 2022 11:43:59 +0530
Subject: [PATCH 1/2] New package: hatch-fancy-pypi-readme-22.8.0

---
 srcpkgs/hatch-fancy-pypi-readme/template | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 srcpkgs/hatch-fancy-pypi-readme/template

diff --git a/srcpkgs/hatch-fancy-pypi-readme/template b/srcpkgs/hatch-fancy-pypi-readme/template
new file mode 100644
index 000000000000..400731b2cf63
--- /dev/null
+++ b/srcpkgs/hatch-fancy-pypi-readme/template
@@ -0,0 +1,23 @@
+# Template file for 'hatch-fancy-pypi-readme'
+pkgname=hatch-fancy-pypi-readme
+version=22.8.0
+revision=1
+wrksrc="hatch_fancy_pypi_readme-${version}"
+make_check_args="--ignore tests/test_end_to_end.py
+ --deselect tests/test_cli.py::TestCLIEndToEnd::test_missing_config"
+build_style=python3-pep517
+hostmakedepends="hatchling"
+depends="python3-tomli"
+checkdepends="python3-pytest python3-wheel"
+short_desc="Fancy PyPI READMEs with Hatch"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/hynek/hatch-fancy-pypi-readme"
+changelog="https://raw.githubusercontent.com/hynek/hatch-fancy-pypi-readme/main/CHANGELOG.md"
+distfiles="${PYPI_SITE}/h/hatch_fancy_pypi_readme/hatch_fancy_pypi_readme-${version}.tar.gz"
+checksum=da91282ca09601c18aded8e378daf8b578c70214866f0971156ee9bb9ce6c26a
+make_check_pre="env PYTHONPATH=src"
+
+post_install() {
+	vlicense LICENSE.txt
+}

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

---
 srcpkgs/black/template | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 6acc211b8d4a..0d68fa24f799 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 hatch-fancy-pypi-readme"
 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 src tests
 }
 
 post_install() {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-09 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-09  6:25 [PR PATCH] black: update to 22.10.0 icp1994
2022-10-09  6:28 ` [PR PATCH] [Updated] " icp1994
2022-10-09  6:47 ` icp1994
2022-10-09 16:14 ` [PR PATCH] [Merged]: " classabbyamp

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).