Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

HPy

HPy: a better API for Python
Collective - Host: opensource - https://opencollective.com/hpy - Website: https://hpyproject.org/ - Code: https://github.com/hpyproject/hpy

Merge pull request #228 from hpyproject/antocuni/hpyfield

Introduce HPyField

github.com/hpyproject/hpy - 3553819f56c6df47d3e292f25d7770b8ae57e50e authored over 3 years ago
Merge pull request #234 from steve-s/ss/as-utf8-and-size

Add HPyUnicode_AsUTF8AndSize, HPyUnicode_DecodeFSDefault and "s" support in HPyArg_Parse

github.com/hpyproject/hpy - 8fe1487e351bf72919ad58f57ea5d52cf19da78e authored over 3 years ago
Assert error message in test_argparse.test_s

github.com/hpyproject/hpy - 3f9a6cecc4383f41d02262eef5aa5d3daf1d6194 authored over 3 years ago
Improve argparse 's' format docs, check for NULL result of AsUTF8AndSize

github.com/hpyproject/hpy - 5b1d5af3d6b30c7338c055af15225c6c29792f95 authored over 3 years ago
Specify that tp_traverse might not be called

github.com/hpyproject/hpy - 5bbd6d83f7675277ddc90f0ff148df4b8b6a9156 authored over 3 years ago
Merge pull request #233 from rlamy/fix

Remove unnecessary include of Python.h

github.com/hpyproject/hpy - 33207b6773fe68a182bbc1dfe08ff2018d4701a6 authored over 3 years ago
Add HPyUnicode_DecodeFSDefault

github.com/hpyproject/hpy - afa442b9c8677f5557883c8ec43172746075275e authored over 3 years ago
(antocuni, arigo freezing): add a microbench which shows that pypy is much slower than cpython at allocating hpy objects :(

github.com/hpyproject/hpy - 93b2dc6692052b000375ef690c74a2e4254a138f authored over 3 years ago
Remove unnecessary include of Python.h

github.com/hpyproject/hpy - b2cfe3caddfd737bc53f951f6c61080ea623fe56 authored over 3 years ago
Add HPyUnicode_AsUTF8AndSize and support for 's' in HPyArg_Parse

github.com/hpyproject/hpy - a70080a6d5b8037fef67fea89f6c9d2c2ec1763a authored over 3 years ago
Merge pull request #232 from rlamy/test-HPyModule_Create

Add a test for HPyModule_Create

github.com/hpyproject/hpy - 9ac39d9dafad3c2ed4e377673a23ce7a857937b2 authored over 3 years ago
skip these tests on non-CPython

github.com/hpyproject/hpy - f5b495a40777e904e9ba501c841f5465570feffc authored over 3 years ago
Add test for HPyModule_Create (from pypy)

github.com/hpyproject/hpy - 5c31f0f9764eeddd1c147015a6a3bbd7db22763a authored over 3 years ago
(antocuni, arigo, ronan): fix two memory leaks: you need to implement tp_traverse else the fields will be never be deallocated

github.com/hpyproject/hpy - 4092b5bd444e30eb5e9dace935a9a886407eec9b authored over 3 years ago
(antocuni, arigo): automatically implement tp_clear as soon as you provide a tp_traverse

github.com/hpyproject/hpy - e892eef6b83690d79616f49a4f624357cadfcb97 authored over 3 years ago
(antocuni, arigo) we can't use this in a static initializer on windows. Too bad, let's just put a dummy function instead

github.com/hpyproject/hpy - 1bde3d34a2232153e94bcd16e2fa251c328cbbd1 authored over 3 years ago
(antocuni, arigo, ronan): if we subclass an HPyType, the subclass won't have the EXTRA attached. Fix it

github.com/hpyproject/hpy - 53bdc8537b65421d58fb35a7c708e2b25c775e5b authored over 3 years ago
mention GraalPython as well

github.com/hpyproject/hpy - b5da385834ef62dab2210f9d7efab82296d0cde2 authored over 3 years ago
(antocuni, arigo)

Call tp_traverse from dealloc to find and decref all references

github.com/hpyproject/hpy - 912e863aa983a8f1a5e2580844448c6be78aaa15 authored over 3 years ago
(antocuni, arigo)

Fix test_refcount: it's a heaptype, so dealloc must decref the type too

github.com/hpyproject/hpy - 757ae164cb635fa8b25a72d5e890a5df9ff8e63c authored over 3 years ago
(ronan, antocuni, arigo)

make tp_traverse low-level by not passing it a context nor a handle. For example, PyPy's GC wil...

github.com/hpyproject/hpy - 95cbdf7569acc85021f2cc2923bf08f88d6dc64e authored over 3 years ago
(ronan, antocuni, arigo)

kill CallDestroyAndThenDealloc and use a different approach to implement tp_dealloc. The future...

github.com/hpyproject/hpy - c94a5e49e1056cd9aaa984ae9b24c22080c4527e authored over 3 years ago
(antocuni, arigo, ronan): after a lot of discussion, we concluded that GC-aware implementations need (or may need) write and/or read barriers, so we need to pass the object as well

github.com/hpyproject/hpy - 1580c13256568ac663bfeb77ff74d698afbfde96 authored over 3 years ago
(antocuni, arigo): calling 'in gc.get_objects()' causes problems because some types raise AssertionError in their __eq__. Also, it's not strictly needed since the gc.is_tracked() check is enough for our purposes

github.com/hpyproject/hpy - f193b42d55d12cbd08e84de1fbfa93f4beeb9ded authored over 3 years ago
Apply suggestions from code review

Co-authored-by: Simon Cross <[email protected]>

github.com/hpyproject/hpy - 08e18f6c530cf886b8c24fcbc0aa0a041626c44c authored over 3 years ago
Exclude debug/test_handles.py from check_py27_compat.py

It's now meant to be an apptest in pypy, so only imported under py3.

github.com/hpyproject/hpy - 6b0d2f0411d5fa1b386cf550bc49bf8e1aa99980 authored over 3 years ago
Run LeakDetector iff hpy_abi=='debug'

github.com/hpyproject/hpy - 8ad1e1d3a7c73fd3021e5716fe9db9d1dd59edbd authored over 3 years ago
Test py2 compatibility in test/debug/ as well

github.com/hpyproject/hpy - 3e2297476832d541ebdd601eebc084cd9dace7d9 authored over 3 years ago
add a note explaining the semantics of HPyField_Store

github.com/hpyproject/hpy - f6553f79d442b2a732973351858599d761bba281 authored over 3 years ago
we no longer need HPyField_Clear, we can just use HPyField_Store(..., HPy_NULL)

github.com/hpyproject/hpy - cefbc0ee8f222a71a331bcd9ca4ae03dedf687a2 authored over 3 years ago
WIP: resolve one of the open questions, and redesign HPyField_Store: now you need to pass it an HPyField*, and HPyField_Store will take care of decref it if needed

github.com/hpyproject/hpy - 268438ab6f7a7a12825772365dd31ad160644bac authored over 3 years ago
add more info about HPyField

github.com/hpyproject/hpy - dffc92a7ca40ca08d7f2006f5b6127545178b293 authored over 3 years ago
add a section about HPyField

github.com/hpyproject/hpy - 5ff7f73d0e27332e7806131d5b244fbc41c05c40 authored over 3 years ago
Introduce HPy_TPFLAGS_HAVE_GC.

The original idea was to deduce it automatically based on the presence of
tp_traverse, but this ...

github.com/hpyproject/hpy - c9717a66c8469524cc4269368052bab5c2e4ea08 authored over 3 years ago
resolve an XXX: call PyObject_GC_Track when needed, and add a test

github.com/hpyproject/hpy - e195b89b8f777101832dc251d4e5175c6eef4917 authored over 3 years ago
use Py_FatalError instead of abort, it's easier to debug

github.com/hpyproject/hpy - cafd722daaf47c7c49166f6efb9d6104ddfdd80d authored over 3 years ago
implement tp_traverse for the debug mode

github.com/hpyproject/hpy - 887344a2292af117950413490c65213c01cecad5 authored over 3 years ago
move call_traverseproc_from_trampoline to ctx_type.c, so that it can be shared between CPython and Universal, and use it to fix test_tp_traverse[cpython]

github.com/hpyproject/hpy - 0035121cfd7786c106a273d15e937ead5343ae9f authored over 3 years ago
ouch, this was a bad bug. Our test suite is good enough to find it, though :)

github.com/hpyproject/hpy - 9408994d90e03af889d8af43e205089f6cd5c512 authored over 3 years ago
Introduce a small helper _HPy_PyObject_Payload, to avoid having to add _HPy_PyObject_HEAD_SIZE manually in multiple places

github.com/hpyproject/hpy - 3d962fd39a29347be2e6816d11d69dfae7fabd7c authored over 3 years ago
guarantee that HPy_New initializes the memory to 0

github.com/hpyproject/hpy - 3200010beb66ea7dd2b02fa390aa1f34db366288 authored over 3 years ago
introduce _py2hf and _hf2py and use them to convert to and from HPyField, instead of having to mess with ._i manually

github.com/hpyproject/hpy - 17ee3873d870e0d7a90fa298532dc6b2f17b5f2e authored over 3 years ago
kill outdated comment. We have decided long ago that _py2h and _h2py are used a bit everywhere

github.com/hpyproject/hpy - 90fa3b9fd91bc5f7ba439f64c9bba167c0e2404d authored over 3 years ago
introduce HPy_VISIT, similar to Py_VISIT

github.com/hpyproject/hpy - 608dbc36d35bfb697c7b8512c3483bae04b347a1 authored over 3 years ago
Implement support for HPy_tp_traverse.

It is tricker than usual because we need to put a lot of logic to convert the
CPython-provided v...

github.com/hpyproject/hpy - 39a45e973f293f4f74258c08ad14cfd2eb38fa5d authored over 3 years ago
implement HPyField_Clear

github.com/hpyproject/hpy - 542a51e25463b718a55153ca132ac7e09923394f authored over 3 years ago
refactor to use an ExtensionTemplate, which will be useful for next tests

github.com/hpyproject/hpy - 73a591f6ec949af65a6ef23148abf75f5c63d86f authored over 3 years ago
forgot to add this file

github.com/hpyproject/hpy - 38cc5ad4526bebfac7d7bd94bdf0ab47e3af9abe authored over 3 years ago
implement HPyField_{Load,Store} for the CPython ABI

github.com/hpyproject/hpy - b678b722b198ea34a097d533cb4cee05b9fd82ba authored over 3 years ago
Introduce HPyField/HPyField_Load/HPyField_Store, write the first test and make it passing in [universal] mode

github.com/hpyproject/hpy - 0179fb3c1dac6abe6b35155d30f8f582e2e58b15 authored over 3 years ago
Merge pull request #227 from hpyproject/feature/add-function-macro-api-docs

Add function macro API docs

github.com/hpyproject/hpy - 7d457b4d6fa21a33c67b0aaa3bfc5582784fb051 authored over 3 years ago
Improve function macro documentation formatting.

github.com/hpyproject/hpy - cf41df4a81442f60738c83606f1781a8279806ef authored over 3 years ago
Add sphinx_rtd_theme as an extension (since it is installed).

github.com/hpyproject/hpy - 8b53ab718a0a1b4df36792c3d2068be47d0943ea authored over 3 years ago
Update c_autodoc_roots for refactored headers.

github.com/hpyproject/hpy - af330461a901bcd784a7e42792005df1df981d2b authored over 3 years ago
Fix docutils to 0.16 (later versions don't render bullet lists).

github.com/hpyproject/hpy - 0aa3667101fc5bb46c25f904d69bc1032835cbe0 authored over 3 years ago
Merge branch 'master' into feature/add-function-macro-api-docs

github.com/hpyproject/hpy - 2ab1da13c22847233e1170ba3368d69cfb8bdc33 authored over 3 years ago
Merge pull request #225 from hpyproject/antocuni/refactor-headers

Refactor and simplify the headers in hpy/devel/include

github.com/hpyproject/hpy - da2cefc422eb66ced05d6b4c020f0ffb1920781e authored over 3 years ago
Add API documentation for function macros.

github.com/hpyproject/hpy - 9e01b23ca0b970910636d7b7ddfc457455739a34 authored over 3 years ago
introduce HPyAPI_HELPER and explain the difference and intended behavior of all the HPyAPI_* variants

github.com/hpyproject/hpy - 195be067088b9bef8d6c2971114b587a4bb958a0 authored over 3 years ago
add a comment

github.com/hpyproject/hpy - 01eaf4a4e00fb8deebf9567cde381d0606ca364b authored over 3 years ago
this comment was confusing because it looked like it applies to all includes

github.com/hpyproject/hpy - 9dd30240456abe5b1d9eb489dd0d2f9a5784c9a4 authored over 3 years ago
use the proper HPyAPI_FUNC macro for the autogen trampolines

github.com/hpyproject/hpy - c5f6446f7f29536ef2396983b98e586c766109bb authored over 3 years ago
Kill HPyAPI_STORAGE and unify the CPython and Universal cases.

Having two different definitions of HPyAPI_STORAGE was useful when
implementation.h was shared b...

github.com/hpyproject/hpy - ac9afb605dc4b412c3d9df9407af57e398c8c8bb authored over 3 years ago
kill two unnecessary includes

github.com/hpyproject/hpy - 08d9f8225d8194a7b4168fa1fb159e109ce614ba authored over 3 years ago
actually git rm implementation.h, now that it's no longer used

github.com/hpyproject/hpy - d623785639bb5846da7103c48ad2863f95e090b7 authored over 3 years ago
give up on -Wfatal-errors, but leave it as a comment so that it's easier to turn it on temporarly when needed

github.com/hpyproject/hpy - 943a253cca7d54cb3bb309f03fe370508a9efb79 authored over 3 years ago
we can't use -Werros because the GCC version used by azure pipelines fails with it

github.com/hpyproject/hpy - 5d2c56611a1b558f4a4e4eee97b694ae44b29aab authored over 3 years ago
fix this hpy/tools/test_autogen.py. It seems it has been broken for a while, we should run these tests in CI :(

github.com/hpyproject/hpy - b937de0c390e4e8eb3fb4af6374e70cc88a2d670 authored over 3 years ago
Kill implementation.h and autogen_impl.h, final step.

We can finally kill the ugly _HPy_IMPL_NAME / _HPy_IMPL_NAME_NOPREFIX
hack. Instead of relying o...

github.com/hpyproject/hpy - f84b353cb7fd7cf9fb542794c9d2aee4f993793f authored over 3 years ago
kill implementation.h, step 3: move ctx_Err_Occurred to its own file

github.com/hpyproject/hpy - 433ee201be077aac837c325a8754a52420c77413 authored over 3 years ago
kill implementation.h, step 2: move ctx_Bytes_FromStringAndSize to its own file

github.com/hpyproject/hpy - d4e2370911b666cfd6b80148714bb656d8d8e618 authored over 3 years ago
move all the prototypes of ctx_* functions inside ctx_funcs.h, instead of having a zillion of different files, each one containing only one or two prototypes

github.com/hpyproject/hpy - 1869cc5d41e11a73d902846e9fb9e8b8e5038147 authored over 3 years ago
Start to kill implementation.h, step 1.

The current way to implement things like HPy_SetItem_i&co. is overly
complicated: we try to reus...

github.com/hpyproject/hpy - 8a3091d3f3a63d8ecfff131e116e4d7cb77909e4 authored over 3 years ago
introduce _HPy_UNUNSED and move the definition of HPyAPI_{STORAGE,FUNC} in hpy.h. More refactoring needed

github.com/hpyproject/hpy - fcbe72e3972eefae2a45d595a23a0dae9096e5be authored over 3 years ago
Kill HPy_API_RUNTIME_FUNC.

When it was introduced, it was meant to be different in cpython and universal
cases. But:

1) ...

github.com/hpyproject/hpy - b0fc14cbb1f4997e3e4f154b47163db8693c0598 authored over 3 years ago
update autogen with the new paths

github.com/hpyproject/hpy - 5860c584d84597e2cd4eb0f650b4b7c922670566 authored over 3 years ago
rename the old cpython/hpy.h into misc.h, so that we have only one hpy.h and avoid confusion

github.com/hpyproject/hpy - 1e26c07ceaec200ff1af86725e985ce96bb9dddd authored over 3 years ago
the old universal/hpy.h is mostly empty now, rename it accordingly

github.com/hpyproject/hpy - 9ccfe18b6c34824677fb092ed6e7a84923a3d302 authored over 3 years ago
move all the #includes to the main hpy.h file

github.com/hpyproject/hpy - fc88df68e9268e748c807715d2ec69d1e25211c5 authored over 3 years ago
move the declaration of HPyContext to the main hpy.h

github.com/hpyproject/hpy - b1b436cee41ca097c3c677f62435a0ac1e4f8488 authored over 3 years ago
unify HPy_{From,As}VoidP and add a test for them

github.com/hpyproject/hpy - 30b396a5997a7ef8d765f07da34be7782937e666 authored over 3 years ago
unify the definition of the HPy type and similar

github.com/hpyproject/hpy - b19167a47312e5d74d95127f613ed2209295ee7e authored over 3 years ago
start to reduce code duplication and factor out common #defines from universal/*.h and cpython/*.h

github.com/hpyproject/hpy - ee6707e416b31482a3b112945b800a21af05057f authored over 3 years ago
fix hpy/universal/src

github.com/hpyproject/hpy - 2ecb1f74ade503d3d460a39902f3066f1435aee2 authored over 3 years ago
WIP: fix [cpython] headers

github.com/hpyproject/hpy - 75abc43aab11bbb401503009cefef2e6f5efd3cf authored over 3 years ago
WIP: fix universal headers

github.com/hpyproject/hpy - efc5e10cd6cc8740e315c02039d3d534d95d8cae authored over 3 years ago
WIP: start to move .h files around

github.com/hpyproject/hpy - a96d7aaa602a03b538d9b243ba58bc4c826dd049 authored over 3 years ago
Merge pull request #211 from mattip/example

MAINT: fix docs/examples for newer API

github.com/hpyproject/hpy - 7b45ce522c7bea265f50bb9d9cd04d651f84fa74 authored over 3 years ago
Merge branch 'master' of github.com:hpyproject/hpy

github.com/hpyproject/hpy - 127fe72914336193ddf40b5f51d94ee11c9b8a0f authored over 3 years ago
manually merge release/0.0.2 and fix the conflicts, which were mostly caused by HPyContext vs HPyContext*

github.com/hpyproject/hpy - 6a8b774f6e83b5cfe5b0ca26ec51da3b69ef48da authored over 3 years ago
add info about author, license and url

github.com/hpyproject/hpy - c50bc618246bd49e08fda0bbd334ac9933eeff8d authored over 3 years ago
Merge pull request #222 from wgwz/patch-1

Update IRC server in README.

github.com/hpyproject/hpy - cac5d022c686dcb88a81f01cb07508f99bd93799 authored over 3 years ago
Update IRC server

github.com/hpyproject/hpy - 8c9c08f61463d03638657f747f76359ba469eb6c authored over 3 years ago
Merge pull request #221 from hpyproject/antocuni/fix-docs-clang

Add clang support to build the docs on ubuntu 20.04

github.com/hpyproject/hpy - 81f2273419e07742ad1e0b959f5d1c0245889d26 authored over 3 years ago
try a simpler solution: it is enough to apt install libclang-10-dev

github.com/hpyproject/hpy - 47a86d271074fe961041f7375c34322aba485899 authored over 3 years ago
we cannot build the docs if we don't find libclang*.so. This hack seems to be enough to make it working on my machine

github.com/hpyproject/hpy - 0b491cc7836b2e3c13f82c977eea9fd1eb1f89af authored over 3 years ago
hpy.devel is imported also by pypy tests on top of py27, where sys.implementation does not exist. Take this into account

github.com/hpyproject/hpy - bf4ee1edc1eeec7cc65071cb7a7680986537d3b2 authored over 3 years ago