Skip to content

Commit

Permalink
Alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Apr 22, 2024
1 parent dd35fe7 commit 2751459
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
|test-status| |downloads|

Liburing (Work in progress ... )
================================
Liburing
========

Liburing is Python + Cython wrapper around `C Liburing`_, which is a helper to setup and tear-down io_uring instances.

Expand All @@ -24,7 +24,7 @@ Requires
Includes (battery)
------------------

- C liburing 2.6+
- C liburing 2.5+


Install, update & uninstall (Alpha)
Expand Down Expand Up @@ -165,6 +165,7 @@ Cython Note

TODO
----
- Stable Release (currently still in alpha)
- Linux 6.1 Backwards compatibility.


Expand Down
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def build_extensions(self):
Options.fast_fail = True
Options.docstrings = True
Options.warning_errors = False

try:
lib = join(tmpdir, 'libs/liburing')
libsrc = join(lib, 'src')
Expand All @@ -63,11 +64,9 @@ def build_extensions(self):
setup(cmdclass={'build_ext': BuildExt},
ext_modules=cythonize(extension,
nthreads=threads,
compiler_directives={
'embedsignature': True, # show all `__doc__`
'boundscheck': False,
'wraparound': False,
'language_level': 3,
'show_performance_hints': False}))
compiler_directives={'embedsignature': True, # show `__doc__`
'boundscheck': False,
'wraparound': False,
'language_level': 3}))
finally:
rmtree(tmpdir)
6 changes: 3 additions & 3 deletions src/liburing/queue.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ cdef class io_uring:

cdef class io_uring_sqe:
cdef:
__io_uring_sqe* ptr
__u16 len
list[io_uring_sqe] ref
__io_uring_sqe* ptr
__u16 len
list[object] ref


cdef class io_uring_cqe:
Expand Down
4 changes: 2 additions & 2 deletions src/liburing/queue.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ cdef class io_uring_cqe:

Example
>>> index = 1
>>> cqe.get_result(index)
>>> cqe.get_index(index)
(0, 123)

Note
- Just like `__getitem__` but faster and no error checking!
- Just like `__getitem__` but faster!
'''
if self.active or self.ptr is not NULL:
if index == 0:
Expand Down

0 comments on commit 2751459

Please sign in to comment.