From ff7ce298c367b492c38e55e166a3df0f66104340 Mon Sep 17 00:00:00 2001 From: k4leg 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 " +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 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 " +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 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 " 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 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 " +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 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 " 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() { + # . + 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/"