Skip to content

Commit d0a02e2

Browse files
committed
Move pymetabind.h to include/pybind11/contrib/
1 parent d5727c6 commit d0a02e2

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ CheckOptions:
7878
value: true
7979

8080
HeaderFilterRegex: 'pybind11/.*h'
81-
ExcludeHeaderFilterRegex: 'pybind11/detail/pymetabind.h'
81+
ExcludeHeaderFilterRegex: 'pybind11/contrib/.*h'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
autoupdate_schedule: monthly
2020

2121
# third-party content
22-
exclude: ^(tools/JoinPaths.cmake|include/pybind11/detail/pymetabind.h)$
22+
exclude: ^(tools/JoinPaths.cmake|include/pybind11/contrib/.*)$
2323

2424
repos:
2525

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ if(PYBIND11_MASTER_PROJECT)
180180
endif()
181181

182182
set(PYBIND11_HEADERS
183+
include/pybind11/contrib/pymetabind.h
183184
include/pybind11/detail/class.h
184185
include/pybind11/detail/common.h
185186
include/pybind11/detail/cpp_conduit.h
@@ -192,7 +193,6 @@ set(PYBIND11_HEADERS
192193
include/pybind11/detail/internals.h
193194
include/pybind11/detail/native_enum_data.h
194195
include/pybind11/detail/pybind11_namespace_macros.h
195-
include/pybind11/detail/pymetabind.h
196196
include/pybind11/detail/struct_smart_holder.h
197197
include/pybind11/detail/type_caster_base.h
198198
include/pybind11/detail/typeid.h

include/pybind11/detail/foreign.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99

1010
#pragma once
1111

12+
#include <pybind11/contrib/pymetabind.h>
13+
1214
#include "common.h"
1315
#include "internals.h"
14-
#include "pymetabind.h"
1516
#include "type_caster_base.h"
1617

1718
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)

include/pybind11/detail/type_caster_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
#include <pybind11/gil.h>
1313
#include <pybind11/pytypes.h>
1414
#include <pybind11/trampoline_self_life_support.h>
15+
#include <pybind11/contrib/pymetabind.h>
1516

1617
#include "common.h"
1718
#include "cpp_conduit.h"
1819
#include "descr.h"
1920
#include "dynamic_raw_ptr_cast_if_possible.h"
2021
#include "internals.h"
21-
#include "pymetabind.h"
2222
#include "typeid.h"
2323
#include "using_smart_holder.h"
2424
#include "value_and_holder.h"

tests/extra_python_package/test_files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
"include/pybind11/detail/internals.h",
8888
"include/pybind11/detail/native_enum_data.h",
8989
"include/pybind11/detail/pybind11_namespace_macros.h",
90-
"include/pybind11/detail/pymetabind.h",
9190
"include/pybind11/detail/struct_smart_holder.h",
9291
"include/pybind11/detail/type_caster_base.h",
9392
"include/pybind11/detail/typeid.h",
@@ -96,6 +95,10 @@
9695
"include/pybind11/detail/exception_translation.h",
9796
}
9897

98+
contrib_headers = {
99+
"include/pybind11/contrib/pymetabind.h",
100+
}
101+
99102
eigen_headers = {
100103
"include/pybind11/eigen/common.h",
101104
"include/pybind11/eigen/matrix.h",
@@ -132,7 +135,7 @@
132135
"share/pkgconfig/__init__.py",
133136
}
134137

135-
headers = main_headers | conduit_headers | detail_headers | eigen_headers | stl_headers
138+
headers = main_headers | conduit_headers | detail_headers | contrib_headers | eigen_headers | stl_headers
136139
generated_files = cmake_files | pkgconfig_files
137140
all_files = headers | generated_files | py_files
138141

0 commit comments

Comments
 (0)