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

* Re: [PR PATCH] [Updated] black: update to 22.10.0.
  2022-10-09  6:25 [PR PATCH] black: update to 22.10.0 icp1994
@ 2022-10-09  6:28 ` icp1994
  2022-10-09  6:47 ` icp1994
  2022-10-09 16:14 ` [PR PATCH] [Merged]: " classabbyamp
  2 siblings, 0 replies; 4+ messages in thread
From: icp1994 @ 2022-10-09  6:28 UTC (permalink / raw)
  To: ml

[-- 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: 3547 bytes --]

From a24adb97665d9f8bc2a39e5669aabd253f5cbf52 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..34e95c34f793
--- /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}"
+build_style=python3-pep517
+make_check_args="--ignore tests/test_end_to_end.py
+ --deselect tests/test_cli.py::TestCLIEndToEnd::test_missing_config"
+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 cd4afbc5c43df78a203cfbba67d9d90ea6325b80 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..5f066ba480bc 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 --check src tests
 }
 
 post_install() {

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

* Re: [PR PATCH] [Updated] black: update to 22.10.0.
  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
  2 siblings, 0 replies; 4+ messages in thread
From: icp1994 @ 2022-10-09  6:47 UTC (permalink / raw)
  To: ml

[-- 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() {

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

* Re: [PR PATCH] [Merged]: black: update to 22.10.0.
  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 ` classabbyamp
  2 siblings, 0 replies; 4+ messages in thread
From: classabbyamp @ 2022-10-09 16:14 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

black: update to 22.10.0.
https://github.com/void-linux/void-packages/pull/39831

Description:
#### 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

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