Sat Nov 26 19:53:38 2022 UTC ()
py-hy: updated to 0.25.0

0.25.0 (released 2022-11-08)
==============================

Breaking Changes
------------------------------
* `dfor` no longer requires brackets around its final arguments, so
  `(dfor x (range 5) [x (* 2 x)])` is now `(dfor x (range 5) x (* 2
  x))`.
* `except*` (PEP 654) is now recognized in `try`, and a placeholder
  macro for `except*` has been added.

Bug Fixes
------------------------------
* `__file__` should now be set the same way as in Python.
* `\N{…}` escape sequences are now recognized in f-strings.
* Fixed a bug with `python -O` where assertions were still partly
  evaluated.
* Fixed `hy.repr` of `slice` objects with non-integer arguments.

New Features
------------------------------
* Python 3.11 is now supported.

Misc. Improvements
------------------------------
* `hyc` now requires a command-line argument.
* `hyc` prints each path it writes bytecode to, and its messages now
  go to standard error instead of standard output.


(adam)
diff -r1.11 -r1.12 pkgsrc/lang/py-hy/Makefile
diff -r1.5 -r1.6 pkgsrc/lang/py-hy/PLIST
diff -r1.9 -r1.10 pkgsrc/lang/py-hy/distinfo
diff -r1.2 -r1.3 pkgsrc/lang/py-hy/patches/patch-setup.py

cvs diff -r1.11 -r1.12 pkgsrc/lang/py-hy/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/py-hy/Makefile 2022/01/04 20:54:08 1.11
+++ pkgsrc/lang/py-hy/Makefile 2022/11/26 19:53:38 1.12
@@ -1,31 +1,33 @@ @@ -1,31 +1,33 @@
1# $NetBSD: Makefile,v 1.11 2022/01/04 20:54:08 wiz Exp $ 1# $NetBSD: Makefile,v 1.12 2022/11/26 19:53:38 adam Exp $
2 2
3DISTNAME= hy-0.20.0 3DISTNAME= hy-0.25.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 
6CATEGORIES= lang python 5CATEGORIES= lang python
7MASTER_SITES= ${MASTER_SITE_PYPI:=h/hy/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=h/hy/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://docs.hylang.org/ 9HOMEPAGE= https://docs.hylang.org/
11COMMENT= Lisp and Python love each other 10COMMENT= Lisp and Python love each other
12LICENSE= mit 11LICENSE= mit
13 12
14DEPENDS+= ${PYPKGPREFIX}-astor>=0.8:../../devel/py-astor 
15DEPENDS+= ${PYPKGPREFIX}-colorama-[0-9]*:../../comms/py-colorama 13DEPENDS+= ${PYPKGPREFIX}-colorama-[0-9]*:../../comms/py-colorama
16DEPENDS+= ${PYPKGPREFIX}-funcparserlib>=0.3.6:../../devel/py-funcparserlib 14DEPENDS+= ${PYPKGPREFIX}-funcparserlib>=1.0:../../devel/py-funcparserlib
17DEPENDS+= ${PYPKGPREFIX}-rply>=0.7.7:../../devel/py-rply 
18 15
19USE_LANGUAGES= # none 16USE_LANGUAGES= # none
20 17
21PYTHON_VERSIONS_INCOMPATIBLE= 27 18PYTHON_VERSIONS_INCOMPATIBLE= 27
22 19
 20.include "../../lang/python/pyversion.mk"
 21.if ${_PYTHON_VERSION} < 39
 22DEPENDS+= ${PYPKGPREFIX}-astor>=0.8:../../devel/py-astor
 23.endif
 24
23post-install: 25post-install:
24 cd ${DESTDIR}${PREFIX}/bin && \ 26 cd ${DESTDIR}${PREFIX}/bin && \
25 ${RM} hy[23] hy2py[23] hyc[23] && \ 27 ${RM} hy[23] hy2py[23] hyc[23] && \
26 ${MV} hy hy-${PYVERSSUFFIX} && \ 28 ${MV} hy hy-${PYVERSSUFFIX} && \
27 ${MV} hy2py hy2py-${PYVERSSUFFIX} && \ 29 ${MV} hy2py hy2py-${PYVERSSUFFIX} && \
28 ${MV} hyc hyc-${PYVERSSUFFIX} || ${TRUE} 30 ${MV} hyc hyc-${PYVERSSUFFIX} || ${TRUE}
29 31
30.include "../../lang/python/egg.mk" 32.include "../../lang/python/egg.mk"
31.include "../../mk/bsd.pkg.mk" 33.include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/lang/py-hy/PLIST (expand / switch to unified diff)

--- pkgsrc/lang/py-hy/PLIST 2021/03/20 19:14:57 1.5
+++ pkgsrc/lang/py-hy/PLIST 2022/11/26 19:53:38 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.5 2021/03/20 19:14:57 adam Exp $ 1@comment $NetBSD: PLIST,v 1.6 2022/11/26 19:53:38 adam Exp $
2bin/hy-${PYVERSSUFFIX} 2bin/hy-${PYVERSSUFFIX}
3bin/hy2py-${PYVERSSUFFIX} 3bin/hy2py-${PYVERSSUFFIX}
4bin/hyc-${PYVERSSUFFIX} 4bin/hyc-${PYVERSSUFFIX}
5${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 5${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
6${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 6${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
7${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 7${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
8${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 8${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
9${PYSITELIB}/${EGG_INFODIR}/requires.txt 9${PYSITELIB}/${EGG_INFODIR}/requires.txt
10${PYSITELIB}/${EGG_INFODIR}/top_level.txt 10${PYSITELIB}/${EGG_INFODIR}/top_level.txt
11${PYSITELIB}/hy/__init__.py 11${PYSITELIB}/hy/__init__.py
12${PYSITELIB}/hy/__init__.pyc 12${PYSITELIB}/hy/__init__.pyc
13${PYSITELIB}/hy/__init__.pyo 13${PYSITELIB}/hy/__init__.pyo
14${PYSITELIB}/hy/__main__.py 14${PYSITELIB}/hy/__main__.py
@@ -16,65 +16,65 @@ ${PYSITELIB}/hy/__main__.pyc @@ -16,65 +16,65 @@ ${PYSITELIB}/hy/__main__.pyc
16${PYSITELIB}/hy/__main__.pyo 16${PYSITELIB}/hy/__main__.pyo
17${PYSITELIB}/hy/_compat.py 17${PYSITELIB}/hy/_compat.py
18${PYSITELIB}/hy/_compat.pyc 18${PYSITELIB}/hy/_compat.pyc
19${PYSITELIB}/hy/_compat.pyo 19${PYSITELIB}/hy/_compat.pyo
20${PYSITELIB}/hy/cmdline.py 20${PYSITELIB}/hy/cmdline.py
21${PYSITELIB}/hy/cmdline.pyc 21${PYSITELIB}/hy/cmdline.pyc
22${PYSITELIB}/hy/cmdline.pyo 22${PYSITELIB}/hy/cmdline.pyo
23${PYSITELIB}/hy/compiler.py 23${PYSITELIB}/hy/compiler.py
24${PYSITELIB}/hy/compiler.pyc 24${PYSITELIB}/hy/compiler.pyc
25${PYSITELIB}/hy/compiler.pyo 25${PYSITELIB}/hy/compiler.pyo
26${PYSITELIB}/hy/completer.py 26${PYSITELIB}/hy/completer.py
27${PYSITELIB}/hy/completer.pyc 27${PYSITELIB}/hy/completer.pyc
28${PYSITELIB}/hy/completer.pyo 28${PYSITELIB}/hy/completer.pyo
29${PYSITELIB}/hy/contrib/__init__.py 
30${PYSITELIB}/hy/contrib/__init__.pyc 
31${PYSITELIB}/hy/contrib/__init__.pyo 
32${PYSITELIB}/hy/contrib/botsbuildbots.hy 
33${PYSITELIB}/hy/contrib/hy_repr.hy 
34${PYSITELIB}/hy/contrib/loop.hy 
35${PYSITELIB}/hy/contrib/pprint.hy 
36${PYSITELIB}/hy/contrib/profile.hy 
37${PYSITELIB}/hy/contrib/sequences.hy 
38${PYSITELIB}/hy/contrib/walk.hy 
39${PYSITELIB}/hy/core/__init__.py 29${PYSITELIB}/hy/core/__init__.py
40${PYSITELIB}/hy/core/__init__.pyc 30${PYSITELIB}/hy/core/__init__.pyc
41${PYSITELIB}/hy/core/__init__.pyo 31${PYSITELIB}/hy/core/__init__.pyo
42${PYSITELIB}/hy/core/bootstrap.hy 32${PYSITELIB}/hy/core/hy_repr.hy
43${PYSITELIB}/hy/core/language.hy 33${PYSITELIB}/hy/core/hy_repr.pyc
44${PYSITELIB}/hy/core/macros.hy 34${PYSITELIB}/hy/core/macros.hy
45${PYSITELIB}/hy/core/shadow.hy 35${PYSITELIB}/hy/core/macros.pyc
 36${PYSITELIB}/hy/core/result_macros.py
 37${PYSITELIB}/hy/core/result_macros.pyc
 38${PYSITELIB}/hy/core/result_macros.pyo
 39${PYSITELIB}/hy/core/util.hy
 40${PYSITELIB}/hy/core/util.pyc
46${PYSITELIB}/hy/errors.py 41${PYSITELIB}/hy/errors.py
47${PYSITELIB}/hy/errors.pyc 42${PYSITELIB}/hy/errors.pyc
48${PYSITELIB}/hy/errors.pyo 43${PYSITELIB}/hy/errors.pyo
49${PYSITELIB}/hy/extra/__init__.py 
50${PYSITELIB}/hy/extra/__init__.pyc 
51${PYSITELIB}/hy/extra/__init__.pyo 
52${PYSITELIB}/hy/extra/anaphoric.hy 
53${PYSITELIB}/hy/extra/reserved.hy 
54${PYSITELIB}/hy/importer.py 44${PYSITELIB}/hy/importer.py
55${PYSITELIB}/hy/importer.pyc 45${PYSITELIB}/hy/importer.pyc
56${PYSITELIB}/hy/importer.pyo 46${PYSITELIB}/hy/importer.pyo
57${PYSITELIB}/hy/lex/__init__.py 
58${PYSITELIB}/hy/lex/__init__.pyc 
59${PYSITELIB}/hy/lex/__init__.pyo 
60${PYSITELIB}/hy/lex/exceptions.py 
61${PYSITELIB}/hy/lex/exceptions.pyc 
62${PYSITELIB}/hy/lex/exceptions.pyo 
63${PYSITELIB}/hy/lex/lexer.py 
64${PYSITELIB}/hy/lex/lexer.pyc 
65${PYSITELIB}/hy/lex/lexer.pyo 
66${PYSITELIB}/hy/lex/parser.py 
67${PYSITELIB}/hy/lex/parser.pyc 
68${PYSITELIB}/hy/lex/parser.pyo 
69${PYSITELIB}/hy/macros.py 47${PYSITELIB}/hy/macros.py
70${PYSITELIB}/hy/macros.pyc 48${PYSITELIB}/hy/macros.pyc
71${PYSITELIB}/hy/macros.pyo 49${PYSITELIB}/hy/macros.pyo
72${PYSITELIB}/hy/model_patterns.py 50${PYSITELIB}/hy/model_patterns.py
73${PYSITELIB}/hy/model_patterns.pyc 51${PYSITELIB}/hy/model_patterns.pyc
74${PYSITELIB}/hy/model_patterns.pyo 52${PYSITELIB}/hy/model_patterns.pyo
75${PYSITELIB}/hy/models.py 53${PYSITELIB}/hy/models.py
76${PYSITELIB}/hy/models.pyc 54${PYSITELIB}/hy/models.pyc
77${PYSITELIB}/hy/models.pyo 55${PYSITELIB}/hy/models.pyo
 56${PYSITELIB}/hy/pyops.hy
 57${PYSITELIB}/hy/pyops.pyc
 58${PYSITELIB}/hy/reader/__init__.py
 59${PYSITELIB}/hy/reader/__init__.pyc
 60${PYSITELIB}/hy/reader/__init__.pyo
 61${PYSITELIB}/hy/reader/exceptions.py
 62${PYSITELIB}/hy/reader/exceptions.pyc
 63${PYSITELIB}/hy/reader/exceptions.pyo
 64${PYSITELIB}/hy/reader/hy_reader.py
 65${PYSITELIB}/hy/reader/hy_reader.pyc
 66${PYSITELIB}/hy/reader/hy_reader.pyo
 67${PYSITELIB}/hy/reader/mangling.py
 68${PYSITELIB}/hy/reader/mangling.pyc
 69${PYSITELIB}/hy/reader/mangling.pyo
 70${PYSITELIB}/hy/reader/reader.py
 71${PYSITELIB}/hy/reader/reader.pyc
 72${PYSITELIB}/hy/reader/reader.pyo
 73${PYSITELIB}/hy/reserved.hy
 74${PYSITELIB}/hy/reserved.pyc
 75${PYSITELIB}/hy/scoping.py
 76${PYSITELIB}/hy/scoping.pyc
 77${PYSITELIB}/hy/scoping.pyo
78${PYSITELIB}/hy/version.py 78${PYSITELIB}/hy/version.py
79${PYSITELIB}/hy/version.pyc 79${PYSITELIB}/hy/version.pyc
80${PYSITELIB}/hy/version.pyo 80${PYSITELIB}/hy/version.pyo

cvs diff -r1.9 -r1.10 pkgsrc/lang/py-hy/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/py-hy/distinfo 2021/10/26 10:51:49 1.9
+++ pkgsrc/lang/py-hy/distinfo 2022/11/26 19:53:38 1.10
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.9 2021/10/26 10:51:49 nia Exp $ 1$NetBSD: distinfo,v 1.10 2022/11/26 19:53:38 adam Exp $
2 2
3BLAKE2s (hy-0.20.0.tar.gz) = 7c781059f6ded1886a340c40e37073fa246f0c7410f27fc8ce018b4833d3a9a9 3BLAKE2s (hy-0.25.0.tar.gz) = 7bf2406a7930f305f8140eef7579437867316d0ec5e453e1fc6febd95fe4fa2b
4SHA512 (hy-0.20.0.tar.gz) = f6a3ea45589d090c2b142b53c26c3d81f26b02c40f6ad0b875196c24ac7de3dd869b0575ce40e1f146512fb90a7ce8508810dd58d6514569ea682e7a3af39685 4SHA512 (hy-0.25.0.tar.gz) = 561ea43d94caaf74990fd01b6ec9a0e4bd5278b26a5b892ab126e48138aafdba158cf315d20dace613b805760f6764c47410e58e6d517db31ad6960b900a3d18
5Size (hy-0.20.0.tar.gz) = 90040 bytes 5Size (hy-0.25.0.tar.gz) = 97130 bytes
6SHA1 (patch-setup.py) = dc39e78039b408334f6f126730492355148e45c8 6SHA1 (patch-setup.py) = 693bbf4d339f28f47590e9996d9126b689668adb

cvs diff -r1.2 -r1.3 pkgsrc/lang/py-hy/patches/patch-setup.py (expand / switch to unified diff)

--- pkgsrc/lang/py-hy/patches/patch-setup.py 2018/02/23 07:03:09 1.2
+++ pkgsrc/lang/py-hy/patches/patch-setup.py 2022/11/26 19:53:38 1.3
@@ -1,16 +1,14 @@ @@ -1,16 +1,14 @@
1$NetBSD: patch-setup.py,v 1.2 2018/02/23 07:03:09 adam Exp $ 1$NetBSD: patch-setup.py,v 1.3 2022/11/26 19:53:38 adam Exp $
2 2
3Do not install get_version.py; it is needed only for setup.py. 3Do not install get_version.py; it is needed only for setup.py.
4 4
5--- setup.py.orig 2018-02-08 22:05:16.000000000 +0000 5--- setup.py.orig 2022-08-30 17:28:07.000000000 +0000
6+++ setup.py 6+++ setup.py
7@@ -57,9 +57,6 @@ setup( 7@@ -60,7 +60,6 @@ setup(
8 'hy.core': ['*.hy', '__pycache__/*'], 8 package_data={
9 'hy.extra': ['*.hy', '__pycache__/*'], 9 "": ["*.hy"],
10 }, 10 },
11- data_files=[ 11- data_files=[("get_version", ["get_version.py"])],
12- ('get_version', ['get_version.py']) 
13- ], 
14 author="Paul Tagliamonte", 12 author="Paul Tagliamonte",
15 author_email="tag@pault.ag", 13 author_email="tag@pault.ag",
16 long_description=long_description, 14 long_description=long_description,