summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-05-26 11:26:19 -0600
committerCharles Harris <charlesr.harris@gmail.com>2022-05-26 13:07:19 -0600
commitc7efe38e944d057f1f7cce82d8bb9559ebdd578c (patch)
treeaa00d5d7ea4abfe0039a140925895996726b3310 /numpy
parentd75e7d8af2314947e0667b29cb304ab0377ee10f (diff)
downloadnumpy-c7efe38e944d057f1f7cce82d8bb9559ebdd578c.tar.gz
MAINT: Fix some API versions.
These were missed in the 1.24.0 preparations.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/numpyconfig.h3
-rw-r--r--numpy/core/setup_common.py7
2 files changed, 7 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/numpyconfig.h b/numpy/core/include/numpy/numpyconfig.h
index b2e7c458e..6be87b774 100644
--- a/numpy/core/include/numpy/numpyconfig.h
+++ b/numpy/core/include/numpy/numpyconfig.h
@@ -63,6 +63,7 @@
#define NPY_1_20_API_VERSION 0x0000000e
#define NPY_1_21_API_VERSION 0x0000000e
#define NPY_1_22_API_VERSION 0x0000000f
-#define NPY_1_23_API_VERSION 0x0000000f
+#define NPY_1_23_API_VERSION 0x00000010
+#define NPY_1_24_API_VERSION 0x00000010
#endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_ */
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 44fa0a651..81a86728a 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -31,6 +31,8 @@ C_ABI_VERSION = 0x01000009
# (*not* C_ABI_VERSION) would be increased. Whenever binary compatibility is
# broken, both C_API_VERSION and C_ABI_VERSION should be increased.
#
+# The version needs to be kept in sync with that in cversions.txt.
+#
# 0x00000008 - 1.7.x
# 0x00000009 - 1.8.x
# 0x00000009 - 1.9.x
@@ -45,8 +47,9 @@ C_ABI_VERSION = 0x01000009
# 0x0000000e - 1.20.x
# 0x0000000e - 1.21.x
# 0x0000000f - 1.22.x
-# 0x0000000f - 1.23.x
-C_API_VERSION = 0x0000000f
+# 0x00000010 - 1.23.x
+# 0x00000010 - 1.24.x
+C_API_VERSION = 0x00000010
class MismatchCAPIWarning(Warning):
pass