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

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