summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2021-03-03 18:05:01 +0000
committeradam <adam@pkgsrc.org>2021-03-03 18:05:01 +0000
commit5cf9fb03df1624519d9804cd8ce1599a6066a55c (patch)
treee563a04f042f97cef2c50b0da8dd27121abf7227 /devel
parent8497a4f6369f55b99ce6fd73ee3f5ba8b00670f5 (diff)
downloadpkgsrc-5cf9fb03df1624519d9804cd8ce1599a6066a55c.tar.gz
py-greenlet: updated to 1.0.0
1.0.0 (2021-01-13) Fix %s and %r formatting of a greenlet on Python 2. Previously it would result in a Unicode string instead of a native string. See issue 218. Move continuous integration from Travis CI to Github Actions. 1.0a1 (2020-11-20) Add the ability to set a greenlet's PEP 567 contextvars context directly, by assigning to the greenlet's gr_context attribute. This restores support for some patterns of using greenlets atop an async environment that became more challenging in 0.4.17. Thanks to Joshua Oreman, Mike bayer, and Fantix King, among others. See PR 198. The repr of greenlet objects now includes extra information about its state. This is purely informative and the details are subject to change. See issue 215. The greenlet module is now a package. There are no API changes, so all existing imports, including from C code, should continue to work. (C API) The undocumented GREENLET_VERSION macro that defined a string giving the greenlet version is now deprecated and will not be updated. (Documentation) Publish the change log to https://greenlet.readthedocs.io Supported Platforms Drop support for Python 2.4, 2.5, 2.6, 3.0, 3.1, 3.2 and 3.4. The project metadata now includes the python_requires data to help installation tools understand supported versions. Add partial support for AIX ppc64 and IBM i. Thanks to Jesse Gorzinski and Kevin Adler. See PR 197. Packaging Changes Require setuptools to build from source. Stop asking setuptools to build both .tar.gz and .zip sdists. PyPI has standardized on .tar.gz for all platforms. Stop using a custom distutils command to build extensions. distutils is deprecated. Remove the ability to use the deprecated command python setup.py test. Run greenlet tests with your favorite unittest-compatible test runner, e.g., python -m unittest discover greenlet.tests. See issue 185. The directory layout and resulting sdists have changed. See issue 184. greenlet is now always built with support for tracing and garbage collection, and, on Python 3.7 and above, support for context variables. The internal and undocumented C preprocessor macros that could be used to alter that at compile time have been removed (no combination other than the defaults was ever tested). This helps define a stable ABI.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-greenlet/Makefile9
-rw-r--r--devel/py-greenlet/PLIST87
-rw-r--r--devel/py-greenlet/distinfo12
-rw-r--r--devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h (renamed from devel/py-greenlet/patches/patch-slp__platformselect.h)12
4 files changed, 103 insertions, 17 deletions
diff --git a/devel/py-greenlet/Makefile b/devel/py-greenlet/Makefile
index 68226387ad9..c9993bdbd49 100644
--- a/devel/py-greenlet/Makefile
+++ b/devel/py-greenlet/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2020/09/29 16:58:01 adam Exp $
+# $NetBSD: Makefile,v 1.11 2021/03/03 18:05:01 adam Exp $
-DISTNAME= greenlet-0.4.17
+DISTNAME= greenlet-1.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/greenlet/}
@@ -12,5 +12,8 @@ LICENSE= mit
USE_LANGUAGES= c c++
-.include "../../lang/python/distutils.mk"
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m unittest discover greenlet.tests
+
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-greenlet/PLIST b/devel/py-greenlet/PLIST
index 9b4e4c12337..369caae7633 100644
--- a/devel/py-greenlet/PLIST
+++ b/devel/py-greenlet/PLIST
@@ -1,4 +1,85 @@
-@comment $NetBSD: PLIST,v 1.1 2013/12/31 17:59:08 rodent Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/03/03 18:05:01 adam Exp $
${PYINC}/greenlet/greenlet.h
-${PYSITELIB}/${EGG_FILE}
-${PYSITELIB}/greenlet.so
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/greenlet/__init__.py
+${PYSITELIB}/greenlet/__init__.pyc
+${PYSITELIB}/greenlet/__init__.pyo
+${PYSITELIB}/greenlet/_greenlet.so
+${PYSITELIB}/greenlet/greenlet.c
+${PYSITELIB}/greenlet/greenlet.h
+${PYSITELIB}/greenlet/platform/setup_switch_x64_masm.cmd
+${PYSITELIB}/greenlet/platform/switch_aarch64_gcc.h
+${PYSITELIB}/greenlet/platform/switch_alpha_unix.h
+${PYSITELIB}/greenlet/platform/switch_amd64_unix.h
+${PYSITELIB}/greenlet/platform/switch_arm32_gcc.h
+${PYSITELIB}/greenlet/platform/switch_arm32_ios.h
+${PYSITELIB}/greenlet/platform/switch_csky_gcc.h
+${PYSITELIB}/greenlet/platform/switch_m68k_gcc.h
+${PYSITELIB}/greenlet/platform/switch_mips_unix.h
+${PYSITELIB}/greenlet/platform/switch_ppc64_aix.h
+${PYSITELIB}/greenlet/platform/switch_ppc64_linux.h
+${PYSITELIB}/greenlet/platform/switch_ppc_aix.h
+${PYSITELIB}/greenlet/platform/switch_ppc_linux.h
+${PYSITELIB}/greenlet/platform/switch_ppc_macosx.h
+${PYSITELIB}/greenlet/platform/switch_ppc_unix.h
+${PYSITELIB}/greenlet/platform/switch_riscv_unix.h
+${PYSITELIB}/greenlet/platform/switch_s390_unix.h
+${PYSITELIB}/greenlet/platform/switch_sparc_sun_gcc.h
+${PYSITELIB}/greenlet/platform/switch_x32_unix.h
+${PYSITELIB}/greenlet/platform/switch_x64_masm.asm
+${PYSITELIB}/greenlet/platform/switch_x64_masm.obj
+${PYSITELIB}/greenlet/platform/switch_x64_msvc.h
+${PYSITELIB}/greenlet/platform/switch_x86_msvc.h
+${PYSITELIB}/greenlet/platform/switch_x86_unix.h
+${PYSITELIB}/greenlet/slp_platformselect.h
+${PYSITELIB}/greenlet/tests/__init__.py
+${PYSITELIB}/greenlet/tests/__init__.pyc
+${PYSITELIB}/greenlet/tests/__init__.pyo
+${PYSITELIB}/greenlet/tests/_test_extension.c
+${PYSITELIB}/greenlet/tests/_test_extension.so
+${PYSITELIB}/greenlet/tests/_test_extension_cpp.cpp
+${PYSITELIB}/greenlet/tests/_test_extension_cpp.so
+${PYSITELIB}/greenlet/tests/test_contextvars.py
+${PYSITELIB}/greenlet/tests/test_contextvars.pyc
+${PYSITELIB}/greenlet/tests/test_contextvars.pyo
+${PYSITELIB}/greenlet/tests/test_cpp.py
+${PYSITELIB}/greenlet/tests/test_cpp.pyc
+${PYSITELIB}/greenlet/tests/test_cpp.pyo
+${PYSITELIB}/greenlet/tests/test_extension_interface.py
+${PYSITELIB}/greenlet/tests/test_extension_interface.pyc
+${PYSITELIB}/greenlet/tests/test_extension_interface.pyo
+${PYSITELIB}/greenlet/tests/test_gc.py
+${PYSITELIB}/greenlet/tests/test_gc.pyc
+${PYSITELIB}/greenlet/tests/test_gc.pyo
+${PYSITELIB}/greenlet/tests/test_generator.py
+${PYSITELIB}/greenlet/tests/test_generator.pyc
+${PYSITELIB}/greenlet/tests/test_generator.pyo
+${PYSITELIB}/greenlet/tests/test_generator_nested.py
+${PYSITELIB}/greenlet/tests/test_generator_nested.pyc
+${PYSITELIB}/greenlet/tests/test_generator_nested.pyo
+${PYSITELIB}/greenlet/tests/test_greenlet.py
+${PYSITELIB}/greenlet/tests/test_greenlet.pyc
+${PYSITELIB}/greenlet/tests/test_greenlet.pyo
+${PYSITELIB}/greenlet/tests/test_leaks.py
+${PYSITELIB}/greenlet/tests/test_leaks.pyc
+${PYSITELIB}/greenlet/tests/test_leaks.pyo
+${PYSITELIB}/greenlet/tests/test_stack_saved.py
+${PYSITELIB}/greenlet/tests/test_stack_saved.pyc
+${PYSITELIB}/greenlet/tests/test_stack_saved.pyo
+${PYSITELIB}/greenlet/tests/test_throw.py
+${PYSITELIB}/greenlet/tests/test_throw.pyc
+${PYSITELIB}/greenlet/tests/test_throw.pyo
+${PYSITELIB}/greenlet/tests/test_tracing.py
+${PYSITELIB}/greenlet/tests/test_tracing.pyc
+${PYSITELIB}/greenlet/tests/test_tracing.pyo
+${PYSITELIB}/greenlet/tests/test_version.py
+${PYSITELIB}/greenlet/tests/test_version.pyc
+${PYSITELIB}/greenlet/tests/test_version.pyo
+${PYSITELIB}/greenlet/tests/test_weakref.py
+${PYSITELIB}/greenlet/tests/test_weakref.pyc
+${PYSITELIB}/greenlet/tests/test_weakref.pyo
diff --git a/devel/py-greenlet/distinfo b/devel/py-greenlet/distinfo
index 66784f7fbb7..00dc0050359 100644
--- a/devel/py-greenlet/distinfo
+++ b/devel/py-greenlet/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.10 2020/09/29 16:58:01 adam Exp $
+$NetBSD: distinfo,v 1.11 2021/03/03 18:05:01 adam Exp $
-SHA1 (greenlet-0.4.17.tar.gz) = 59d0c79e82ac60c3fe00179d355e34493aebae27
-RMD160 (greenlet-0.4.17.tar.gz) = c5117b311c0d42092b6d8b8435ce5d3a4f8fc890
-SHA512 (greenlet-0.4.17.tar.gz) = 41afd80a6cd5e9cf9c8149016f24d0944d2651288d50094ef04bb6759202903c436af639872d7aab631ed8fe13aad7d4405beb428415b198a3ba30a96d4bd3de
-Size (greenlet-0.4.17.tar.gz) = 61381 bytes
-SHA1 (patch-slp__platformselect.h) = 9df936439c29d8e824e8a17bdf9e687d3c2d8ecd
+SHA1 (greenlet-1.0.0.tar.gz) = cbaa75105b3d82ca4501c2febbbb3b1876d0961b
+RMD160 (greenlet-1.0.0.tar.gz) = 16a4315e81dbaab29ba15fba2a6ee4ff3f2ae035
+SHA512 (greenlet-1.0.0.tar.gz) = 7b615792c340e0eb8ca61bd09bde48ed15110d97254910bd8598312e15adb7267ba795e9e6b52f0998db27d8413d2e1aa9e977511c0d09cd3a5583b37475f882
+Size (greenlet-1.0.0.tar.gz) = 84525 bytes
+SHA1 (patch-src_greenlet_slp__platformselect.h) = ada2dd34b7fe0847526188aa9242e93732b4bc37
diff --git a/devel/py-greenlet/patches/patch-slp__platformselect.h b/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h
index 7aa0686ad94..f6cef44ce87 100644
--- a/devel/py-greenlet/patches/patch-slp__platformselect.h
+++ b/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h
@@ -1,9 +1,11 @@
-$NetBSD: patch-slp__platformselect.h,v 1.1 2017/07/11 17:31:16 he Exp $
+$NetBSD: patch-src_greenlet_slp__platformselect.h,v 1.1 2021/03/03 18:05:02 adam Exp $
---- slp_platformselect.h.orig 2016-12-10 23:52:06.000000000 +0000
-+++ slp_platformselect.h
-@@ -20,6 +20,8 @@
- #include "platform/switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */
+Support NetBSD/powerpc.
+
+--- src/greenlet/slp_platformselect.h.orig 2021-01-13 13:34:17.000000000 +0000
++++ src/greenlet/slp_platformselect.h
+@@ -22,6 +22,8 @@
+ #include "platform/switch_ppc64_aix.h" /* gcc on AIX/PowerPC 64-bit */
#elif defined(__GNUC__) && defined(_ARCH_PPC) && defined(_AIX)
#include "platform/switch_ppc_aix.h" /* gcc on AIX/PowerPC */
+#elif defined(__GNUC__) && defined(__powerpc__) && defined(__NetBSD__)