pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/py-hy py-hy: updated to 0.25.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51f4ada07071
branches:  trunk
changeset: 388789:51f4ada07071
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Nov 26 19:53:38 2022 +0000

description:
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.

diffstat:

 lang/py-hy/Makefile               |  14 +++++---
 lang/py-hy/PLIST                  |  62 +++++++++++++++++++-------------------
 lang/py-hy/distinfo               |  10 +++---
 lang/py-hy/patches/patch-setup.py |  14 +++-----
 4 files changed, 50 insertions(+), 50 deletions(-)

diffs (170 lines):

diff -r 56af13effc55 -r 51f4ada07071 lang/py-hy/Makefile
--- a/lang/py-hy/Makefile       Sat Nov 26 19:50:46 2022 +0000
+++ b/lang/py-hy/Makefile       Sat Nov 26 19:53:38 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2022/01/04 20:54:08 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/11/26 19:53:38 adam Exp $
 
-DISTNAME=      hy-0.20.0
+DISTNAME=      hy-0.25.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hy/}
 
@@ -11,15 +10,18 @@
 COMMENT=       Lisp and Python love each other
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-astor>=0.8:../../devel/py-astor
 DEPENDS+=      ${PYPKGPREFIX}-colorama-[0-9]*:../../comms/py-colorama
-DEPENDS+=      ${PYPKGPREFIX}-funcparserlib>=0.3.6:../../devel/py-funcparserlib
-DEPENDS+=      ${PYPKGPREFIX}-rply>=0.7.7:../../devel/py-rply
+DEPENDS+=      ${PYPKGPREFIX}-funcparserlib>=1.0:../../devel/py-funcparserlib
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 39
+DEPENDS+=      ${PYPKGPREFIX}-astor>=0.8:../../devel/py-astor
+.endif
+
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
                ${RM} hy[23] hy2py[23] hyc[23] && \
diff -r 56af13effc55 -r 51f4ada07071 lang/py-hy/PLIST
--- a/lang/py-hy/PLIST  Sat Nov 26 19:50:46 2022 +0000
+++ b/lang/py-hy/PLIST  Sat Nov 26 19:53:38 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2021/03/20 19:14:57 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2022/11/26 19:53:38 adam Exp $
 bin/hy-${PYVERSSUFFIX}
 bin/hy2py-${PYVERSSUFFIX}
 bin/hyc-${PYVERSSUFFIX}
@@ -26,46 +26,24 @@
 ${PYSITELIB}/hy/completer.py
 ${PYSITELIB}/hy/completer.pyc
 ${PYSITELIB}/hy/completer.pyo
-${PYSITELIB}/hy/contrib/__init__.py
-${PYSITELIB}/hy/contrib/__init__.pyc
-${PYSITELIB}/hy/contrib/__init__.pyo
-${PYSITELIB}/hy/contrib/botsbuildbots.hy
-${PYSITELIB}/hy/contrib/hy_repr.hy
-${PYSITELIB}/hy/contrib/loop.hy
-${PYSITELIB}/hy/contrib/pprint.hy
-${PYSITELIB}/hy/contrib/profile.hy
-${PYSITELIB}/hy/contrib/sequences.hy
-${PYSITELIB}/hy/contrib/walk.hy
 ${PYSITELIB}/hy/core/__init__.py
 ${PYSITELIB}/hy/core/__init__.pyc
 ${PYSITELIB}/hy/core/__init__.pyo
-${PYSITELIB}/hy/core/bootstrap.hy
-${PYSITELIB}/hy/core/language.hy
+${PYSITELIB}/hy/core/hy_repr.hy
+${PYSITELIB}/hy/core/hy_repr.pyc
 ${PYSITELIB}/hy/core/macros.hy
-${PYSITELIB}/hy/core/shadow.hy
+${PYSITELIB}/hy/core/macros.pyc
+${PYSITELIB}/hy/core/result_macros.py
+${PYSITELIB}/hy/core/result_macros.pyc
+${PYSITELIB}/hy/core/result_macros.pyo
+${PYSITELIB}/hy/core/util.hy
+${PYSITELIB}/hy/core/util.pyc
 ${PYSITELIB}/hy/errors.py
 ${PYSITELIB}/hy/errors.pyc
 ${PYSITELIB}/hy/errors.pyo
-${PYSITELIB}/hy/extra/__init__.py
-${PYSITELIB}/hy/extra/__init__.pyc
-${PYSITELIB}/hy/extra/__init__.pyo
-${PYSITELIB}/hy/extra/anaphoric.hy
-${PYSITELIB}/hy/extra/reserved.hy
 ${PYSITELIB}/hy/importer.py
 ${PYSITELIB}/hy/importer.pyc
 ${PYSITELIB}/hy/importer.pyo
-${PYSITELIB}/hy/lex/__init__.py
-${PYSITELIB}/hy/lex/__init__.pyc
-${PYSITELIB}/hy/lex/__init__.pyo
-${PYSITELIB}/hy/lex/exceptions.py
-${PYSITELIB}/hy/lex/exceptions.pyc
-${PYSITELIB}/hy/lex/exceptions.pyo
-${PYSITELIB}/hy/lex/lexer.py
-${PYSITELIB}/hy/lex/lexer.pyc
-${PYSITELIB}/hy/lex/lexer.pyo
-${PYSITELIB}/hy/lex/parser.py
-${PYSITELIB}/hy/lex/parser.pyc
-${PYSITELIB}/hy/lex/parser.pyo
 ${PYSITELIB}/hy/macros.py
 ${PYSITELIB}/hy/macros.pyc
 ${PYSITELIB}/hy/macros.pyo
@@ -75,6 +53,28 @@
 ${PYSITELIB}/hy/models.py
 ${PYSITELIB}/hy/models.pyc
 ${PYSITELIB}/hy/models.pyo
+${PYSITELIB}/hy/pyops.hy
+${PYSITELIB}/hy/pyops.pyc
+${PYSITELIB}/hy/reader/__init__.py
+${PYSITELIB}/hy/reader/__init__.pyc
+${PYSITELIB}/hy/reader/__init__.pyo
+${PYSITELIB}/hy/reader/exceptions.py
+${PYSITELIB}/hy/reader/exceptions.pyc
+${PYSITELIB}/hy/reader/exceptions.pyo
+${PYSITELIB}/hy/reader/hy_reader.py
+${PYSITELIB}/hy/reader/hy_reader.pyc
+${PYSITELIB}/hy/reader/hy_reader.pyo
+${PYSITELIB}/hy/reader/mangling.py
+${PYSITELIB}/hy/reader/mangling.pyc
+${PYSITELIB}/hy/reader/mangling.pyo
+${PYSITELIB}/hy/reader/reader.py
+${PYSITELIB}/hy/reader/reader.pyc
+${PYSITELIB}/hy/reader/reader.pyo
+${PYSITELIB}/hy/reserved.hy
+${PYSITELIB}/hy/reserved.pyc
+${PYSITELIB}/hy/scoping.py
+${PYSITELIB}/hy/scoping.pyc
+${PYSITELIB}/hy/scoping.pyo
 ${PYSITELIB}/hy/version.py
 ${PYSITELIB}/hy/version.pyc
 ${PYSITELIB}/hy/version.pyo
diff -r 56af13effc55 -r 51f4ada07071 lang/py-hy/distinfo
--- a/lang/py-hy/distinfo       Sat Nov 26 19:50:46 2022 +0000
+++ b/lang/py-hy/distinfo       Sat Nov 26 19:53:38 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:51:49 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/11/26 19:53:38 adam Exp $
 
-BLAKE2s (hy-0.20.0.tar.gz) = 7c781059f6ded1886a340c40e37073fa246f0c7410f27fc8ce018b4833d3a9a9
-SHA512 (hy-0.20.0.tar.gz) = f6a3ea45589d090c2b142b53c26c3d81f26b02c40f6ad0b875196c24ac7de3dd869b0575ce40e1f146512fb90a7ce8508810dd58d6514569ea682e7a3af39685
-Size (hy-0.20.0.tar.gz) = 90040 bytes
-SHA1 (patch-setup.py) = dc39e78039b408334f6f126730492355148e45c8
+BLAKE2s (hy-0.25.0.tar.gz) = 7bf2406a7930f305f8140eef7579437867316d0ec5e453e1fc6febd95fe4fa2b
+SHA512 (hy-0.25.0.tar.gz) = 561ea43d94caaf74990fd01b6ec9a0e4bd5278b26a5b892ab126e48138aafdba158cf315d20dace613b805760f6764c47410e58e6d517db31ad6960b900a3d18
+Size (hy-0.25.0.tar.gz) = 97130 bytes
+SHA1 (patch-setup.py) = 693bbf4d339f28f47590e9996d9126b689668adb
diff -r 56af13effc55 -r 51f4ada07071 lang/py-hy/patches/patch-setup.py
--- a/lang/py-hy/patches/patch-setup.py Sat Nov 26 19:50:46 2022 +0000
+++ b/lang/py-hy/patches/patch-setup.py Sat Nov 26 19:53:38 2022 +0000
@@ -1,16 +1,14 @@
-$NetBSD: patch-setup.py,v 1.2 2018/02/23 07:03:09 adam Exp $
+$NetBSD: patch-setup.py,v 1.3 2022/11/26 19:53:38 adam Exp $
 
 Do not install get_version.py; it is needed only for setup.py.
 
---- setup.py.orig      2018-02-08 22:05:16.000000000 +0000
+--- setup.py.orig      2022-08-30 17:28:07.000000000 +0000
 +++ setup.py
-@@ -57,9 +57,6 @@ setup(
-         'hy.core': ['*.hy', '__pycache__/*'],
-         'hy.extra': ['*.hy', '__pycache__/*'],
+@@ -60,7 +60,6 @@ setup(
+     package_data={
+         "": ["*.hy"],
      },
--    data_files=[
--        ('get_version', ['get_version.py'])
--    ],
+-    data_files=[("get_version", ["get_version.py"])],
      author="Paul Tagliamonte",
      author_email="tag%pault.ag@localhost",
      long_description=long_description,


Home | Main Index | Thread Index | Old Index