bjdata 0.5.1__tar.gz → 0.5.2__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.
Files changed (35) hide show
  1. {bjdata-0.5.1 → bjdata-0.5.2}/PKG-INFO +7 -3
  2. {bjdata-0.5.1 → bjdata-0.5.2}/README.md +2 -2
  3. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/__init__.py +1 -1
  4. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/PKG-INFO +7 -3
  5. {bjdata-0.5.1 → bjdata-0.5.2}/pyproject.toml +2 -1
  6. {bjdata-0.5.1 → bjdata-0.5.2}/setup.py +5 -1
  7. {bjdata-0.5.1 → bjdata-0.5.2}/src/_bjdata.c +1 -4
  8. {bjdata-0.5.1 → bjdata-0.5.2}/src/decoder.c +2 -0
  9. {bjdata-0.5.1 → bjdata-0.5.2}/src/encoder.c +2 -0
  10. {bjdata-0.5.1 → bjdata-0.5.2}/src/numpyapi.h +9 -1
  11. {bjdata-0.5.1 → bjdata-0.5.2}/Binary_JData_Specification.md +0 -0
  12. {bjdata-0.5.1 → bjdata-0.5.2}/CHANGELOG +0 -0
  13. {bjdata-0.5.1 → bjdata-0.5.2}/LICENSE +0 -0
  14. {bjdata-0.5.1 → bjdata-0.5.2}/MANIFEST.in +0 -0
  15. {bjdata-0.5.1 → bjdata-0.5.2}/NOTICE +0 -0
  16. {bjdata-0.5.1 → bjdata-0.5.2}/UBJSON-Specification.md +0 -0
  17. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/__main__.py +0 -0
  18. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/compat.py +0 -0
  19. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/decoder.py +0 -0
  20. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/encoder.py +0 -0
  21. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata/markers.py +0 -0
  22. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/SOURCES.txt +0 -0
  23. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/dependency_links.txt +0 -0
  24. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/not-zip-safe +0 -0
  25. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/requires.txt +0 -0
  26. {bjdata-0.5.1 → bjdata-0.5.2}/bjdata.egg-info/top_level.txt +0 -0
  27. {bjdata-0.5.1 → bjdata-0.5.2}/ez_setup.py +0 -0
  28. {bjdata-0.5.1 → bjdata-0.5.2}/setup.cfg +0 -0
  29. {bjdata-0.5.1 → bjdata-0.5.2}/src/common.h +0 -0
  30. {bjdata-0.5.1 → bjdata-0.5.2}/src/decoder.h +0 -0
  31. {bjdata-0.5.1 → bjdata-0.5.2}/src/encoder.h +0 -0
  32. {bjdata-0.5.1 → bjdata-0.5.2}/src/markers.h +0 -0
  33. {bjdata-0.5.1 → bjdata-0.5.2}/src/python_funcs.c +0 -0
  34. {bjdata-0.5.1 → bjdata-0.5.2}/src/python_funcs.h +0 -0
  35. {bjdata-0.5.1 → bjdata-0.5.2}/test/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bjdata
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Binary JData and UBJSON encoder/decoder
5
5
  Home-page: https://github.com/NeuroJSON/pybj
6
6
  Author: Qianqian Fang
@@ -23,6 +23,10 @@ Classifier: Programming Language :: Python :: 3.6
23
23
  Classifier: Programming Language :: Python :: 3.7
24
24
  Classifier: Programming Language :: Python :: 3.8
25
25
  Classifier: Programming Language :: Python :: 3.9
26
+ Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
+ Classifier: Programming Language :: Python :: 3.12
29
+ Classifier: Programming Language :: Python :: 3.13
26
30
  Classifier: Topic :: Software Development :: Libraries
27
31
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
32
  Description-Content-Type: text/markdown
@@ -54,13 +58,13 @@ Dynamic: summary
54
58
  - Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
55
59
  - Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
56
60
  - License: Apache License, Version 2.0
57
- - Version: 0.5.1
61
+ - Version: 0.5.2
58
62
  - URL: https://pypi.org/project/bjdata/
59
63
  - Github: https://github.com/NeuroJSON/pybj
60
64
  - BJData Spec Version: [V1 Draft 3](https://neurojson.org/bjdata/draft3)
61
65
  - Acknowledgement: This project is supported by US National Institute of Health (NIH) grant U24-NS124027
62
66
 
63
- [![Build Status](https://travis-ci.com/NeuroJSON/pybj.svg?branch=master)](https://travis-ci.com/NeuroJSON/pybj)
67
+ ![Build Status](https://github.com/NeuroJSON/pybj/actions/workflows/run_test.yml/badge.svg)
64
68
 
65
69
  This is a Python v3.2+ (and 2.7+) [Binary JData](https://neurojson.org) encoder
66
70
  and decoder based on the [Draft-3](Binary_JData_Specification.md) specification.
@@ -5,13 +5,13 @@
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)
12
12
  - Acknowledgement: This project is supported by US National Institute of Health (NIH) grant U24-NS124027
13
13
 
14
- [![Build Status](https://travis-ci.com/NeuroJSON/pybj.svg?branch=master)](https://travis-ci.com/NeuroJSON/pybj)
14
+ ![Build Status](https://github.com/NeuroJSON/pybj/actions/workflows/run_test.yml/badge.svg)
15
15
 
16
16
  This is a Python v3.2+ (and 2.7+) [Binary JData](https://neurojson.org) encoder
17
17
  and decoder based on the [Draft-3](Binary_JData_Specification.md) specification.
@@ -40,7 +40,7 @@ except ImportError: # pragma: no cover
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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bjdata
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Binary JData and UBJSON encoder/decoder
5
5
  Home-page: https://github.com/NeuroJSON/pybj
6
6
  Author: Qianqian Fang
@@ -23,6 +23,10 @@ Classifier: Programming Language :: Python :: 3.6
23
23
  Classifier: Programming Language :: Python :: 3.7
24
24
  Classifier: Programming Language :: Python :: 3.8
25
25
  Classifier: Programming Language :: Python :: 3.9
26
+ Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
+ Classifier: Programming Language :: Python :: 3.12
29
+ Classifier: Programming Language :: Python :: 3.13
26
30
  Classifier: Topic :: Software Development :: Libraries
27
31
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
32
  Description-Content-Type: text/markdown
@@ -54,13 +58,13 @@ Dynamic: summary
54
58
  - Copyright: (C) Qianqian Fang (2020-2025) <q.fang at neu.edu>
55
59
  - Copyright: (C) Iotic Labs Ltd. (2016-2019) <vilnis.termanis at iotic-labs.com>
56
60
  - License: Apache License, Version 2.0
57
- - Version: 0.5.1
61
+ - Version: 0.5.2
58
62
  - URL: https://pypi.org/project/bjdata/
59
63
  - Github: https://github.com/NeuroJSON/pybj
60
64
  - BJData Spec Version: [V1 Draft 3](https://neurojson.org/bjdata/draft3)
61
65
  - Acknowledgement: This project is supported by US National Institute of Health (NIH) grant U24-NS124027
62
66
 
63
- [![Build Status](https://travis-ci.com/NeuroJSON/pybj.svg?branch=master)](https://travis-ci.com/NeuroJSON/pybj)
67
+ ![Build Status](https://github.com/NeuroJSON/pybj/actions/workflows/run_test.yml/badge.svg)
64
68
 
65
69
  This is a Python v3.2+ (and 2.7+) [Binary JData](https://neurojson.org) encoder
66
70
  and decoder based on the [Draft-3](Binary_JData_Specification.md) specification.
@@ -2,6 +2,7 @@
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"
@@ -80,7 +80,7 @@ COMPILE_ARGS = ["-std=c99", "-DUSE__BJDATA"]
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 @@ setup(
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
  ],
@@ -20,10 +20,7 @@
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
 
@@ -18,6 +18,8 @@
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"
@@ -19,6 +19,8 @@
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"
@@ -17,7 +17,6 @@
17
17
 
18
18
  #pragma once
19
19
 
20
- #define NO_IMPORT_ARRAY
21
20
  #define PY_ARRAY_UNIQUE_SYMBOL bjdata_numpy_array
22
21
  #define NPY_NO_DEPRECATED_API 0
23
22
  #include <numpy/arrayobject.h>
@@ -26,6 +25,15 @@
26
25
  extern "C" {
27
26
  #endif
28
27
 
28
+ // Add compatibility macros
29
+ #ifndef NPY_ARRAY_C_CONTIGUOUS
30
+ #define NPY_ARRAY_C_CONTIGUOUS NPY_C_CONTIGUOUS
31
+ #endif
32
+
33
+ #ifndef NPY_ARRAY_F_CONTIGUOUS
34
+ #define NPY_ARRAY_F_CONTIGUOUS NPY_F_CONTIGUOUS
35
+ #endif
36
+
29
37
  // NumPy 2.0 compatibility layer
30
38
  #if NPY_API_VERSION >= 0x0000000f
31
39
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes