Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] black: update to 21.8b0.
@ 2021-09-04 17:55 k4leg
  2021-09-04 18:10 ` [PR PATCH] [Updated] " k4leg
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 17:55 UTC (permalink / raw)
  To: ml

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

There is a new pull request by k4leg against master on the void-packages repository

https://github.com/k4leg/void-packages black-update
https://github.com/void-linux/void-packages/pull/32834

[WIP] black: update to 21.8b0.
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new packages and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/32834.patch is attached

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

From ff7ce298c367b492c38e55e166a3df0f66104340 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 14:06:32 +0300
Subject: [PATCH 1/5] New package: python3-platformdirs-2.3.0

---
 srcpkgs/python3-platformdirs/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-platformdirs/template

diff --git a/srcpkgs/python3-platformdirs/template b/srcpkgs/python3-platformdirs/template
new file mode 100644
index 000000000000..55d70ec61ad2
--- /dev/null
+++ b/srcpkgs/python3-platformdirs/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-platformdirs'
+pkgname=python3-platformdirs
+version=2.3.0
+revision=1
+wrksrc="platformdirs-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+checkdepends="python3-appdirs python3-pytest python3-pytest-mock"
+short_desc="Library to determine platform-specific system directories"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/platformdirs"
+distfiles="${PYPI_SITE}/p/platformdirs/platformdirs-${version}.tar.gz"
+checksum=15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 047d982a993f3cec6b74d6880de610f53385399a Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 17:46:16 +0300
Subject: [PATCH 2/5] New package: python3-parameterized-0.8.1

---
 srcpkgs/python3-parameterized/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-parameterized/template

diff --git a/srcpkgs/python3-parameterized/template b/srcpkgs/python3-parameterized/template
new file mode 100644
index 000000000000..4e72707f25f8
--- /dev/null
+++ b/srcpkgs/python3-parameterized/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-parameterized'
+pkgname=python3-parameterized
+version=0.8.1
+revision=1
+wrksrc="parameterized-${version}"
+build_style=python3-module
+make_check_target=nosetests
+hostmakedepends="python3-setuptools"
+checkdepends="python3-mock python3-nose"
+short_desc="Parameterized testing with any Python test framework"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="custom:BSD-2-Clause-FreeBSD"
+homepage="https://pypi.org/project/parameterized"
+distfiles="${PYPI_SITE}/p/parameterized/parameterized-${version}.tar.gz"
+checksum=41bbff37d6186430f77f900d777e5bb6a24928a1c46fb1de692f8b52b8833b5c
+
+post_install() {
+	rm "${DESTDIR}/${py3_sitelib}/parameterized/test.py"
+	vlicense LICENSE.txt
+}

From 18a112c6b57cb4a1f47725c2c6b07f438748895c Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 18:01:47 +0300
Subject: [PATCH 3/5] python3-pathspec: update to 0.9.0.

---
 srcpkgs/python3-pathspec/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-pathspec/template b/srcpkgs/python3-pathspec/template
index 48181640d87a..0b0cdb8f5399 100644
--- a/srcpkgs/python3-pathspec/template
+++ b/srcpkgs/python3-pathspec/template
@@ -1,18 +1,17 @@
 # Template file for 'python3-pathspec'
 pkgname=python3-pathspec
-version=0.8.0
+version=0.9.0
 revision=1
 wrksrc="pathspec-${version}"
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3"
 short_desc="Python3 utility library for pattern matching of file paths"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MPL-2.0"
-homepage="https://github.com/cpburnz/python-path-specification"
+homepage="https://pypi.org/project/pathspec"
 distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
-checksum=da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061
+checksum=e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1
 
-do_check() {
-	python3 setup.py test
+post_install() {
+	rm -r "${DESTDIR}/${py3_sitelib}/pathspec/tests"
 }

From 39b58143e7d3c37a94f335727810ebee863ba550 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:22:00 +0300
Subject: [PATCH 4/5] New package: python3-tokenize-rt-4.1.0

---
 srcpkgs/python3-tokenize-rt/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-tokenize-rt/template

diff --git a/srcpkgs/python3-tokenize-rt/template b/srcpkgs/python3-tokenize-rt/template
new file mode 100644
index 000000000000..e0996c48dc9e
--- /dev/null
+++ b/srcpkgs/python3-tokenize-rt/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-tokenize-rt'
+pkgname=python3-tokenize-rt
+version=4.1.0
+revision=1
+wrksrc="tokenize-rt-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+checkdepends="python3-pytest"
+short_desc="Wrapper around the stdlib \`tokenize\` which roundtrips"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/tokenize-rt"
+# Don't use PyPI because tests are missing.
+distfiles="https://github.com/asottile/tokenize-rt/archive/v${version}.tar.gz"
+checksum=7043d391eae7e6ab3e2e69ab2995b4d9873f56805a55d2ba2db128f468efbace
+
+post_install() {
+	vlicense LICENSE
+}

From d916048663a7b8f5a653eeefcf4cd47132e09e97 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:59:07 +0300
Subject: [PATCH 5/5] black: update to 21.8b0.

---
 srcpkgs/black/template | 31 +++++++++++++++++++++++++------
 srcpkgs/black/update   |  1 -
 2 files changed, 25 insertions(+), 7 deletions(-)
 delete mode 100644 srcpkgs/black/update

diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 8964c50c4fd4..65d94a40defc 100644
--- a/srcpkgs/black/template
+++ b/srcpkgs/black/template
@@ -1,19 +1,38 @@
 # Template file for 'black'
 pkgname=black
-version=20.8b1
+version=21.8b0
 revision=1
 build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
-depends="python3-appdirs python3-click python3-mypy_extensions
- python3-pathspec python3-toml python3-regex python3-typed-ast
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3-click python3-platformdirs python3-tomli
+ python3-mypy_extensions python3-pathspec python3-regex
  python3-typing_extensions"
+checkdepends="python3-typed-ast python3-aiohttp python3-aiohttp-cors
+ python3-pytest python3-parameterized python3-ipython python3-tokenize-rt
+ $depends"
 short_desc="Uncompromising Python code formatter"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
-homepage="https://github.com/psf/black"
+homepage="https://pypi.org/project/black"
+changelog="https://github.com/psf/black/blob/main/CHANGES.md"
 distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
-checksum=1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea
+checksum=570608d28aa3af1792b98c4a337dbac6367877b47b12b88ab42095cfc1a627c2
+
+pre_build() {
+	# <https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/black/black-21.8_beta0.ebuild#n45>.
+	sed -i '/setuptools_scm/s:~=:>=:' setup.cfg
+}
+
+pre_check() {
+	python3 setup.py install --root=tmp $make_install_args
+	export PATH="${PATH}:${PWD}/tmp/usr/bin"
+	echo "${PWD}/tmp/${py3_sitelib}" > "/${py3_sitelib}/tmp.pth"
+}
 
 post_install() {
 	vlicense LICENSE
 }
+
+do_clean() {
+	rm "/${py3_sitelib}/tmp.pth"
+}
diff --git a/srcpkgs/black/update b/srcpkgs/black/update
deleted file mode 100644
index 441abc591447..000000000000
--- a/srcpkgs/black/update
+++ /dev/null
@@ -1 +0,0 @@
-site="https://pypi.org/simple/black/"

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

* Re: [PR PATCH] [Updated] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
@ 2021-09-04 18:10 ` k4leg
  2021-09-04 19:57 ` [PR REVIEW] " paper42
                   ` (24 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 18:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/k4leg/void-packages black-update
https://github.com/void-linux/void-packages/pull/32834

[WIP] black: update to 21.8b0.
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new packages and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/32834.patch is attached

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

From ff7ce298c367b492c38e55e166a3df0f66104340 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 14:06:32 +0300
Subject: [PATCH 1/5] New package: python3-platformdirs-2.3.0

---
 srcpkgs/python3-platformdirs/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-platformdirs/template

diff --git a/srcpkgs/python3-platformdirs/template b/srcpkgs/python3-platformdirs/template
new file mode 100644
index 000000000000..55d70ec61ad2
--- /dev/null
+++ b/srcpkgs/python3-platformdirs/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-platformdirs'
+pkgname=python3-platformdirs
+version=2.3.0
+revision=1
+wrksrc="platformdirs-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+checkdepends="python3-appdirs python3-pytest python3-pytest-mock"
+short_desc="Library to determine platform-specific system directories"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/platformdirs"
+distfiles="${PYPI_SITE}/p/platformdirs/platformdirs-${version}.tar.gz"
+checksum=15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 047d982a993f3cec6b74d6880de610f53385399a Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 17:46:16 +0300
Subject: [PATCH 2/5] New package: python3-parameterized-0.8.1

---
 srcpkgs/python3-parameterized/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-parameterized/template

diff --git a/srcpkgs/python3-parameterized/template b/srcpkgs/python3-parameterized/template
new file mode 100644
index 000000000000..4e72707f25f8
--- /dev/null
+++ b/srcpkgs/python3-parameterized/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-parameterized'
+pkgname=python3-parameterized
+version=0.8.1
+revision=1
+wrksrc="parameterized-${version}"
+build_style=python3-module
+make_check_target=nosetests
+hostmakedepends="python3-setuptools"
+checkdepends="python3-mock python3-nose"
+short_desc="Parameterized testing with any Python test framework"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="custom:BSD-2-Clause-FreeBSD"
+homepage="https://pypi.org/project/parameterized"
+distfiles="${PYPI_SITE}/p/parameterized/parameterized-${version}.tar.gz"
+checksum=41bbff37d6186430f77f900d777e5bb6a24928a1c46fb1de692f8b52b8833b5c
+
+post_install() {
+	rm "${DESTDIR}/${py3_sitelib}/parameterized/test.py"
+	vlicense LICENSE.txt
+}

From 18a112c6b57cb4a1f47725c2c6b07f438748895c Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 18:01:47 +0300
Subject: [PATCH 3/5] python3-pathspec: update to 0.9.0.

---
 srcpkgs/python3-pathspec/template | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python3-pathspec/template b/srcpkgs/python3-pathspec/template
index 48181640d87a..0b0cdb8f5399 100644
--- a/srcpkgs/python3-pathspec/template
+++ b/srcpkgs/python3-pathspec/template
@@ -1,18 +1,17 @@
 # Template file for 'python3-pathspec'
 pkgname=python3-pathspec
-version=0.8.0
+version=0.9.0
 revision=1
 wrksrc="pathspec-${version}"
 build_style=python3-module
 hostmakedepends="python3-setuptools"
-depends="python3"
 short_desc="Python3 utility library for pattern matching of file paths"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MPL-2.0"
-homepage="https://github.com/cpburnz/python-path-specification"
+homepage="https://pypi.org/project/pathspec"
 distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
-checksum=da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061
+checksum=e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1
 
-do_check() {
-	python3 setup.py test
+post_install() {
+	rm -r "${DESTDIR}/${py3_sitelib}/pathspec/tests"
 }

From 39b58143e7d3c37a94f335727810ebee863ba550 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:22:00 +0300
Subject: [PATCH 4/5] New package: python3-tokenize-rt-4.1.0

---
 srcpkgs/python3-tokenize-rt/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-tokenize-rt/template

diff --git a/srcpkgs/python3-tokenize-rt/template b/srcpkgs/python3-tokenize-rt/template
new file mode 100644
index 000000000000..e0996c48dc9e
--- /dev/null
+++ b/srcpkgs/python3-tokenize-rt/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-tokenize-rt'
+pkgname=python3-tokenize-rt
+version=4.1.0
+revision=1
+wrksrc="tokenize-rt-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+checkdepends="python3-pytest"
+short_desc="Wrapper around the stdlib \`tokenize\` which roundtrips"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/tokenize-rt"
+# Don't use PyPI because tests are missing.
+distfiles="https://github.com/asottile/tokenize-rt/archive/v${version}.tar.gz"
+checksum=7043d391eae7e6ab3e2e69ab2995b4d9873f56805a55d2ba2db128f468efbace
+
+post_install() {
+	vlicense LICENSE
+}

From b8a7992f6ced2ad04f65340697c6eb23102d78cd Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:59:07 +0300
Subject: [PATCH 5/5] black: update to 21.8b0.

---
 srcpkgs/black/template | 31 +++++++++++++++++++++++++------
 srcpkgs/black/update   |  1 -
 2 files changed, 25 insertions(+), 7 deletions(-)
 delete mode 100644 srcpkgs/black/update

diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 8964c50c4fd4..d296f3680c73 100644
--- a/srcpkgs/black/template
+++ b/srcpkgs/black/template
@@ -1,19 +1,38 @@
 # Template file for 'black'
 pkgname=black
-version=20.8b1
+version=21.8b0
 revision=1
 build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
-depends="python3-appdirs python3-click python3-mypy_extensions
- python3-pathspec python3-toml python3-regex python3-typed-ast
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3-click python3-platformdirs python3-tomli
+ python3-mypy_extensions python3-pathspec python3-regex
  python3-typing_extensions"
+checkdepends="python3-typed-ast python3-aiohttp python3-aiohttp-cors
+ python3-pytest python3-parameterized python3-ipython python3-tokenize-rt
+ $depends"
 short_desc="Uncompromising Python code formatter"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
-homepage="https://github.com/psf/black"
+homepage="https://pypi.org/project/black"
+changelog="https://github.com/psf/black/blob/main/CHANGES.md"
 distfiles="${PYPI_SITE}/b/black/black-${version}.tar.gz"
-checksum=1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea
+checksum=570608d28aa3af1792b98c4a337dbac6367877b47b12b88ab42095cfc1a627c2
+
+pre_build() {
+	# <https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/black/black-21.8_beta0.ebuild#n45>.
+	sed -i '/setuptools_scm/s:~=:>=:' setup.cfg
+}
+
+pre_check() {
+	python3 setup.py install --root=tmp $make_install_args
+	export PATH="${PATH}:${PWD}/tmp/usr/bin"
+	echo "${PWD}/tmp/${py3_sitelib}" > "/${py3_sitelib}/tmp.pth"
+}
 
 post_install() {
 	vlicense LICENSE
 }
+
+do_clean() {
+	rm "/${py3_sitelib}/tmp.pth" 2> /dev/null || true
+}
diff --git a/srcpkgs/black/update b/srcpkgs/black/update
deleted file mode 100644
index 441abc591447..000000000000
--- a/srcpkgs/black/update
+++ /dev/null
@@ -1 +0,0 @@
-site="https://pypi.org/simple/black/"

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
  2021-09-04 18:10 ` [PR PATCH] [Updated] " k4leg
@ 2021-09-04 19:57 ` paper42
  2021-09-04 19:57 ` paper42
                   ` (23 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702320830

Comment:
I don't like this, isn't there a simple way to run only tests that don't need black installed or to replace calling black with python3 -m black?

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (2 preceding siblings ...)
  2021-09-04 19:57 ` paper42
@ 2021-09-04 19:57 ` paper42
  2021-09-04 19:57 ` paper42
                   ` (21 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702319649

Comment:
The pypi page links github as the homepage and in the past I saw some projects not publishing newer versions on pypi, so I would not change the homepage.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
  2021-09-04 18:10 ` [PR PATCH] [Updated] " k4leg
  2021-09-04 19:57 ` [PR REVIEW] " paper42
@ 2021-09-04 19:57 ` paper42
  2021-09-04 19:57 ` paper42
                   ` (22 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702319121

Comment:
This could be post_check

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (3 preceding siblings ...)
  2021-09-04 19:57 ` paper42
@ 2021-09-04 19:57 ` paper42
  2021-09-04 19:57 ` paper42
                   ` (20 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702322206

Comment:
Can you use vsed here? vsed is sed that prints a warning when it doesn't change anything.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (5 preceding siblings ...)
  2021-09-04 19:57 ` paper42
@ 2021-09-04 19:57 ` paper42
  2021-09-04 20:06 ` k4leg
                   ` (18 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702321702

Comment:
Why? It should still depend on python3, right? 

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (4 preceding siblings ...)
  2021-09-04 19:57 ` paper42
@ 2021-09-04 19:57 ` paper42
  2021-09-04 19:57 ` paper42
                   ` (19 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 19:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702319424

Comment:
we prefer raw changelogs

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (6 preceding siblings ...)
  2021-09-04 19:57 ` paper42
@ 2021-09-04 20:06 ` k4leg
  2021-09-04 20:09 ` Chocimier
                   ` (17 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 20:06 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702323227

Comment:
> https://github.com/void-linux/void-packages/pull/32746#issuecomment-908549747
> * no need do depend on interpreter when depending on module

Because of this. Or am I misunderstanding?

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (7 preceding siblings ...)
  2021-09-04 20:06 ` k4leg
@ 2021-09-04 20:09 ` Chocimier
  2021-09-04 20:12 ` Chocimier
                   ` (16 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Chocimier @ 2021-09-04 20:09 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702323508

Comment:
"when depending on module" is key part. If you leave depends empty, no other module will pull in interpreter.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (8 preceding siblings ...)
  2021-09-04 20:09 ` Chocimier
@ 2021-09-04 20:12 ` Chocimier
  2021-09-04 20:15 ` k4leg
                   ` (15 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Chocimier @ 2021-09-04 20:12 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702323750

Comment:
I meant, *different* domains increase chance of finding upstream if it moves. Removing everything but pypi doesn't help there.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (9 preceding siblings ...)
  2021-09-04 20:12 ` Chocimier
@ 2021-09-04 20:15 ` k4leg
  2021-09-04 20:22 ` k4leg
                   ` (14 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 20:15 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702324071

Comment:
> "when depending on module" is key part. If you leave depends empty, no other module will pull in interpreter.

I understood. I thought the word "module" refers to `build_style=python3-module` ;)
Thanks.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (10 preceding siblings ...)
  2021-09-04 20:15 ` k4leg
@ 2021-09-04 20:22 ` k4leg
  2021-09-04 21:46 ` k4leg
                   ` (13 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 20:22 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702324718

Comment:
Thanks!

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (11 preceding siblings ...)
  2021-09-04 20:22 ` k4leg
@ 2021-09-04 21:46 ` k4leg
  2021-09-04 21:48 ` k4leg
                   ` (12 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 21:46 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702332037

Comment:
This will require modifying the `black_primer` module (see [this](https://github.com/psf/black/blob/a8b4665e7d6eb945c47820adb1a3f8b006adce0c/src/black_primer/cli.py#L60)) and some other modules, so it will be easier to disable some tests.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (12 preceding siblings ...)
  2021-09-04 21:46 ` k4leg
@ 2021-09-04 21:48 ` k4leg
  2021-09-04 21:54 ` paper42
                   ` (11 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 21:48 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702332037

Comment:
This will require modifying the `black_primer.cli` module (see [this](https://github.com/psf/black/blob/a8b4665e7d6eb945c47820adb1a3f8b006adce0c/src/black_primer/cli.py#L60)) and some other modules, so it will be easier to disable some tests.

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (13 preceding siblings ...)
  2021-09-04 21:48 ` k4leg
@ 2021-09-04 21:54 ` paper42
  2021-09-04 22:09 ` [PR PATCH] [Updated] " k4leg
                   ` (10 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-04 21:54 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702332687

Comment:
ok, let's disable some tests then, but if you have time, it would be nice to upstream a proper fix.

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

* Re: [PR PATCH] [Updated] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (14 preceding siblings ...)
  2021-09-04 21:54 ` paper42
@ 2021-09-04 22:09 ` k4leg
  2021-09-05 12:28 ` [PR REVIEW] " paper42
                   ` (9 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-04 22:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/k4leg/void-packages black-update
https://github.com/void-linux/void-packages/pull/32834

[WIP] black: update to 21.8b0.
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new packages and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/32834.patch is attached

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

From 80d887fb29490d3d64fdab57ae66f02269b0ebdf Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 14:06:32 +0300
Subject: [PATCH 1/5] New package: python3-platformdirs-2.3.0

---
 srcpkgs/python3-platformdirs/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-platformdirs/template

diff --git a/srcpkgs/python3-platformdirs/template b/srcpkgs/python3-platformdirs/template
new file mode 100644
index 000000000000..701b82287ebb
--- /dev/null
+++ b/srcpkgs/python3-platformdirs/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-platformdirs'
+pkgname=python3-platformdirs
+version=2.3.0
+revision=1
+wrksrc="platformdirs-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3"
+checkdepends="python3-appdirs python3-pytest python3-pytest-mock"
+short_desc="Library to determine platform-specific system directories"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://github.com/platformdirs/platformdirs"
+distfiles="${PYPI_SITE}/p/platformdirs/platformdirs-${version}.tar.gz"
+checksum=15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 14a756def8661e05ee89e93f5f5b35033852f5b3 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 17:46:16 +0300
Subject: [PATCH 2/5] New package: python3-parameterized-0.8.1

---
 srcpkgs/python3-parameterized/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/python3-parameterized/template

diff --git a/srcpkgs/python3-parameterized/template b/srcpkgs/python3-parameterized/template
new file mode 100644
index 000000000000..ba90919f085d
--- /dev/null
+++ b/srcpkgs/python3-parameterized/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-parameterized'
+pkgname=python3-parameterized
+version=0.8.1
+revision=1
+wrksrc="parameterized-${version}"
+build_style=python3-module
+make_check_target=nosetests
+hostmakedepends="python3-setuptools"
+depends="python3"
+checkdepends="python3-mock python3-nose"
+short_desc="Parameterized testing with any Python test framework"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="custom:BSD-2-Clause-FreeBSD"
+homepage="https://github.com/wolever/parameterized"
+distfiles="${PYPI_SITE}/p/parameterized/parameterized-${version}.tar.gz"
+checksum=41bbff37d6186430f77f900d777e5bb6a24928a1c46fb1de692f8b52b8833b5c
+
+post_install() {
+	rm "${DESTDIR}/${py3_sitelib}/parameterized/test.py"
+	vlicense LICENSE.txt
+}

From f3ca10ba8f713f0877aaa27e27f1e323bf6b284e Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 18:01:47 +0300
Subject: [PATCH 3/5] python3-pathspec: update to 0.9.0.

---
 srcpkgs/python3-pathspec/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pathspec/template b/srcpkgs/python3-pathspec/template
index 48181640d87a..611d15a8a6df 100644
--- a/srcpkgs/python3-pathspec/template
+++ b/srcpkgs/python3-pathspec/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-pathspec'
 pkgname=python3-pathspec
-version=0.8.0
+version=0.9.0
 revision=1
 wrksrc="pathspec-${version}"
 build_style=python3-module
@@ -11,8 +11,8 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="MPL-2.0"
 homepage="https://github.com/cpburnz/python-path-specification"
 distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
-checksum=da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061
+checksum=e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1
 
-do_check() {
-	python3 setup.py test
+post_install() {
+	rm -r "${DESTDIR}/${py3_sitelib}/pathspec/tests"
 }

From e286e1798c13a32240cd2404fbebae35a63fa471 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:22:00 +0300
Subject: [PATCH 4/5] New package: python3-tokenize-rt-4.1.0

---
 srcpkgs/python3-tokenize-rt/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-tokenize-rt/template

diff --git a/srcpkgs/python3-tokenize-rt/template b/srcpkgs/python3-tokenize-rt/template
new file mode 100644
index 000000000000..65e6dcac58cb
--- /dev/null
+++ b/srcpkgs/python3-tokenize-rt/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-tokenize-rt'
+pkgname=python3-tokenize-rt
+version=4.1.0
+revision=1
+wrksrc="tokenize-rt-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+checkdepends="python3-pytest"
+short_desc="Wrapper around the stdlib \`tokenize\` which roundtrips"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/tokenize-rt"
+# Don't use PyPI because tests are missing.
+distfiles="https://github.com/asottile/tokenize-rt/archive/v${version}.tar.gz"
+checksum=7043d391eae7e6ab3e2e69ab2995b4d9873f56805a55d2ba2db128f468efbace
+
+post_install() {
+	vlicense LICENSE
+}

From 318f4f678f2ca05e1d6a21f181ee730786ef87cf Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:59:07 +0300
Subject: [PATCH 5/5] black: update to 21.8b0.

---
 srcpkgs/black/template | 21 ++++++++++++++++-----
 srcpkgs/black/update   |  1 -
 2 files changed, 16 insertions(+), 6 deletions(-)
 delete mode 100644 srcpkgs/black/update

diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 8964c50c4fd4..a007104631da 100644
--- a/srcpkgs/black/template
+++ b/srcpkgs/black/template
@@ -1,18 +1,29 @@
 # Template file for 'black'
 pkgname=black
-version=20.8b1
+version=21.8b0
 revision=1
 build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
-depends="python3-appdirs python3-click python3-mypy_extensions
- python3-pathspec python3-toml python3-regex python3-typed-ast
+# Disable tests that require `black` in the search path for commands.
+make_check_args="-k not((test_gen_check_output)or(test_process_queue)or(test_async_main))"
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3-click python3-platformdirs python3-tomli
+ python3-mypy_extensions python3-pathspec python3-regex
  python3-typing_extensions"
+checkdepends="python3-typed-ast python3-aiohttp python3-aiohttp-cors
+ python3-pytest python3-parameterized python3-ipython python3-tokenize-rt
+ $depends"
 short_desc="Uncompromising Python code formatter"
 maintainer="Orphaned <orphan@voidlinux.org>"
 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=1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea
+checksum=570608d28aa3af1792b98c4a337dbac6367877b47b12b88ab42095cfc1a627c2
+
+pre_build() {
+	# <https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/black/black-21.8_beta0.ebuild#n45>.
+	vsed -i '/setuptools_scm/s:~=:>=:' setup.cfg
+}
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/black/update b/srcpkgs/black/update
deleted file mode 100644
index 441abc591447..000000000000
--- a/srcpkgs/black/update
+++ /dev/null
@@ -1 +0,0 @@
-site="https://pypi.org/simple/black/"

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (15 preceding siblings ...)
  2021-09-04 22:09 ` [PR PATCH] [Updated] " k4leg
@ 2021-09-05 12:28 ` paper42
  2021-09-05 12:37 ` paper42
                   ` (8 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 12:28 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702417540

Comment:
`--deselect=`

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (16 preceding siblings ...)
  2021-09-05 12:28 ` [PR REVIEW] " paper42
@ 2021-09-05 12:37 ` paper42
  2021-09-05 12:37 ` paper42
                   ` (7 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 12:37 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702418827

Comment:
BSD-2-Clause-Views?

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (17 preceding siblings ...)
  2021-09-05 12:37 ` paper42
@ 2021-09-05 12:37 ` paper42
  2021-09-05 13:09 ` k4leg
                   ` (6 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 12:37 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702418827

Comment:
Isn't this similar to BSD-2-Clause-Views?

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

* Re: [PR REVIEW] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (18 preceding siblings ...)
  2021-09-05 12:37 ` paper42
@ 2021-09-05 13:09 ` k4leg
  2021-09-05 13:10 ` [PR PATCH] [Updated] " k4leg
                   ` (5 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-05 13:09 UTC (permalink / raw)
  To: ml

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

New review comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#discussion_r702423045

Comment:
Yes, thanks!

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

* Re: [PR PATCH] [Updated] [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (19 preceding siblings ...)
  2021-09-05 13:09 ` k4leg
@ 2021-09-05 13:10 ` k4leg
  2021-09-05 13:29 ` paper42
                   ` (4 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-05 13:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/k4leg/void-packages black-update
https://github.com/void-linux/void-packages/pull/32834

[WIP] black: update to 21.8b0.
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new packages and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/32834.patch is attached

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

From 464059728c56ea0fc45bf8ca0377ac41383c8175 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 14:06:32 +0300
Subject: [PATCH 1/5] New package: python3-platformdirs-2.3.0

---
 srcpkgs/python3-platformdirs/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-platformdirs/template

diff --git a/srcpkgs/python3-platformdirs/template b/srcpkgs/python3-platformdirs/template
new file mode 100644
index 000000000000..b93a313c468a
--- /dev/null
+++ b/srcpkgs/python3-platformdirs/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-platformdirs'
+pkgname=python3-platformdirs
+version=2.3.0
+revision=1
+wrksrc="platformdirs-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3"
+checkdepends="python3-appdirs python3-pytest python3-pytest-mock"
+short_desc="Library to determine platform-specific system directories"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://github.com/platformdirs/platformdirs"
+changelog="https://raw.githubusercontent.com/platformdirs/platformdirs/main/CHANGES.rst"
+distfiles="${PYPI_SITE}/p/platformdirs/platformdirs-${version}.tar.gz"
+checksum=15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 57170311912f32cba399de883376cc914031f577 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 17:46:16 +0300
Subject: [PATCH 2/5] New package: python3-parameterized-0.8.1

---
 srcpkgs/python3-parameterized/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/python3-parameterized/template

diff --git a/srcpkgs/python3-parameterized/template b/srcpkgs/python3-parameterized/template
new file mode 100644
index 000000000000..28d978fa18d2
--- /dev/null
+++ b/srcpkgs/python3-parameterized/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-parameterized'
+pkgname=python3-parameterized
+version=0.8.1
+revision=1
+wrksrc="parameterized-${version}"
+build_style=python3-module
+make_check_target=nosetests
+hostmakedepends="python3-setuptools"
+depends="python3"
+checkdepends="python3-mock python3-nose"
+short_desc="Parameterized testing with any Python test framework"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="BSD-2-Clause-Views"
+homepage="https://github.com/wolever/parameterized"
+changelog="https://raw.githubusercontent.com/wolever/parameterized/master/CHANGELOG.txt"
+distfiles="${PYPI_SITE}/p/parameterized/parameterized-${version}.tar.gz"
+checksum=41bbff37d6186430f77f900d777e5bb6a24928a1c46fb1de692f8b52b8833b5c
+
+post_install() {
+	rm "${DESTDIR}/${py3_sitelib}/parameterized/test.py"
+	vlicense LICENSE.txt
+}

From 6d70c8a8e241db5516432e8c43821785ecd4467a Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 18:01:47 +0300
Subject: [PATCH 3/5] python3-pathspec: update to 0.9.0.

---
 srcpkgs/python3-pathspec/template | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-pathspec/template b/srcpkgs/python3-pathspec/template
index 48181640d87a..31dbee00b297 100644
--- a/srcpkgs/python3-pathspec/template
+++ b/srcpkgs/python3-pathspec/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-pathspec'
 pkgname=python3-pathspec
-version=0.8.0
+version=0.9.0
 revision=1
 wrksrc="pathspec-${version}"
 build_style=python3-module
@@ -10,9 +10,10 @@ short_desc="Python3 utility library for pattern matching of file paths"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MPL-2.0"
 homepage="https://github.com/cpburnz/python-path-specification"
+changelog="https://raw.githubusercontent.com/cpburnz/python-path-specification/master/CHANGES.rst"
 distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
-checksum=da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061
+checksum=e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1
 
-do_check() {
-	python3 setup.py test
+post_install() {
+	rm -r "${DESTDIR}/${py3_sitelib}/pathspec/tests"
 }

From c77538254cf60a28f0fbc47fb73d7856da0ac5da Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:22:00 +0300
Subject: [PATCH 4/5] New package: python3-tokenize-rt-4.1.0

---
 srcpkgs/python3-tokenize-rt/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-tokenize-rt/template

diff --git a/srcpkgs/python3-tokenize-rt/template b/srcpkgs/python3-tokenize-rt/template
new file mode 100644
index 000000000000..65e6dcac58cb
--- /dev/null
+++ b/srcpkgs/python3-tokenize-rt/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-tokenize-rt'
+pkgname=python3-tokenize-rt
+version=4.1.0
+revision=1
+wrksrc="tokenize-rt-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+checkdepends="python3-pytest"
+short_desc="Wrapper around the stdlib \`tokenize\` which roundtrips"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="MIT"
+homepage="https://pypi.org/project/tokenize-rt"
+# Don't use PyPI because tests are missing.
+distfiles="https://github.com/asottile/tokenize-rt/archive/v${version}.tar.gz"
+checksum=7043d391eae7e6ab3e2e69ab2995b4d9873f56805a55d2ba2db128f468efbace
+
+post_install() {
+	vlicense LICENSE
+}

From c0990b7a42c17586c731692f90f2cb24952d5c8a Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Sat, 4 Sep 2021 19:59:07 +0300
Subject: [PATCH 5/5] black: update to 21.8b0.

---
 srcpkgs/black/template | 23 ++++++++++++++++++-----
 srcpkgs/black/update   |  1 -
 2 files changed, 18 insertions(+), 6 deletions(-)
 delete mode 100644 srcpkgs/black/update

diff --git a/srcpkgs/black/template b/srcpkgs/black/template
index 8964c50c4fd4..8cb7401b808e 100644
--- a/srcpkgs/black/template
+++ b/srcpkgs/black/template
@@ -1,18 +1,31 @@
 # Template file for 'black'
 pkgname=black
-version=20.8b1
+version=21.8b0
 revision=1
 build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
-depends="python3-appdirs python3-click python3-mypy_extensions
- python3-pathspec python3-toml python3-regex python3-typed-ast
+# Disable tests that require `black` in the search path for commands.
+make_check_args="--deselect tests/test_primer.py::PrimerLibTests::test_gen_check_output
+ --deselect tests/test_primer.py::PrimerLibTests::test_process_queue
+ --deselect tests/test_primer.py::PrimerCLITests::test_async_main"
+hostmakedepends="python3-setuptools python3-setuptools_scm"
+depends="python3-click python3-platformdirs python3-tomli
+ python3-mypy_extensions python3-pathspec python3-regex
  python3-typing_extensions"
+checkdepends="python3-typed-ast python3-aiohttp python3-aiohttp-cors
+ python3-pytest python3-parameterized python3-ipython python3-tokenize-rt
+ $depends"
 short_desc="Uncompromising Python code formatter"
 maintainer="Orphaned <orphan@voidlinux.org>"
 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=1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea
+checksum=570608d28aa3af1792b98c4a337dbac6367877b47b12b88ab42095cfc1a627c2
+
+pre_build() {
+	# <https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/black/black-21.8_beta0.ebuild#n45>.
+	vsed -i '/setuptools_scm/s:~=:>=:' setup.cfg
+}
 
 post_install() {
 	vlicense LICENSE
diff --git a/srcpkgs/black/update b/srcpkgs/black/update
deleted file mode 100644
index 441abc591447..000000000000
--- a/srcpkgs/black/update
+++ /dev/null
@@ -1 +0,0 @@
-site="https://pypi.org/simple/black/"

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

* Re: [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (20 preceding siblings ...)
  2021-09-05 13:10 ` [PR PATCH] [Updated] " k4leg
@ 2021-09-05 13:29 ` paper42
  2021-09-05 13:44 ` k4leg
                   ` (3 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 13:29 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#issuecomment-913155209

Comment:
Do you think this PR is ready or is there a reason it's still marked as a draft?

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

* Re: [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (21 preceding siblings ...)
  2021-09-05 13:29 ` paper42
@ 2021-09-05 13:44 ` k4leg
  2021-09-05 13:56 ` paper42
                   ` (2 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: k4leg @ 2021-09-05 13:44 UTC (permalink / raw)
  To: ml

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

New comment by k4leg on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#issuecomment-913157449

Comment:
> Do you think this PR is ready or is there a reason it's still marked as a draft?

There is one point left: black requires `python3-pathspec>=0.9.0` (otherwise `ImportError: cannot import name 'GitWildMatchPatternError' from 'pathspec.patterns.gitwildmatch'`) but it will not update with a partial update, should I add that?

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

* Re: [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (22 preceding siblings ...)
  2021-09-05 13:44 ` k4leg
@ 2021-09-05 13:56 ` paper42
  2021-09-05 13:57 ` paper42
  2021-09-05 19:14 ` [PR PATCH] [Merged]: " paper42
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 13:56 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#issuecomment-913159474

Comment:
> > Do you think this PR is ready or is there a reason it's still marked as a draft?
> 
> There is one point left: black requires `python3-pathspec>=0.9.0` (otherwise `ImportError: cannot import name 'GitWildMatchPatternError' from 'pathspec.patterns.gitwildmatch'`) but it will not update with a partial update, should I add that?

We can assume people will be smart enough to update their whole system if black breaks with a partial update.

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

* Re: [WIP] black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (23 preceding siblings ...)
  2021-09-05 13:56 ` paper42
@ 2021-09-05 13:57 ` paper42
  2021-09-05 19:14 ` [PR PATCH] [Merged]: " paper42
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 13:57 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/32834#issuecomment-913159474

Comment:
> > Do you think this PR is ready or is there a reason it's still marked as a draft?
> 
> There is one point left: black requires `python3-pathspec>=0.9.0` (otherwise `ImportError: cannot import name 'GitWildMatchPatternError' from 'pathspec.patterns.gitwildmatch'`) but it will not update with a partial update, should I add that?

We can assume people will be smart enough to update their whole system if black breaks with a partial update. Otherwise we could specify version constraints everywhere.

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

* Re: [PR PATCH] [Merged]: black: update to 21.8b0.
  2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
                   ` (24 preceding siblings ...)
  2021-09-05 13:57 ` paper42
@ 2021-09-05 19:14 ` paper42
  25 siblings, 0 replies; 27+ messages in thread
From: paper42 @ 2021-09-05 19:14 UTC (permalink / raw)
  To: ml

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

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

black: update to 21.8b0.
https://github.com/void-linux/void-packages/pull/32834

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new packages and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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
-->


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

end of thread, other threads:[~2021-09-05 19:14 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 17:55 [PR PATCH] [WIP] black: update to 21.8b0 k4leg
2021-09-04 18:10 ` [PR PATCH] [Updated] " k4leg
2021-09-04 19:57 ` [PR REVIEW] " paper42
2021-09-04 19:57 ` paper42
2021-09-04 19:57 ` paper42
2021-09-04 19:57 ` paper42
2021-09-04 19:57 ` paper42
2021-09-04 19:57 ` paper42
2021-09-04 20:06 ` k4leg
2021-09-04 20:09 ` Chocimier
2021-09-04 20:12 ` Chocimier
2021-09-04 20:15 ` k4leg
2021-09-04 20:22 ` k4leg
2021-09-04 21:46 ` k4leg
2021-09-04 21:48 ` k4leg
2021-09-04 21:54 ` paper42
2021-09-04 22:09 ` [PR PATCH] [Updated] " k4leg
2021-09-05 12:28 ` [PR REVIEW] " paper42
2021-09-05 12:37 ` paper42
2021-09-05 12:37 ` paper42
2021-09-05 13:09 ` k4leg
2021-09-05 13:10 ` [PR PATCH] [Updated] " k4leg
2021-09-05 13:29 ` paper42
2021-09-05 13:44 ` k4leg
2021-09-05 13:56 ` paper42
2021-09-05 13:57 ` paper42
2021-09-05 19:14 ` [PR PATCH] [Merged]: " paper42

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