Github messages for voidlinux
 help / color / mirror / Atom feed
From: k4leg <k4leg@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] black: update to 21.8b0.
Date: Sun, 05 Sep 2021 00:09:00 +0200	[thread overview]
Message-ID: <20210904220900.HkWPAFo3ZKUGpSTNaPBN8MUuRTFx-3xA9bpji3cCQLE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32834@inbox.vuxu.org>

[-- 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/"

  parent reply	other threads:[~2021-09-04 22:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-04 17:55 [PR PATCH] " 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 ` k4leg [this message]
2021-09-05 12:28 ` 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

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=20210904220900.HkWPAFo3ZKUGpSTNaPBN8MUuRTFx-3xA9bpji3cCQLE@z \
    --to=k4leg@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).