Skip to content

Commit

Permalink
Allow building on 3.13 freetreading python.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Nov 20, 2024
1 parent 4706239 commit 499a92b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/lazy_object_proxy/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,12 @@ moduleinit(void)
return NULL;

Py_INCREF(&Proxy_Type);
PyModule_AddObject(module, "Proxy",
(PyObject *)&Proxy_Type);
PyModule_AddObject(module, "Proxy", (PyObject *)&Proxy_Type);

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
#endif

return module;
}

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ envlist =
clean,
check,
docs,
{py39,py310,py311,py312,pypy39,pypy310}-{cover,nocov},
{py39,py310,py311,py312,py312t,pypy39,pypy310}-{cover,nocov},
report
ignore_basepython_conflict = true

Expand All @@ -26,6 +26,7 @@ basepython =
py310: {env:TOXPYTHON:python3.10}
py311: {env:TOXPYTHON:python3.11}
py312: {env:TOXPYTHON:python3.12}
py313t: {env:TOXPYTHON:python3.13t}
{bootstrap,clean,check,report,docs,codecov,coveralls,extension-coveralls}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
Expand Down

0 comments on commit 499a92b

Please sign in to comment.