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 55- Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
66- Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
77- License: Apache License, Version 2.0
8- - Version: 0.5.1
8+ - Version: 0.5.2
99- URL: https://pypi.org/project/bjdata/
1010- Github: https://github.com/NeuroJSON/pybj
1111- BJData Spec Version: [ V1 Draft 3] ( https://neurojson.org/bjdata/draft3 )
Original file line number Diff line number Diff line change 4040from .encoder import EncoderException
4141from .decoder import DecoderException
4242
43- __version__ = "0.5.1 "
43+ __version__ = "0.5.2 "
4444
4545__all__ = (
4646 "EXTENSION_ENABLED" ,
Original file line number Diff line number Diff line change 22requires = [
33 " setuptools>=42" ,
44 " wheel" ,
5- " numpy"
5+ " numpy>=2.0.0rc1; python_version>='3.9'" ,
6+ " numpy>=1.8.0; python_version<'3.9'"
67]
78build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def build_extension(self, ext):
8080
8181setup (
8282 name = "bjdata" ,
83- version = "0.5.1 " ,
83+ version = "0.5.2 " ,
8484 description = "Binary JData and UBJSON encoder/decoder" ,
8585 long_description = load_description ("README.md" ),
8686 long_description_content_type = "text/markdown" ,
@@ -134,6 +134,10 @@ def build_extension(self, ext):
134134 "Programming Language :: Python :: 3.7" ,
135135 "Programming Language :: Python :: 3.8" ,
136136 "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" ,
137141 "Topic :: Software Development :: Libraries" ,
138142 "Topic :: Software Development :: Libraries :: Python Modules" ,
139143 ],
Original file line number Diff line number Diff line change 2020#include "common.h"
2121#include "encoder.h"
2222#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"
2724
2825/******************************************************************************/
2926
Original file line number Diff line number Diff line change 1818#include <Python.h>
1919#include <bytesobject.h>
2020
21+ #define NO_IMPORT_ARRAY
22+
2123#include "numpyapi.h"
2224#include "common.h"
2325#include "markers.h"
Original file line number Diff line number Diff line change 1919#include <bytesobject.h>
2020#include <string.h>
2121
22+ #define NO_IMPORT_ARRAY
23+
2224#include "numpyapi.h"
2325#include "common.h"
2426#include "markers.h"
Original file line number Diff line number Diff line change 1717
1818#pragma once
1919
20- #define NO_IMPORT_ARRAY
2120#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
2323#include <numpy/arrayobject.h>
2424
2525#if defined (__cplusplus )
2626extern "C" {
2727#endif
2828
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+
2938// NumPy 2.0 compatibility layer
3039#if NPY_API_VERSION >= 0x0000000f
3140
You can’t perform that action at this time.
0 commit comments