Skip to content

Commit

Permalink
feat(workflows): enable PyPy builds
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Jun 23, 2024
1 parent 5c6105e commit 704c83e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
include:
- os: macos-13
python-version: "3.7"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
include:
- os: macos-13
python-version: "3.7"
Expand Down
2 changes: 1 addition & 1 deletion include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ inline ssize_t GET_SIZE<py::list>(const py::handle& sized) {
return PyList_GET_SIZE(sized.ptr());
}
#ifndef PyDict_GET_SIZE
#define PyDict_GET_SIZE PyDict_GetSize
#define PyDict_GET_SIZE PyDict_Size
#endif
template <>
inline ssize_t GET_SIZE<py::dict>(const py::handle& sized) {
Expand Down

0 comments on commit 704c83e

Please sign in to comment.