Skip to content

Commit ee2907c

Browse files
authored
Merge pull request #7 from hpyproject/fa/migrate-hpymoduledef
Migrate to changed HPyModuleDef.
2 parents 101ef43 + 873c4d1 commit ee2907c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
git clone -b master --single-branch https://github.com/hpyproject/hpy
2828
cd hpy
29-
git checkout 7b45ce522
29+
git checkout bba7ec5f0
3030
pip install .
3131
pip install numpy cython pytest transonic pythran
3232

piconumpy/_piconumpy_hpy.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,9 @@ static HPyDef *module_defines[] = {
243243
};
244244

245245
static HPyModuleDef piconumpymodule = {
246-
HPyModuleDef_HEAD_INIT,
247-
.m_name = "_piconumpy_hpy",
248-
.m_doc = "piconumpy implemented with the HPy API.",
249-
.m_size = -1,
246+
.name = "_piconumpy_hpy",
247+
.doc = "piconumpy implemented with the HPy API.",
248+
.size = -1,
250249
.defines = module_defines,
251250
};
252251

0 commit comments

Comments
 (0)