Suzhou-Tongyuan / jnumpy

Writing Python C extensions in Julia within 5 minutes.
MIT License
234 stars 8 forks source link

Import some PyCapsule related Python C API #70

Closed songjhaha closed 2 years ago

songjhaha commented 2 years ago

Could be used in some packages like https://github.com/pabloferz/DLPack.jl

codecov-commenter commented 2 years ago

Codecov Report

Merging #70 (2041183) into main (c426a07) will decrease coverage by 1.70%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   60.76%   59.05%   -1.71%     
==========================================
  Files          11       11              
  Lines         915      872      -43     
==========================================
- Hits          556      515      -41     
+ Misses        359      357       -2     
Impacted Files Coverage Δ
TyPython/src/CPython.APIs.jl 49.54% <ø> (-3.00%) :arrow_down:
TyPython/src/C.jl 50.00% <0.00%> (-7.15%) :arrow_down:
TyPython/src/CPython.jl 52.94% <0.00%> (-2.33%) :arrow_down:
TyPython/src/CPython.Defs.jl 15.90% <0.00%> (-1.87%) :arrow_down:
TyPython/src/CPython.Boot.jl 70.21% <0.00%> (-0.63%) :arrow_down:
TyPython/src/CPython.Julia.jl 94.87% <0.00%> (-0.59%) :arrow_down:
TyPython/src/CPython.ORM.jl 97.79% <0.00%> (-0.14%) :arrow_down:
TyPython/src/CPython.NumPy.jl 92.59% <0.00%> (+0.82%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

songjhaha commented 2 years ago

fine, but do they have error code?

nope, but I want to do some easy work to make it support TyPython