rencode 1.0.7__tar.gz → 1.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rencode-1.0.7 → rencode-1.0.8}/PKG-INFO +1 -3
- {rencode-1.0.7 → rencode-1.0.8}/build.py +2 -1
- {rencode-1.0.7 → rencode-1.0.8}/pyproject.toml +1 -4
- {rencode-1.0.7 → rencode-1.0.8}/rencode/_rencode.c +8 -8
- {rencode-1.0.7 → rencode-1.0.8}/rencode/_rencode.pyx +1 -1
- {rencode-1.0.7 → rencode-1.0.8}/rencode/rencode_orig.py +1 -1
- rencode-1.0.7/rencode/_rencode.html +0 -3402
- rencode-1.0.7/rencode/_rencode.pyx.perfimprovments +0 -613
- {rencode-1.0.7 → rencode-1.0.8}/COPYING +0 -0
- {rencode-1.0.7 → rencode-1.0.8}/rencode/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rencode
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.8
|
|
4
4
|
Summary: rencode is an object serialization library similar to bencode from the Bittorrent project.
|
|
5
5
|
License: GPLv3
|
|
6
6
|
Author: Andrew Resch
|
|
@@ -13,5 +13,3 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Dist: cython (>=3)
|
|
17
|
-
Requires-Dist: setuptools (>=80.4.0,<81.0.0)
|
|
@@ -47,7 +47,8 @@ def build() -> None:
|
|
|
47
47
|
for output in cmd.get_outputs():
|
|
48
48
|
output = Path(output)
|
|
49
49
|
relative_extension = output.relative_to(cmd.build_lib)
|
|
50
|
-
|
|
50
|
+
for so in relative_extension.parent.glob('*.so'):
|
|
51
|
+
so.unlink()
|
|
51
52
|
shutil.copyfile(output, relative_extension)
|
|
52
53
|
mode = os.stat(relative_extension).st_mode
|
|
53
54
|
mode |= (mode & 0o444) >> 2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "rencode"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.8"
|
|
4
4
|
description = "rencode is an object serialization library similar to bencode from the Bittorrent project."
|
|
5
5
|
authors = ["Andrew Resch <andrewresch@gmail.com>"]
|
|
6
6
|
license = "GPLv3"
|
|
@@ -13,15 +13,12 @@ script = "build.py"
|
|
|
13
13
|
|
|
14
14
|
[tool.poetry.dependencies]
|
|
15
15
|
python = "^3.9"
|
|
16
|
-
cython = ">=3"
|
|
17
|
-
setuptools = "^80.4.0"
|
|
18
16
|
|
|
19
17
|
[tool.poetry.group.dev.dependencies]
|
|
20
18
|
black = "^21.9b0"
|
|
21
19
|
cython = "^3.1.0"
|
|
22
20
|
pytest = "^8.3.5"
|
|
23
21
|
|
|
24
|
-
|
|
25
22
|
[tool.poetry.group.build.dependencies]
|
|
26
23
|
setuptools = "^80.9.0"
|
|
27
24
|
cython = "^3.1.1"
|
|
@@ -2706,7 +2706,7 @@ typedef struct {
|
|
|
2706
2706
|
PyObject *__pyx_string_tab[50];
|
|
2707
2707
|
PyObject *__pyx_int_0;
|
|
2708
2708
|
PyObject *__pyx_int_1;
|
|
2709
|
-
PyObject *
|
|
2709
|
+
PyObject *__pyx_int_8;
|
|
2710
2710
|
PyObject *__pyx_int_128;
|
|
2711
2711
|
PyObject *__pyx_int_32768;
|
|
2712
2712
|
PyObject *__pyx_int_2147483648;
|
|
@@ -2831,7 +2831,7 @@ static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
|
|
|
2831
2831
|
for (int i=0; i<50; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
|
|
2832
2832
|
Py_CLEAR(clear_module_state->__pyx_int_0);
|
|
2833
2833
|
Py_CLEAR(clear_module_state->__pyx_int_1);
|
|
2834
|
-
Py_CLEAR(clear_module_state->
|
|
2834
|
+
Py_CLEAR(clear_module_state->__pyx_int_8);
|
|
2835
2835
|
Py_CLEAR(clear_module_state->__pyx_int_128);
|
|
2836
2836
|
Py_CLEAR(clear_module_state->__pyx_int_32768);
|
|
2837
2837
|
Py_CLEAR(clear_module_state->__pyx_int_2147483648);
|
|
@@ -2872,7 +2872,7 @@ static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void
|
|
|
2872
2872
|
for (int i=0; i<50; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
|
|
2873
2873
|
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_0);
|
|
2874
2874
|
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_1);
|
|
2875
|
-
__Pyx_VISIT_CONST(traverse_module_state->
|
|
2875
|
+
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_8);
|
|
2876
2876
|
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_128);
|
|
2877
2877
|
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_32768);
|
|
2878
2878
|
__Pyx_VISIT_CONST(traverse_module_state->__pyx_int_2147483648);
|
|
@@ -10371,14 +10371,14 @@ __Pyx_RefNannySetupContext("PyInit__rencode", 0);
|
|
|
10371
10371
|
/* "rencode/_rencode.pyx":30
|
|
10372
10372
|
* from libc.string cimport memcpy
|
|
10373
10373
|
*
|
|
10374
|
-
* __version__ = ("Cython", 1, 0,
|
|
10374
|
+
* __version__ = ("Cython", 1, 0, 8) # <<<<<<<<<<<<<<
|
|
10375
10375
|
*
|
|
10376
10376
|
* cdef long long data_length = 0
|
|
10377
10377
|
*/
|
|
10378
10378
|
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_version, __pyx_mstate_global->__pyx_tuple[0]) < 0) __PYX_ERR(0, 30, __pyx_L1_error)
|
|
10379
10379
|
|
|
10380
10380
|
/* "rencode/_rencode.pyx":32
|
|
10381
|
-
* __version__ = ("Cython", 1, 0,
|
|
10381
|
+
* __version__ = ("Cython", 1, 0, 8)
|
|
10382
10382
|
*
|
|
10383
10383
|
* cdef long long data_length = 0 # <<<<<<<<<<<<<<
|
|
10384
10384
|
* cdef bool _decode_utf8 = False
|
|
@@ -10692,11 +10692,11 @@ static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
|
|
|
10692
10692
|
/* "rencode/_rencode.pyx":30
|
|
10693
10693
|
* from libc.string cimport memcpy
|
|
10694
10694
|
*
|
|
10695
|
-
* __version__ = ("Cython", 1, 0,
|
|
10695
|
+
* __version__ = ("Cython", 1, 0, 8) # <<<<<<<<<<<<<<
|
|
10696
10696
|
*
|
|
10697
10697
|
* cdef long long data_length = 0
|
|
10698
10698
|
*/
|
|
10699
|
-
__pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_n_u_Cython, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->
|
|
10699
|
+
__pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_n_u_Cython, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_8); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 30, __pyx_L1_error)
|
|
10700
10700
|
__Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
|
|
10701
10701
|
__Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);
|
|
10702
10702
|
|
|
@@ -10725,7 +10725,7 @@ static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
|
|
|
10725
10725
|
if (__Pyx_InitStrings(__pyx_string_tab, __pyx_mstate->__pyx_string_tab, __pyx_string_tab_encodings) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
|
|
10726
10726
|
__pyx_mstate->__pyx_int_0 = PyLong_FromLong(0); if (unlikely(!__pyx_mstate->__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10727
10727
|
__pyx_mstate->__pyx_int_1 = PyLong_FromLong(1); if (unlikely(!__pyx_mstate->__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10728
|
-
__pyx_mstate->
|
|
10728
|
+
__pyx_mstate->__pyx_int_8 = PyLong_FromLong(8); if (unlikely(!__pyx_mstate->__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10729
10729
|
__pyx_mstate->__pyx_int_128 = PyLong_FromLong(128); if (unlikely(!__pyx_mstate->__pyx_int_128)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10730
10730
|
__pyx_mstate->__pyx_int_32768 = PyLong_FromLong(32768L); if (unlikely(!__pyx_mstate->__pyx_int_32768)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10731
10731
|
__pyx_mstate->__pyx_int_2147483648 = PyLong_FromString("2147483648", 0, 0); if (unlikely(!__pyx_mstate->__pyx_int_2147483648)) __PYX_ERR(0, 1, __pyx_L1_error)
|