pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-hypothesis



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Nov  4 18:34:10 UTC 2022

Modified Files:
        pkgsrc/devel/py-hypothesis: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/py-hypothesis/patches:
            patch-src_hypothesis_extra_array__api.py

Log Message:
py-hypothesis: fix build for Python 3.7; avoid self-conflict; bump revision


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 pkgsrc/devel/py-hypothesis/Makefile
cvs rdiff -u -r1.37 -r1.38 pkgsrc/devel/py-hypothesis/PLIST
cvs rdiff -u -r1.109 -r1.110 pkgsrc/devel/py-hypothesis/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-hypothesis/patches/patch-src_hypothesis_extra_array__api.py

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

Modified files:

Index: pkgsrc/devel/py-hypothesis/Makefile
diff -u pkgsrc/devel/py-hypothesis/Makefile:1.113 pkgsrc/devel/py-hypothesis/Makefile:1.114
--- pkgsrc/devel/py-hypothesis/Makefile:1.113   Thu Nov  3 10:43:03 2022
+++ pkgsrc/devel/py-hypothesis/Makefile Fri Nov  4 18:34:09 2022
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.113 2022/11/03 10:43:03 adam Exp $
+# $NetBSD: Makefile,v 1.114 2022/11/04 18:34:09 adam Exp $
 #
 # Changelog: https://hypothesis.readthedocs.io/en/latest/changes.html
 
 DISTNAME=      hypothesis-6.56.4
+PKGREVISION=   1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/hypothesis/}
@@ -19,13 +20,16 @@ USE_LANGUAGES=      # none
 
 USE_PKG_RESOURCES=     yes
 
-# https://github.com/HypothesisWorks/hypothesis/issues/3500
-PYTHON_VERSIONS_INCOMPATIBLE=  27 37
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} != 311
 DEPENDS+=      ${PYPKGPREFIX}-exceptiongroup>=1.0.0:../../devel/py-exceptiongroup
 .endif
 
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} hypothesis hypothesis-${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-hypothesis/PLIST
diff -u pkgsrc/devel/py-hypothesis/PLIST:1.37 pkgsrc/devel/py-hypothesis/PLIST:1.38
--- pkgsrc/devel/py-hypothesis/PLIST:1.37       Tue Oct 25 09:08:45 2022
+++ pkgsrc/devel/py-hypothesis/PLIST    Fri Nov  4 18:34:09 2022
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.37 2022/10/25 09:08:45 adam Exp $
-bin/hypothesis
+@comment $NetBSD: PLIST,v 1.38 2022/11/04 18:34:09 adam Exp $
+bin/hypothesis-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt

Index: pkgsrc/devel/py-hypothesis/distinfo
diff -u pkgsrc/devel/py-hypothesis/distinfo:1.109 pkgsrc/devel/py-hypothesis/distinfo:1.110
--- pkgsrc/devel/py-hypothesis/distinfo:1.109   Thu Nov  3 10:43:03 2022
+++ pkgsrc/devel/py-hypothesis/distinfo Fri Nov  4 18:34:09 2022
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.109 2022/11/03 10:43:03 adam Exp $
+$NetBSD: distinfo,v 1.110 2022/11/04 18:34:09 adam Exp $
 
 BLAKE2s (hypothesis-6.56.4.tar.gz) = 34cc00172c0a88f85ea6699233c16af1e7b7b0ab1318ce91e109e789713a737d
 SHA512 (hypothesis-6.56.4.tar.gz) = 7ca2a1e677444f3073e3ebf8a4c39039636f92b51f28f4b296998a6d10cde3ff9321c0d9ee7ff6d5748f3cf4b196bbf795cb5f3e5bd78585b6dc34af5587fe97
 Size (hypothesis-6.56.4.tar.gz) = 333424 bytes
+SHA1 (patch-src_hypothesis_extra_array__api.py) = 788a333566cf2d8b800ad43e2b6583f31ff04597

Added files:

Index: pkgsrc/devel/py-hypothesis/patches/patch-src_hypothesis_extra_array__api.py
diff -u /dev/null pkgsrc/devel/py-hypothesis/patches/patch-src_hypothesis_extra_array__api.py:1.1
--- /dev/null   Fri Nov  4 18:34:10 2022
+++ pkgsrc/devel/py-hypothesis/patches/patch-src_hypothesis_extra_array__api.py Fri Nov  4 18:34:09 2022
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_hypothesis_extra_array__api.py,v 1.1 2022/11/04 18:34:09 adam Exp $
+
+Fix build for Python 3.7.
+https://github.com/HypothesisWorks/hypothesis/issues/3500
+
+--- src/hypothesis/extra/array_api.py.orig     2022-11-04 18:29:04.000000000 +0000
++++ src/hypothesis/extra/array_api.py
+@@ -902,7 +902,7 @@ def make_strategies_namespace(
+         check_argument(
+             isinstance(xp.__array_api_version__, str)
+             and xp.__array_api_version__ in RELEASED_VERSIONS,
+-            f"{xp.__array_api_version__=}, but xp.__array_api_version__ must "
++            f"{xp.__array_api_version__}, but xp.__array_api_version__ must "
+             f"be a valid version string {RELEASED_VERSIONS}. {not_available_msg}",
+         )
+         api_version = xp.__array_api_version__
+@@ -910,7 +910,7 @@ def make_strategies_namespace(
+     else:
+         check_argument(
+             isinstance(api_version, str) and api_version in NOMINAL_VERSIONS,
+-            f"{api_version=}, but api_version must be None, or a valid version "
++            f"{api_version}, but api_version must be None, or a valid version "
+             f"string {RELEASED_VERSIONS}. {not_available_msg}",
+         )
+         inferred_version = False



Home | Main Index | Thread Index | Old Index