-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-hiredis to version 2.2.2 / rev 8 via SR 1072863
https://build.opensuse.org/request/show/1072863 by user mcepl + dimstar_suse - Update to 2.2.2: - Reverting gcc -BSymbolic due to symbol collisions - Add pack_command to support writing via hiredis-py - Fixing broken windows builds on python < 3.8 - Fix url in Issue tracker - Restores publishing of source distribution - Supporting hiredis 1.1.0 - Modernizing: Restoring CI, Moving to pytest - Adding LICENSE to Repository - Python 3.11 trove, and links back to the project - Integrating release drafter - Implement pack_command that serializes redis-py command to the RESP bytes object. - Add 159-sdsalloc-to-alloc.patch (gh#redis/hiredis-py#158), which replaces use of sdsalloc with plain alloc.
- Loading branch information
1 parent
72eff9c
commit 5ee9cae
Showing
9 changed files
with
138 additions
and
39 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From c2a20695aae53de7b5160e29675344df0b805fa6 Mon Sep 17 00:00:00 2001 | ||
From: Maxim Cournoyer <maxim.cournoyer@gmail.com> | ||
Date: Sat, 18 Mar 2023 15:18:08 -0400 | ||
Subject: [PATCH] pack: Replace sdsalloc.h with alloc.h | ||
|
||
Fixes #158. | ||
|
||
* src/pack.c: Replace sdsalloc.h with alloc.h. | ||
(pack_command): Replace s_malloc with hi_malloc. | ||
--- | ||
src/pack.c | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/src/pack.c b/src/pack.c | ||
index 443e9d3..23e4004 100644 | ||
--- a/src/pack.c | ||
+++ b/src/pack.c | ||
@@ -16,7 +16,7 @@ extern sds sdscpylen(sds s, const char *t, size_t len); | ||
extern sds sdsnewlen(const void *init, size_t initlen); | ||
#endif | ||
|
||
-#include <hiredis/sdsalloc.h> | ||
+#include <hiredis/alloc.h> | ||
|
||
PyObject * | ||
pack_command(PyObject *cmd) | ||
@@ -32,7 +32,7 @@ pack_command(PyObject *cmd) | ||
} | ||
|
||
Py_ssize_t tokens_number = PyTuple_Size(cmd); | ||
- sds *tokens = s_malloc(sizeof(sds) * tokens_number); | ||
+ sds *tokens = hi_malloc(sizeof(sds) * tokens_number); | ||
if (tokens == NULL) | ||
{ | ||
return PyErr_NoMemory(); | ||
@@ -118,4 +118,4 @@ pack_command(PyObject *cmd) | ||
sdsfreesplitres(tokens, tokens_number); | ||
hi_free(lengths); | ||
return result; | ||
-} | ||
\ No newline at end of file | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
--- | ||
setup.py | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
setup.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
--- a/setup.py 2022-01-15 16:32:39.379711369 +0100 | ||
+++ b/setup.py 2022-01-15 16:33:03.091710944 +0100 | ||
@@ -11,8 +11,7 @@ def version(): | ||
return module.__version__ | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -19,7 +19,7 @@ def version(): | ||
|
||
ext = Extension("hiredis.hiredis", | ||
- sources=sorted(glob.glob("src/*.c") + | ||
- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", "sds")]), | ||
+ sources=sorted(glob.glob("src/*.c")), | ||
extra_link_args=["-lhiredis"]) | ||
def get_sources(): | ||
hiredis_sources = ("alloc", "async", "hiredis", "net", "read", "sds", "sockcompat") | ||
- return sorted(glob.glob("src/*.c") + ["vendor/hiredis/%s.c" % src for src in hiredis_sources]) | ||
+ return sorted(glob.glob("src/*.c")) | ||
|
||
setup( | ||
|
||
def get_linker_args(): |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/ipfs/bafkreie4e4f5avt2trqgomue4aabgl3aho2ozpgxa5lhmr5gr6c66roe2q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters