Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
5f9b090a
Unverified
Commit
5f9b090a
authored
Mar 01, 2022
by
Henry Schreiner
Committed by
GitHub
Mar 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: fix PyPy (#3768)
* chore: minor fixes for newer PyPys * ci: fix issue with PyPy
parent
061c6177
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
.github/workflows/ci.yml
+2
-2
include/pybind11/detail/class.h
+2
-2
include/pybind11/pybind11.h
+1
-1
noxfile.py
+4
-5
No files found.
.github/workflows/ci.yml
View file @
5f9b090a
...
...
@@ -30,8 +30,8 @@ jobs:
-
'
3.6'
-
'
3.9'
-
'
3.10'
-
'
pypy-3.7
-v7.3.7
'
-
'
pypy-3.8
-v7.3.7
'
-
'
pypy-3.7'
-
'
pypy-3.8'
# Items in here will either be added to the build matrix (if not
# present), or add new keys to an existing matrix element if all the
...
...
include/pybind11/detail/class.h
View file @
5f9b090a
...
...
@@ -101,14 +101,14 @@ inline PyTypeObject *make_static_property_type() {
inline
PyTypeObject
*
make_static_property_type
()
{
auto
d
=
dict
();
PyObject
*
result
=
PyRun_String
(
R
"(\
class pybind11_static_property(property):
class pybind11_static_property(property):
def __get__(self, obj, cls):
return property.__get__(self, cls, cls)
def __set__(self, obj, value):
cls = obj if isinstance(obj, type) else type(obj)
property.__set__(self, cls, value)
)"
,
)"
,
Py_file_input
,
d
.
ptr
(),
d
.
ptr
());
...
...
include/pybind11/pybind11.h
View file @
5f9b090a
...
...
@@ -334,7 +334,7 @@ protected:
const
std
::
type_info
*
const
*
types
,
size_t
args
)
{
// Do NOT receive `unique_rec` by value. If this function fails to move out the unique_ptr,
// we do not want this to destuct the pointer. `initialize` (the caller) still relies on
// we do not want this to dest
r
uct the pointer. `initialize` (the caller) still relies on
// the pointee being alive after this call. Only move out if a `capsule` is going to keep
// it alive.
auto
*
rec
=
unique_rec
.
get
();
...
...
noxfile.py
View file @
5f9b090a
...
...
@@ -2,6 +2,7 @@ import os
import
nox
nox
.
needs_version
=
">=2022.1.7"
nox
.
options
.
sessions
=
[
"lint"
,
"tests"
,
"tests_packaging"
]
PYTHON_VERISONS
=
[
"3.6"
,
"3.7"
,
"3.8"
,
"3.9"
,
"3.10"
,
"3.11"
,
"pypy3.7"
,
"pypy3.8"
]
...
...
@@ -29,14 +30,12 @@ def tests(session: nox.Session) -> None:
session
.
install
(
"-r"
,
"tests/requirements.txt"
)
session
.
run
(
"cmake"
,
"-S"
,
"."
,
"-B"
,
tmpdir
,
"-S."
,
f
"-B{tmpdir}"
,
"-DPYBIND11_WERROR=ON"
,
"-DDOWNLOAD_CATCH=ON"
,
"-DDOWNLOAD_EIGEN=ON"
,
*
session
.
posargs
*
session
.
posargs
,
)
session
.
run
(
"cmake"
,
"--build"
,
tmpdir
)
session
.
run
(
"cmake"
,
"--build"
,
tmpdir
,
"--config=Release"
,
"--target"
,
"check"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment