pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-greenlet
Module Name: pkgsrc
Committed By: adam
Date: Wed Mar 3 18:05:02 UTC 2021
Modified Files:
pkgsrc/devel/py-greenlet: Makefile PLIST distinfo
Added Files:
pkgsrc/devel/py-greenlet/patches:
patch-src_greenlet_slp__platformselect.h
Removed Files:
pkgsrc/devel/py-greenlet/patches: patch-slp__platformselect.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/py-greenlet/Makefile \
pkgsrc/devel/py-greenlet/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-greenlet/PLIST
cvs rdiff -u -r1.1 -r0 \
pkgsrc/devel/py-greenlet/patches/patch-slp__platformselect.h
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h
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-greenlet/Makefile
diff -u pkgsrc/devel/py-greenlet/Makefile:1.10 pkgsrc/devel/py-greenlet/Makefile:1.11
--- pkgsrc/devel/py-greenlet/Makefile:1.10 Tue Sep 29 16:58:01 2020
+++ pkgsrc/devel/py-greenlet/Makefile Wed Mar 3 18:05:01 2021
@@ -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"
Index: pkgsrc/devel/py-greenlet/distinfo
diff -u pkgsrc/devel/py-greenlet/distinfo:1.10 pkgsrc/devel/py-greenlet/distinfo:1.11
--- pkgsrc/devel/py-greenlet/distinfo:1.10 Tue Sep 29 16:58:01 2020
+++ pkgsrc/devel/py-greenlet/distinfo Wed Mar 3 18:05:01 2021
@@ -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
Index: pkgsrc/devel/py-greenlet/PLIST
diff -u pkgsrc/devel/py-greenlet/PLIST:1.1 pkgsrc/devel/py-greenlet/PLIST:1.2
--- pkgsrc/devel/py-greenlet/PLIST:1.1 Tue Dec 31 17:59:08 2013
+++ pkgsrc/devel/py-greenlet/PLIST Wed Mar 3 18:05:01 2021
@@ -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
Added files:
Index: pkgsrc/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h
diff -u /dev/null pkgsrc/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h:1.1
--- /dev/null Wed Mar 3 18:05:02 2021
+++ pkgsrc/devel/py-greenlet/patches/patch-src_greenlet_slp__platformselect.h Wed Mar 3 18:05:02 2021
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_greenlet_slp__platformselect.h,v 1.1 2021/03/03 18:05:02 adam Exp $
+
+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__)
++#include "platform/switch_ppc_unix.h" /* gcc on NetBSD/powerpc */
+ #elif defined(__GNUC__) && defined(sparc)
+ #include "platform/switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */
+ #elif defined(__SUNPRO_C) && defined(sparc) && defined(sun)
Home |
Main Index |
Thread Index |
Old Index