pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/py-numpy



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Nov 20 19:03:48 UTC 2022

Modified Files:
        pkgsrc/math/py-numpy: Makefile distinfo
Added Files:
        pkgsrc/math/py-numpy/patches: patch-numpy_distutils_log.py

Log Message:
py-numpy: updated to 1.23.5

1.23.5
TST, MAINT: Replace most setup with setup_method (also teardown)
MAINT, CI: Switch to cygwin/cygwin-install-action@v2
TST: Make test_partial_iteration_cleanup robust but require leak...
MAINT: Ensure graceful handling of large header sizes
TYP: Spelling alignment for array flag literal
BUG: Fix bounds checking for ``random.logseries``
DEV: Update GH actions and Dockerfile for Gitpod
CI: Only fetch in actions/checkout
BUG: Decrement ref count in gentype_reduce if allocated memory...
BUG: Histogramdd breaks on big arrays in Windows


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 pkgsrc/math/py-numpy/Makefile
cvs rdiff -u -r1.78 -r1.79 pkgsrc/math/py-numpy/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/py-numpy/patches/patch-numpy_distutils_log.py

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

Modified files:

Index: pkgsrc/math/py-numpy/Makefile
diff -u pkgsrc/math/py-numpy/Makefile:1.100 pkgsrc/math/py-numpy/Makefile:1.101
--- pkgsrc/math/py-numpy/Makefile:1.100 Wed Oct 19 17:27:58 2022
+++ pkgsrc/math/py-numpy/Makefile       Sun Nov 20 19:03:47 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.100 2022/10/19 17:27:58 adam Exp $
+# $NetBSD: Makefile,v 1.101 2022/11/20 19:03:47 adam Exp $
 
-DISTNAME=      numpy-1.23.4
+DISTNAME=      numpy-1.23.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/numpy/}

Index: pkgsrc/math/py-numpy/distinfo
diff -u pkgsrc/math/py-numpy/distinfo:1.78 pkgsrc/math/py-numpy/distinfo:1.79
--- pkgsrc/math/py-numpy/distinfo:1.78  Wed Oct 19 17:27:58 2022
+++ pkgsrc/math/py-numpy/distinfo       Sun Nov 20 19:03:47 2022
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.78 2022/10/19 17:27:58 adam Exp $
+$NetBSD: distinfo,v 1.79 2022/11/20 19:03:47 adam Exp $
 
-BLAKE2s (numpy-1.23.4.tar.gz) = 1f6e7bdb924ad3e3174a0c989bdb479530a516603b436be03b4cc957f2816bce
-SHA512 (numpy-1.23.4.tar.gz) = 727ca8950b0fbd5670e939b1c9c5cea852781ec4254d56a1659a91dc0430fc10b01ffdd16e1bb28a62319f91029e087024f4c6298bfc859a6050bfb507edcff8
-Size (numpy-1.23.4.tar.gz) = 10728765 bytes
+BLAKE2s (numpy-1.23.5.tar.gz) = 78adb277a3e8d54e8ee569e840a6069a31433e044973ff0d003d8a47ef61cdda
+SHA512 (numpy-1.23.5.tar.gz) = 8f3ece76dbe79bc887275332d25f851ade2087de3026de5fb7ed793590b3e7d274f590357296e152373b4e9a245d4d563393ba7198bca6d44631b941acb89c2c
+Size (numpy-1.23.5.tar.gz) = 10731755 bytes
 SHA1 (patch-numpy_core_include_numpy_npy__common.h) = 354e336b98f634b6298d0b1d0e85ef1a9d240bff
 SHA1 (patch-numpy_core_setup.py) = 01f90b7eb700cfa51edded31498c2de4c3850848
 SHA1 (patch-numpy_core_src_npymath_npy__math__private.h) = e3b8e751fd0b6b6c6794d714aa5f60dfe9d7f421
@@ -10,5 +10,6 @@ SHA1 (patch-numpy_distutils_command_conf
 SHA1 (patch-numpy_distutils_fcompiler_____init____.py) = 49d070da5b48bd9818b37ac3254341fa68503c53
 SHA1 (patch-numpy_distutils_fcompiler_g95.py) = be73b64a3e551df998b6a904d6db762bf28a98ed
 SHA1 (patch-numpy_distutils_fcompiler_gnu.py) = 1ab3fd7b3f42328f4094f1b21a65c05ae4d975b7
+SHA1 (patch-numpy_distutils_log.py) = 4c968b934fb24da096a1f4d2cd4ebb2e3fd92334
 SHA1 (patch-numpy_linalg_lapack__litemodule.c) = e97ec871c2f33c3121b3c8471a9e5a74c3c798c8
 SHA1 (patch-numpy_linalg_setup.py) = 867a2aba13ebb60b67ac2824a4cb1aff2e1231ee

Added files:

Index: pkgsrc/math/py-numpy/patches/patch-numpy_distutils_log.py
diff -u /dev/null pkgsrc/math/py-numpy/patches/patch-numpy_distutils_log.py:1.1
--- /dev/null   Sun Nov 20 19:03:48 2022
+++ pkgsrc/math/py-numpy/patches/patch-numpy_distutils_log.py   Sun Nov 20 19:03:47 2022
@@ -0,0 +1,74 @@
+$NetBSD: patch-numpy_distutils_log.py,v 1.1 2022/11/20 19:03:47 adam Exp $
+
+Backport distutils.log.Log from setuptools < 65.6.0.
+
+--- numpy/distutils/log.py.orig        2022-11-20 17:58:45.000000000 +0000
++++ numpy/distutils/log.py
+@@ -1,8 +1,8 @@
+ # Colored log
+ import sys
+ from distutils.log import *  # noqa: F403
+-from distutils.log import Log as old_Log
+ from distutils.log import _global_log
++from logging import Logger
+ 
+ from numpy.distutils.misc_util import (red_text, default_text, cyan_text,
+         green_text, is_sequence, is_string)
+@@ -16,7 +16,48 @@ def _fix_args(args,flag=1):
+     return args
+ 
+ 
+-class Log(old_Log):
++class Log(Logger):
++    def __init__(self, threshold=WARN):
++        self.threshold = threshold
++
++    def _log(self, level, msg, args):
++        if level not in (DEBUG, INFO, WARN, ERROR, FATAL):
++            raise ValueError('%s wrong log level' % str(level))
++
++        if level >= self.threshold:
++            if args:
++                msg = msg % args
++            if level in (WARN, ERROR, FATAL):
++                stream = sys.stderr
++            else:
++                stream = sys.stdout
++            try:
++                stream.write('%s\n' % msg)
++            except UnicodeEncodeError:
++                # emulate backslashreplace error handler
++                encoding = stream.encoding
++                msg = msg.encode(encoding, "backslashreplace").decode(encoding)
++                stream.write('%s\n' % msg)
++            stream.flush()
++
++    def log(self, level, msg, *args):
++        self._log(level, msg, args)
++
++    def debug(self, msg, *args):
++       self._log(DEBUG, msg, args)
++
++    def info(self, msg, *args):
++        self._log(INFO, msg, args)
++
++    def warn(self, msg, *args):
++        self._log(WARN, msg, args)
++
++    def error(self, msg, *args):
++        self._log(ERROR, msg, args)
++
++    def fatal(self, msg, *args):
++        self._log(FATAL, msg, args)
++
+     def _log(self, level, msg, args):
+         if level >= self.threshold:
+             if args:
+@@ -44,6 +85,7 @@ class Log(old_Log):
+ 
+ 
+ _global_log.__class__ = Log
++_global_log.threshold = WARN
+ 
+ good = _global_log.good
+ 



Home | Main Index | Thread Index | Old Index