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
bc1bcf7c
Unverified
Commit
bc1bcf7c
authored
Jun 21, 2023
by
Henry Schreiner
Committed by
GitHub
Jun 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 3.12 + cleanup (#4713)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
parent
84932280
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
9 deletions
+15
-9
.github/workflows/ci.yml
+2
-0
.pre-commit-config.yaml
+1
-0
pybind11/setup_helpers.py
+4
-4
pyproject.toml
+6
-4
setup.cfg
+1
-0
setup.py
+1
-1
No files found.
.github/workflows/ci.yml
View file @
bc1bcf7c
...
...
@@ -36,6 +36,7 @@ jobs:
-
'
3.9'
-
'
3.10'
-
'
3.11'
-
'
3.12'
-
'
pypy-3.7'
-
'
pypy-3.8'
-
'
pypy-3.9'
...
...
@@ -74,6 +75,7 @@ jobs:
uses
:
actions/setup-python@v4
with
:
python-version
:
${{ matrix.python }}
allow-prereleases
:
true
-
name
:
Setup Boost (Linux)
# Can't use boost + define _
...
...
.pre-commit-config.yaml
View file @
bc1bcf7c
...
...
@@ -54,6 +54,7 @@ repos:
-
markdown-it-py<3
# Drop this together with dropping Python 3.7 support.
-
nox
-
rich
-
types-setuptools
# CMake formatting
-
repo
:
https://github.com/cheshirekow/cmake-format-precommit
...
...
pybind11/setup_helpers.py
View file @
bc1bcf7c
...
...
@@ -66,8 +66,8 @@ try:
from
setuptools
import
Extension
as
_Extension
from
setuptools.command.build_ext
import
build_ext
as
_build_ext
except
ImportError
:
from
distutils.command.build_ext
import
build_ext
as
_build_ext
from
distutils.extension
import
Extension
as
_Extension
from
distutils.command.build_ext
import
build_ext
as
_build_ext
# type: ignore[assignment]
from
distutils.extension
import
Extension
as
_Extension
# type: ignore[assignment]
import
distutils.ccompiler
import
distutils.errors
...
...
@@ -84,7 +84,7 @@ STD_TMPL = "/std:c++{}" if WIN else "-std=c++{}"
# directory into your path if it sits beside your setup.py.
class
Pybind11Extension
(
_Extension
):
# type: ignore[misc]
class
Pybind11Extension
(
_Extension
):
"""
Build a C++11+ Extension module with pybind11. This automatically adds the
recommended flags when you init the extension and assumes C++ sources - you
...
...
@@ -266,7 +266,7 @@ def auto_cpp_level(compiler: Any) -> Union[str, int]:
raise
RuntimeError
(
msg
)
class
build_ext
(
_build_ext
):
#
type: ignore[misc] #
noqa: N801
class
build_ext
(
_build_ext
):
# noqa: N801
"""
Customized build_ext that allows an auto-search for the highest supported
C++ level for Pybind11Extension. This is only needed for the auto-search
...
...
pyproject.toml
View file @
bc1bcf7c
...
...
@@ -2,6 +2,7 @@
requires
=
[
"setuptools>=42"
,
"cmake>=3.18"
,
"ninja"
]
build-backend
=
"setuptools.build_meta"
[tool.check-manifest]
ignore
=
[
"tests/**"
,
...
...
@@ -15,6 +16,7 @@ ignore = [
"noxfile.py"
,
]
[tool.mypy]
files
=
["pybind11"]
python_version
=
"3.6"
...
...
@@ -24,7 +26,7 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable
=
true
[[tool.mypy.overrides]]
module
=
[
"ghapi.*"
,
"setuptools.*"
]
module
=
["ghapi.*"]
ignore_missing_imports
=
true
...
...
@@ -55,10 +57,11 @@ messages_control.disable = [
"unused-argument"
,
# covered by Ruff ARG
]
[tool.ruff]
select
=
[
"E"
,
"F"
,
"W"
,
# flake8
"B"
,
"B904"
,
# flake8-bugbear
"B"
,
# flake8-bugbear
"I"
,
# isort
"N"
,
# pep8-naming
"ARG"
,
# flake8-unused-arguments
...
...
@@ -81,10 +84,9 @@ ignore = [
"E501"
,
# Line too long (Black is enough)
"PT011"
,
# Too broad with raises in pytest
"PT004"
,
# Fixture that doesn't return needs underscore (no, it is fine)
"SIM118"
,
# iter(x) is not always the same as iter(x.keys())
"SIM118"
,
# iter(x) is not always the same as iter(x.keys())
]
target-version
=
"py37"
typing-modules
=
["scikit_build_core._compat.typing"]
src
=
["src"]
unfixable
=
["T20"]
exclude
=
[]
...
...
setup.cfg
View file @
bc1bcf7c
...
...
@@ -20,6 +20,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
License :: OSI Approved :: BSD License
Programming Language :: Python :: Implementation :: PyPy
Programming Language :: Python :: Implementation :: CPython
...
...
setup.py
View file @
bc1bcf7c
...
...
@@ -96,7 +96,7 @@ def get_and_replace(
# Use our input files instead when making the SDist (and anything that depends
# on it, like a wheel)
class
SDist
(
setuptools
.
command
.
sdist
.
sdist
):
# type: ignore[misc]
class
SDist
(
setuptools
.
command
.
sdist
.
sdist
):
def
make_release_tree
(
self
,
base_dir
:
str
,
files
:
List
[
str
])
->
None
:
super
()
.
make_release_tree
(
base_dir
,
files
)
...
...
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