From d8cdf850d3b75986ab1be7de3b527ed0b0dcb5f7 Mon Sep 17 00:00:00 2001 From: travankor Date: Fri, 30 Dec 2022 18:04:38 -0700 Subject: [PATCH 1/2] dtrx: update to 8.5.0. --- srcpkgs/dtrx/template | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/srcpkgs/dtrx/template b/srcpkgs/dtrx/template index c9054b42638a..44f53a4c5153 100644 --- a/srcpkgs/dtrx/template +++ b/srcpkgs/dtrx/template @@ -1,16 +1,14 @@ # Template file for 'dtrx' pkgname=dtrx -version=8.2.2 +version=8.5.0 revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" depends="python3" +checkdepends="python3-invoke python3-yaml" short_desc="Tool that takes all the hassle out of extracting archives" maintainer="travankor " license="GPL-3.0-or-later" homepage="https://github.com/dtrx-py/dtrx/" distfiles="https://github.com/dtrx-py/dtrx/archive/${version}.tar.gz" -checksum=2d1d5bc5576d9a4793a4daceb5a0af7ec6430ed5a4e305f46c53542592d6babb -python_version=3 - -do_install() { - vbin scripts/dtrx -} +checksum=fb57a3cf334b2d03b4ab723c04f21c4a102cbbaeb179cf443eafb325e59a47e4 From 2bf692603157376cf2e5cba2cada1ecd00e6d7e9 Mon Sep 17 00:00:00 2001 From: travankor Date: Fri, 30 Dec 2022 18:56:01 -0700 Subject: [PATCH 2/2] New package: python3-invoke-1.7.3 --- srcpkgs/python3-invoke/patches/python311.diff | 36 +++++++++++++++++++ srcpkgs/python3-invoke/template | 19 ++++++++++ 2 files changed, 55 insertions(+) create mode 100644 srcpkgs/python3-invoke/patches/python311.diff create mode 100644 srcpkgs/python3-invoke/template diff --git a/srcpkgs/python3-invoke/patches/python311.diff b/srcpkgs/python3-invoke/patches/python311.diff new file mode 100644 index 000000000000..ab121a560f0e --- /dev/null +++ b/srcpkgs/python3-invoke/patches/python311.diff @@ -0,0 +1,36 @@ +diff --git a/invoke/_version.py b/invoke/_version.py +index 17f4ce42..98f13cbc 100644 +--- a/invoke/_version.py ++++ b/invoke/_version.py +@@ -1,2 +1,2 @@ +-__version_info__ = (1, 7, 3) ++__version_info__ = (1, 7, 6) + __version__ = ".".join(map(str, __version_info__)) +diff --git a/invoke/tasks.py b/invoke/tasks.py +index f2069916..3ddf0bfe 100644 +--- a/invoke/tasks.py ++++ b/invoke/tasks.py +@@ -4,12 +4,12 @@ + """ + + from copy import deepcopy +-import inspect + import types + + from .context import Context + from .parser import Argument, translate_underscores + from .util import six ++from .vendor.decorator import getargspec + + if six.PY3: + from itertools import zip_longest +@@ -150,7 +150,7 @@ def argspec(self, body): + # TODO: __call__ exhibits the 'self' arg; do we manually nix 1st result + # in argspec, or is there a way to get the "really callable" spec? + func = body if isinstance(body, types.FunctionType) else body.__call__ +- spec = inspect.getargspec(func) ++ spec = getargspec(func) + arg_names = spec.args[:] + matched_args = [reversed(x) for x in [spec.args, spec.defaults or []]] + spec_dict = dict(zip_longest(*matched_args, fillvalue=NO_DEFAULT)) + diff --git a/srcpkgs/python3-invoke/template b/srcpkgs/python3-invoke/template new file mode 100644 index 000000000000..c40f39619c99 --- /dev/null +++ b/srcpkgs/python3-invoke/template @@ -0,0 +1,19 @@ +# Template file for 'python3-invoke' +pkgname=python3-invoke +version=1.7.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-yaml" +short_desc="Pythonic task management & command execution" +maintainer="travankor " +license="BSD-2-Clause" +homepage="https://www.pyinvoke.org/" +changelog="https://www.pyinvoke.org/changelog.html" +distfiles="${PYPI_SITE}/i/invoke/invoke-${version}.tar.gz" +checksum=41b428342d466a82135d5ab37119685a989713742be46e42a3a399d685579314 +make_check=no # Broken on Python 3.11 https://github.com/pyinvoke/invoke/issues/891 + +post_install() { + vlicense LICENSE +}