Control: tags 950672 + pending Dear maintainer,
I've prepared an NMU for hy (versioned as 0.17.0-1.1) and uploaded it to DELAYED/5. Please feel free to tell me if I should delay it longer. Regards. SR
diff -Nru hy-0.17.0/debian/changelog hy-0.17.0/debian/changelog --- hy-0.17.0/debian/changelog 2019-08-19 18:21:26.000000000 -0700 +++ hy-0.17.0/debian/changelog 2020-02-04 08:40:08.000000000 -0800 @@ -1,3 +1,10 @@ +hy (0.17.0-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Support Python 3.8 (Closes: #950672) + + -- Stefano Rivera <stefa...@debian.org> Tue, 04 Feb 2020 08:40:08 -0800 + hy (0.17.0-1) unstable; urgency=medium * Update to 0.17.0 upstream release (Closes: #913044, #892264, #913048) diff -Nru hy-0.17.0/debian/patches/py38.patch hy-0.17.0/debian/patches/py38.patch --- hy-0.17.0/debian/patches/py38.patch 1969-12-31 16:00:00.000000000 -0800 +++ hy-0.17.0/debian/patches/py38.patch 2020-02-04 08:40:08.000000000 -0800 @@ -0,0 +1,53 @@ +Description: Support posonlyargs in Python 3.8 +Author: Kodi Arfer <g...@arfer.net> +Author: Stefano Rivera <stefa...@debian.org> +Origin: upstream, https://github.com/hylang/hy/commit/ba9b0239c7fa2a02478e8456ed3867c6f2fec0c5 +Origin: upstream, https://github.com/hylang/hy/commit/36708e8e996700da256943b3e8162a29fa381473 +Bug-Debian: https://bugs.debian.org/950672 + +--- a/hy/compiler.py ++++ b/hy/compiler.py +@@ -1145,7 +1145,7 @@ + expr, + name=fname, + args=ast.arguments( +- args=[], vararg=None, kwarg=None, ++ args=[], vararg=None, kwarg=None, posonlyargs=[], + kwonlyargs=[], kw_defaults=[], defaults=[]), + body=f(parts).stmts, + decorator_list=[]) +@@ -1524,6 +1524,7 @@ + args = ast.arguments( + args=main_args, defaults=defaults, + vararg=rest, ++ posonlyargs=[], + kwonlyargs=kwonly, kw_defaults=kw_defaults, + kwarg=kwargs) + +--- a/hy/_compat.py ++++ b/hy/_compat.py +@@ -37,10 +37,12 @@ + finally: + traceback = None + +- code_obj_args = ['argcount', 'kwonlyargcount', 'nlocals', 'stacksize', ++ code_obj_args = ['argcount', 'posonlyargcount', 'kwonlyargcount', 'nlocals', 'stacksize', + 'flags', 'code', 'consts', 'names', 'varnames', + 'filename', 'name', 'firstlineno', 'lnotab', 'freevars', + 'cellvars'] ++ if not PY38: ++ code_obj_args.remove("posonlyargcount") + else: + def raise_from(value, from_value=None): + raise value +--- a/tests/native_tests/native_macros.hy ++++ b/tests/native_tests/native_macros.hy +@@ -391,7 +391,7 @@ + ;; Now, let's use a `require`d macro that depends on another macro defined only + ;; in this scope. + (defmacro local-test-macro [x] +- (.format "This is the local version of `nonlocal-test-macro` returning {}!" x)) ++ (.format "This is the local version of `nonlocal-test-macro` returning {}!" (int x))) + + (assert (= "This is the local version of `nonlocal-test-macro` returning 3!" + (test-module-macro-2 3))) diff -Nru hy-0.17.0/debian/patches/series hy-0.17.0/debian/patches/series --- hy-0.17.0/debian/patches/series 2019-08-16 15:57:27.000000000 -0700 +++ hy-0.17.0/debian/patches/series 2020-02-04 08:15:19.000000000 -0800 @@ -1 +1,2 @@ hy-history.patch +py38.patch