File tree Expand file tree Collapse file tree 8 files changed +25
-10
lines changed Expand file tree Collapse file tree 8 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 5
5
- Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
6
6
- Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
7
7
- License: Apache License, Version 2.0
8
- - Version: 0.5.1
8
+ - Version: 0.5.2
9
9
- URL: https://pypi.org/project/bjdata/
10
10
- Github: https://github.com/NeuroJSON/pybj
11
11
- BJData Spec Version: [ V1 Draft 3] ( https://neurojson.org/bjdata/draft3 )
Original file line number Diff line number Diff line change 40
40
from .encoder import EncoderException
41
41
from .decoder import DecoderException
42
42
43
- __version__ = "0.5.1 "
43
+ __version__ = "0.5.2 "
44
44
45
45
__all__ = (
46
46
"EXTENSION_ENABLED" ,
Original file line number Diff line number Diff line change 2
2
requires = [
3
3
" setuptools>=42" ,
4
4
" wheel" ,
5
- " numpy"
5
+ " numpy>=2.0.0rc1; python_version>='3.9'" ,
6
+ " numpy>=1.8.0; python_version<'3.9'"
6
7
]
7
8
build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def build_extension(self, ext):
80
80
81
81
setup (
82
82
name = "bjdata" ,
83
- version = "0.5.1 " ,
83
+ version = "0.5.2 " ,
84
84
description = "Binary JData and UBJSON encoder/decoder" ,
85
85
long_description = load_description ("README.md" ),
86
86
long_description_content_type = "text/markdown" ,
@@ -134,6 +134,10 @@ def build_extension(self, ext):
134
134
"Programming Language :: Python :: 3.7" ,
135
135
"Programming Language :: Python :: 3.8" ,
136
136
"Programming Language :: Python :: 3.9" ,
137
+ "Programming Language :: Python :: 3.10" ,
138
+ "Programming Language :: Python :: 3.11" ,
139
+ "Programming Language :: Python :: 3.12" ,
140
+ "Programming Language :: Python :: 3.13" ,
137
141
"Topic :: Software Development :: Libraries" ,
138
142
"Topic :: Software Development :: Libraries :: Python Modules" ,
139
143
],
Original file line number Diff line number Diff line change 20
20
#include "common.h"
21
21
#include "encoder.h"
22
22
#include "decoder.h"
23
-
24
- #define PY_ARRAY_UNIQUE_SYMBOL bjdata_numpy_array
25
- #define NPY_NO_DEPRECATED_API 0
26
- #include <numpy/arrayobject.h>
23
+ #include "numpyapi.h"
27
24
28
25
/******************************************************************************/
29
26
Original file line number Diff line number Diff line change 18
18
#include <Python.h>
19
19
#include <bytesobject.h>
20
20
21
+ #define NO_IMPORT_ARRAY
22
+
21
23
#include "numpyapi.h"
22
24
#include "common.h"
23
25
#include "markers.h"
Original file line number Diff line number Diff line change 19
19
#include <bytesobject.h>
20
20
#include <string.h>
21
21
22
+ #define NO_IMPORT_ARRAY
23
+
22
24
#include "numpyapi.h"
23
25
#include "common.h"
24
26
#include "markers.h"
Original file line number Diff line number Diff line change 17
17
18
18
#pragma once
19
19
20
- #define NO_IMPORT_ARRAY
21
20
#define PY_ARRAY_UNIQUE_SYMBOL bjdata_numpy_array
22
- #define NPY_NO_DEPRECATED_API 0
21
+ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
22
+ #define NPY_TARGET_VERSION NPY_2_0_API_VERSION
23
23
#include <numpy/arrayobject.h>
24
24
25
25
#if defined (__cplusplus )
26
26
extern "C" {
27
27
#endif
28
28
29
+ // Add compatibility macros
30
+ #ifndef NPY_ARRAY_C_CONTIGUOUS
31
+ #define NPY_ARRAY_C_CONTIGUOUS NPY_C_CONTIGUOUS
32
+ #endif
33
+
34
+ #ifndef NPY_ARRAY_F_CONTIGUOUS
35
+ #define NPY_ARRAY_F_CONTIGUOUS NPY_F_CONTIGUOUS
36
+ #endif
37
+
29
38
// NumPy 2.0 compatibility layer
30
39
#if NPY_API_VERSION >= 0x0000000f
31
40
You can’t perform that action at this time.
0 commit comments