Skip to content

Commit 1f5c191

Browse files
committed
bump dtype API version for all dtypes
1 parent 92d368c commit 1f5c191

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ repos:
77
language: system
88
require_serial: true
99
entry: |
10-
bash -c 'cd metadatadtype && mkdir -p build && pip install build meson-python patchelf wheel && python -m build --wheel --no-isolation -Cbuilddir=build';
10+
bash -c 'cd metadatadtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
1111
fail_fast: false
1212
- id: generate-compilation-database-asciidtype
1313
name: Generate compilation database [asciidtype]
1414
files: asciidtype/(meson\.build$|.*\.(c|h)$)
1515
language: system
1616
require_serial: true
1717
entry: |
18-
bash -c 'cd asciidtype && mkdir -p build && pip install build meson-python patchelf wheel && python -m build --wheel --no-isolation -Cbuilddir=build';
18+
bash -c 'cd asciidtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
1919
fail_fast: false
2020
- id: generate-compilation-database-quaddtype
2121
name: Generate compilation database [quaddtype]
2222
files: quaddtype/(meson\.build$|.*\.(c|h)$)
2323
language: system
2424
require_serial: true
2525
entry: |
26-
bash -c 'cd quaddtype && mkdir -p build && pip install build meson-python patchelf wheel && python -m build --wheel --no-isolation -Cbuilddir=build';
26+
bash -c 'cd quaddtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
2727
fail_fast: false
2828
- id: generate-compilation-database-unytdtype
2929
name: Generate compilation database [unytdtype]
3030
files: unytdtype/(meson\.build$|.*\.(c|h)$)
3131
language: system
3232
require_serial: true
3333
entry: |
34-
bash -c 'cd unytdtype && mkdir -p build && pip install build meson-python patchelf wheel && python -m build --wheel --no-isolation -Cbuilddir=build';
34+
bash -c 'cd unytdtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
3535
fail_fast: false
3636
- id: generate-compilation-database-stringdtype
3737
name: Generate compilation database [stringdtype]
3838
files: stringdtype/(meson\.build$|.*\.(c|h)$)
3939
language: system
4040
require_serial: true
4141
entry: |
42-
bash -c 'cd stringdtype && mkdir -p build && pip install build meson-python patchelf wheel && python -m build --wheel --no-isolation -Cbuilddir=build';
42+
bash -c 'cd stringdtype && mkdir -p build && pip install build meson-python patchelf wheel && meson setup build && python -m build --wheel --no-isolation -Cbuilddir=build';
4343
fail_fast: false
4444
- repo: https://github.com/pocc/pre-commit-hooks
4545
rev: v1.3.5

asciidtype/asciidtype/src/asciidtype_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PyInit__asciidtype_main(void)
2222
return NULL;
2323
}
2424

25-
if (import_experimental_dtype_api(9) < 0) {
25+
if (import_experimental_dtype_api(10) < 0) {
2626
return NULL;
2727
}
2828

metadatadtype/metadatadtype/src/metadatadtype_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PyInit__metadatadtype_main(void)
2121
if (_import_array() < 0) {
2222
return NULL;
2323
}
24-
if (import_experimental_dtype_api(9) < 0) {
24+
if (import_experimental_dtype_api(10) < 0) {
2525
return NULL;
2626
}
2727

mpfdtype/mpfdtype/src/mpfdtype_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PyInit__mpfdtype_main(void)
2222
if (_import_array() < 0) {
2323
return NULL;
2424
}
25-
if (import_experimental_dtype_api(9) < 0) {
25+
if (import_experimental_dtype_api(10) < 0) {
2626
return NULL;
2727
}
2828

quaddtype/quaddtype/src/quaddtype_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PyInit__quaddtype_main(void)
2323
return NULL;
2424

2525
// Fail to init if the experimental DType API version 5 isn't supported
26-
if (import_experimental_dtype_api(9) < 0) {
26+
if (import_experimental_dtype_api(10) < 0) {
2727
PyErr_SetString(PyExc_ImportError,
2828
"Error encountered importing the experimental dtype API.");
2929
return NULL;

unytdtype/unytdtype/src/unytdtype_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PyInit__unytdtype_main(void)
2121
if (_import_array() < 0) {
2222
return NULL;
2323
}
24-
if (import_experimental_dtype_api(9) < 0) {
24+
if (import_experimental_dtype_api(10) < 0) {
2525
return NULL;
2626
}
2727

0 commit comments

Comments
 (0)