pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/py-hy



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Dec 18 12:48:46 UTC 2017

Modified Files:
        pkgsrc/lang/py-hy: Makefile PLIST distinfo
Added Files:
        pkgsrc/lang/py-hy/patches: patch-setup.py

Log Message:
py-hy: updated to 0.13.0

Changes 0.13.1:

[ Language Changes ]
* Pythons 2.6, 3.0, 3.1, and 3.2 are no longer supported
* let has been removed. Python's scoping rules do not make a proper
  implementation of it possible. Use setv instead.
* lambda has been removed, but fn now does exactly what lambda did
* defreader has been renamed to defsharp; what were previously called
  "reader macros", which were never true reader macros, are now called
  "sharp macros"
* try now enforces the usual Python order for its elements (else must
  follow all excepts, and finally must come last). This is only a
  syntactic change; the elements were already run in Python order even when
  defined out of order.
* try now requires an except or finally clause, as in Python
* Importing or executing a Hy file automatically byte-compiles it, or loads
  a byte-compiled version if it exists and is up to date. This brings big
  speed boosts, even for one-liners, because Hy no longer needs to recompile
  its standard library for every startup.
* Added bytestring literals, which create bytes objects under Python 3
  and str objects under Python 2
* Commas and underscores are allowed in numeric literals
* Many more operators (e.g., **, //, not, in) can be used
  as first-class functions
* The semantics of binary operators when applied to fewer or more
  than two arguments have been made more logical
* (** a b c d) is now equivalent to (** a (** b (** c d))),
  not (** (** (** a b) c) d)
* setv always returns None
* When a try form executes an else clause, the return value for the
  try form is taken from else instead of the try body. For example,
  (try 1 (except [ValueError] 2) (else 3)) returns 3.
* xor: If exactly one argument is true, return it
* hy.core.reserved is now hy.extra.reserved
* cond now supports single argument branches

[ Bug Fixes ]
* All shadowed operators have the same arities as real operators
* Shadowed comparison operators now use and instead of &
  for chained comparisons
* partition no longer prematurely exhausts input iterators
* read and read-str no longer raise an error when the input
  parses to a false value (e.g., the empty string)
* A yield inside of a with statement will properly suppress implicit
  returns
* setv no longer unnecessarily tries to get attributes
* loop no longer replaces string literals equal to "recur"
* The REPL now prints the correct value of do and try forms
* Fixed a crash when tokenizing a single quote followed by whitespace

[ Misc. Improvements ]
* New contrib module hy-repr
* Added a command-line option --repl-output-fn


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/py-hy/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/py-hy/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/py-hy/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/py-hy/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/py-hy/Makefile
diff -u pkgsrc/lang/py-hy/Makefile:1.6 pkgsrc/lang/py-hy/Makefile:1.7
--- pkgsrc/lang/py-hy/Makefile:1.6      Sat Sep 16 19:26:58 2017
+++ pkgsrc/lang/py-hy/Makefile  Mon Dec 18 12:48:46 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2017/09/16 19:26:58 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2017/12/18 12:48:46 adam Exp $
 
-DISTNAME=      hy-0.10.1
+DISTNAME=      hy-0.13.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hy/}
@@ -10,20 +10,18 @@ HOMEPAGE=   http://hylang.org/
 COMMENT=       Lisp and Python love each other
 LICENSE=       mit
 
+DEPENDS+=      ${PYPKGPREFIX}-astor>=0.5:../../devel/py-astor
+DEPENDS+=      ${PYPKGPREFIX}-clint>=0.4:../../devel/py-clint
 DEPENDS+=      ${PYPKGPREFIX}-rply>=0.7.0:../../devel/py-rply
-DEPENDS+=      ${PYPKGPREFIX}-astor>=0.3:../../devel/py-astor
 
 USE_LANGUAGES= # none
 
-PY_PATCHPLIST= yes
-
 post-install:
-       ${MV} ${DESTDIR}${PREFIX}/bin/hy \
-               ${DESTDIR}${PREFIX}/bin/hy${PYVERSSUFFIX} || ${TRUE}
-       ${MV} ${DESTDIR}${PREFIX}/bin/hy2py \
-               ${DESTDIR}${PREFIX}/bin/hy2py${PYVERSSUFFIX} || ${TRUE}
-       ${MV} ${DESTDIR}${PREFIX}/bin/hyc \
-               ${DESTDIR}${PREFIX}/bin/hyc${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && \
+               ${RM} hy[23] hy2py[23] hyc[23] && \
+               ${MV} hy hy${PYVERSSUFFIX} && \
+               ${MV} hy2py hy2py${PYVERSSUFFIX} && \
+               ${MV} hyc hyc${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/py-hy/PLIST
diff -u pkgsrc/lang/py-hy/PLIST:1.2 pkgsrc/lang/py-hy/PLIST:1.3
--- pkgsrc/lang/py-hy/PLIST:1.2 Sun Nov  9 19:31:56 2014
+++ pkgsrc/lang/py-hy/PLIST     Mon Dec 18 12:48:46 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2014/11/09 19:31:56 rodent Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/12/18 12:48:46 adam Exp $
 bin/hy${PYVERSSUFFIX}
 bin/hy2py${PYVERSSUFFIX}
 bin/hyc${PYVERSSUFFIX}
@@ -29,26 +29,41 @@ ${PYSITELIB}/hy/completer.pyo
 ${PYSITELIB}/hy/contrib/__init__.py
 ${PYSITELIB}/hy/contrib/__init__.pyc
 ${PYSITELIB}/hy/contrib/__init__.pyo
-${PYSITELIB}/hy/contrib/anaphoric.hy
-${PYSITELIB}/hy/contrib/curry.hy
-${PYSITELIB}/hy/contrib/dispatch/__init__.py
-${PYSITELIB}/hy/contrib/dispatch/__init__.pyc
-${PYSITELIB}/hy/contrib/dispatch/__init__.pyo
+${PYSITELIB}/hy/contrib/botsbuildbots.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/botsbuildbots.pyc
+${PYSITELIB}/hy/contrib/hy_repr.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/hy_repr.pyc
 ${PYSITELIB}/hy/contrib/loop.hy
-${PYSITELIB}/hy/contrib/meth.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/loop.pyc
 ${PYSITELIB}/hy/contrib/multi.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/multi.pyc
 ${PYSITELIB}/hy/contrib/profile.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/profile.pyc
+${PYSITELIB}/hy/contrib/sequences.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/sequences.pyc
 ${PYSITELIB}/hy/contrib/walk.hy
+${PLIST.py3x}${PYSITELIB}/hy/contrib/walk.pyc
 ${PYSITELIB}/hy/core/__init__.py
 ${PYSITELIB}/hy/core/__init__.pyc
 ${PYSITELIB}/hy/core/__init__.pyo
 ${PYSITELIB}/hy/core/bootstrap.hy
+${PLIST.py3x}${PYSITELIB}/hy/core/bootstrap.pyc
 ${PYSITELIB}/hy/core/language.hy
+${PLIST.py3x}${PYSITELIB}/hy/core/language.pyc
 ${PYSITELIB}/hy/core/macros.hy
+${PLIST.py3x}${PYSITELIB}/hy/core/macros.pyc
 ${PYSITELIB}/hy/core/shadow.hy
+${PLIST.py3x}${PYSITELIB}/hy/core/shadow.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
+${PLIST.py3x}${PYSITELIB}/hy/extra/anaphoric.pyc
+${PYSITELIB}/hy/extra/reserved.hy
+${PLIST.py3x}${PYSITELIB}/hy/extra/reserved.pyc
 ${PYSITELIB}/hy/importer.py
 ${PYSITELIB}/hy/importer.pyc
 ${PYSITELIB}/hy/importer.pyo
@@ -67,39 +82,9 @@ ${PYSITELIB}/hy/lex/parser.pyo
 ${PYSITELIB}/hy/macros.py
 ${PYSITELIB}/hy/macros.pyc
 ${PYSITELIB}/hy/macros.pyo
-${PYSITELIB}/hy/models/__init__.py
-${PYSITELIB}/hy/models/__init__.pyc
-${PYSITELIB}/hy/models/__init__.pyo
-${PYSITELIB}/hy/models/complex.py
-${PYSITELIB}/hy/models/complex.pyc
-${PYSITELIB}/hy/models/complex.pyo
-${PYSITELIB}/hy/models/cons.py
-${PYSITELIB}/hy/models/cons.pyc
-${PYSITELIB}/hy/models/cons.pyo
-${PYSITELIB}/hy/models/dict.py
-${PYSITELIB}/hy/models/dict.pyc
-${PYSITELIB}/hy/models/dict.pyo
-${PYSITELIB}/hy/models/expression.py
-${PYSITELIB}/hy/models/expression.pyc
-${PYSITELIB}/hy/models/expression.pyo
-${PYSITELIB}/hy/models/float.py
-${PYSITELIB}/hy/models/float.pyc
-${PYSITELIB}/hy/models/float.pyo
-${PYSITELIB}/hy/models/integer.py
-${PYSITELIB}/hy/models/integer.pyc
-${PYSITELIB}/hy/models/integer.pyo
-${PYSITELIB}/hy/models/keyword.py
-${PYSITELIB}/hy/models/keyword.pyc
-${PYSITELIB}/hy/models/keyword.pyo
-${PYSITELIB}/hy/models/list.py
-${PYSITELIB}/hy/models/list.pyc
-${PYSITELIB}/hy/models/list.pyo
-${PYSITELIB}/hy/models/string.py
-${PYSITELIB}/hy/models/string.pyc
-${PYSITELIB}/hy/models/string.pyo
-${PYSITELIB}/hy/models/symbol.py
-${PYSITELIB}/hy/models/symbol.pyc
-${PYSITELIB}/hy/models/symbol.pyo
+${PYSITELIB}/hy/models.py
+${PYSITELIB}/hy/models.pyc
+${PYSITELIB}/hy/models.pyo
 ${PYSITELIB}/hy/version.py
 ${PYSITELIB}/hy/version.pyc
 ${PYSITELIB}/hy/version.pyo

Index: pkgsrc/lang/py-hy/distinfo
diff -u pkgsrc/lang/py-hy/distinfo:1.3 pkgsrc/lang/py-hy/distinfo:1.4
--- pkgsrc/lang/py-hy/distinfo:1.3      Tue Nov  3 22:50:42 2015
+++ pkgsrc/lang/py-hy/distinfo  Mon Dec 18 12:48:46 2017
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 22:50:42 agc Exp $
+$NetBSD: distinfo,v 1.4 2017/12/18 12:48:46 adam Exp $
 
-SHA1 (hy-0.10.1.tar.gz) = 5df7a434dee1ca7127968862dd1e62fc40f64827
-RMD160 (hy-0.10.1.tar.gz) = d32c71b38f6eb29d39359827872a692c63f6d66c
-SHA512 (hy-0.10.1.tar.gz) = 5a8e8a2090942dc49f63161f7a3bc9224a3b387f81b6dddbbb9ffc94cb72a5076fbd7d7bf0be65fcd8ba5a3febab4c120268d9badf4cb88e6b1fdf84c92028d0
-Size (hy-0.10.1.tar.gz) = 42726 bytes
+SHA1 (hy-0.13.0.tar.gz) = 73f0b0dad931897e59c0ae9805095b8a0d828991
+RMD160 (hy-0.13.0.tar.gz) = 99f4ee0c49512c7758e98fbf910a0c456a656c22
+SHA512 (hy-0.13.0.tar.gz) = d0950351df2a2638c2675eb7924f3640df0805edec3059b934321c8d6cbc704d4c09aed21304a3171301d524826075f204c85799d90eb5d953fb0945229cabcf
+Size (hy-0.13.0.tar.gz) = 64162 bytes
+SHA1 (patch-setup.py) = bebcbc874d8afee305eb5bfa207d207c2eee4a85

Added files:

Index: pkgsrc/lang/py-hy/patches/patch-setup.py
diff -u /dev/null pkgsrc/lang/py-hy/patches/patch-setup.py:1.1
--- /dev/null   Mon Dec 18 12:48:46 2017
+++ pkgsrc/lang/py-hy/patches/patch-setup.py    Mon Dec 18 12:48:46 2017
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2017/12/18 12:48:46 adam Exp $
+
+Do not install get_version.py; it is needed only for setup.py.
+
+--- setup.py.orig      2017-12-18 08:29:33.000000000 +0000
++++ setup.py
+@@ -57,9 +57,6 @@ setup(
+         'hy.core': ['*.hy', '__pycache__/*'],
+         'hy.extra': ['*.hy', '__pycache__/*'],
+     },
+-    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