From 3ac57ce39befd2b46bd82359b3589030a571da18 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:22:26 -0400 Subject: [PATCH 01/18] setup --- .github/workflows/cmake.yml | 4 +- .vscode/c_cpp_properties.json | 4 +- CMakeLists.txt | 6 +- {include => lib/include}/json.hpp | 0 .../include}/pybind11/.appveyor.yml | 0 .../include}/pybind11/.clang-format | 0 {include => lib/include}/pybind11/.clang-tidy | 0 .../include}/pybind11/.cmake-format.yaml | 0 .../include}/pybind11/.codespell-ignore-lines | 0 .../include}/pybind11/.gitattributes | 0 .../include}/pybind11/.github/CODEOWNERS | 0 .../include}/pybind11/.github/CONTRIBUTING.md | 0 .../.github/ISSUE_TEMPLATE/bug-report.yml | 0 .../.github/ISSUE_TEMPLATE/config.yml | 0 .../include}/pybind11/.github/dependabot.yml | 0 .../include}/pybind11/.github/labeler.yml | 0 .../pybind11/.github/labeler_merged.yml | 0 .../pybind11/.github/matchers/pylint.json | 0 .../pybind11/.github/pull_request_template.md | 0 .../pybind11/.github/workflows/ci.yml | 0 .../pybind11/.github/workflows/configure.yml | 0 .../pybind11/.github/workflows/format.yml | 0 .../pybind11/.github/workflows/labeler.yml | 0 .../pybind11/.github/workflows/pip.yml | 0 .../pybind11/.github/workflows/upstream.yml | 0 {include => lib/include}/pybind11/.gitignore | 0 .../include}/pybind11/.pre-commit-config.yaml | 0 .../include}/pybind11/.readthedocs.yml | 0 .../include}/pybind11/CMakeLists.txt | 0 {include => lib/include}/pybind11/LICENSE | 0 {include => lib/include}/pybind11/MANIFEST.in | 0 {include => lib/include}/pybind11/README.rst | 0 {include => lib/include}/pybind11/SECURITY.md | 0 .../include}/pybind11/docs/Doxyfile | 0 .../pybind11/docs/_static/css/custom.css | 0 .../pybind11/docs/advanced/cast/chrono.rst | 0 .../pybind11/docs/advanced/cast/custom.rst | 0 .../pybind11/docs/advanced/cast/eigen.rst | 0 .../docs/advanced/cast/functional.rst | 0 .../pybind11/docs/advanced/cast/index.rst | 0 .../pybind11/docs/advanced/cast/overview.rst | 0 .../pybind11/docs/advanced/cast/stl.rst | 0 .../pybind11/docs/advanced/cast/strings.rst | 0 .../pybind11/docs/advanced/classes.rst | 0 .../pybind11/docs/advanced/embedding.rst | 0 .../pybind11/docs/advanced/exceptions.rst | 0 .../pybind11/docs/advanced/functions.rst | 0 .../include}/pybind11/docs/advanced/misc.rst | 0 .../pybind11/docs/advanced/pycpp/index.rst | 0 .../pybind11/docs/advanced/pycpp/numpy.rst | 0 .../pybind11/docs/advanced/pycpp/object.rst | 0 .../docs/advanced/pycpp/utilities.rst | 0 .../pybind11/docs/advanced/smart_ptrs.rst | 0 .../include}/pybind11/docs/basics.rst | 0 .../include}/pybind11/docs/benchmark.py | 0 .../include}/pybind11/docs/benchmark.rst | 0 .../include}/pybind11/docs/changelog.rst | 0 .../include}/pybind11/docs/classes.rst | 0 .../include}/pybind11/docs/cmake/index.rst | 0 .../include}/pybind11/docs/compiling.rst | 0 .../include}/pybind11/docs/conf.py | 0 .../include}/pybind11/docs/faq.rst | 0 .../include}/pybind11/docs/index.rst | 0 .../include}/pybind11/docs/installing.rst | 0 .../include}/pybind11/docs/limitations.rst | 0 .../include}/pybind11/docs/pybind11-logo.png | Bin .../docs/pybind11_vs_boost_python1.png | Bin .../docs/pybind11_vs_boost_python1.svg | 0 .../docs/pybind11_vs_boost_python2.png | Bin .../docs/pybind11_vs_boost_python2.svg | 0 .../include}/pybind11/docs/reference.rst | 0 .../include}/pybind11/docs/release.rst | 0 .../include}/pybind11/docs/requirements.in | 0 .../include}/pybind11/docs/requirements.txt | 0 .../include}/pybind11/docs/upgrade.rst | 0 .../include}/pybind11/include/pybind11/attr.h | 0 .../pybind11/include/pybind11/buffer_info.h | 0 .../include}/pybind11/include/pybind11/cast.h | 0 .../pybind11/include/pybind11/chrono.h | 0 .../pybind11/include/pybind11/common.h | 0 .../pybind11/include/pybind11/complex.h | 0 .../pybind11/include/pybind11/detail/class.h | 0 .../pybind11/include/pybind11/detail/common.h | 0 .../pybind11/include/pybind11/detail/descr.h | 0 .../pybind11/include/pybind11/detail/init.h | 0 .../include/pybind11/detail/internals.h | 0 .../pybind11/detail/type_caster_base.h | 0 .../pybind11/include/pybind11/detail/typeid.h | 0 .../pybind11/include/pybind11/eigen.h | 0 .../pybind11/include/pybind11/eigen/common.h | 0 .../pybind11/include/pybind11/eigen/matrix.h | 0 .../pybind11/include/pybind11/eigen/tensor.h | 0 .../pybind11/include/pybind11/embed.h | 0 .../include}/pybind11/include/pybind11/eval.h | 0 .../pybind11/include/pybind11/functional.h | 0 .../include}/pybind11/include/pybind11/gil.h | 0 .../include/pybind11/gil_safe_call_once.h | 0 .../pybind11/include/pybind11/iostream.h | 0 .../pybind11/include/pybind11/numpy.h | 0 .../pybind11/include/pybind11/operators.h | 0 .../pybind11/include/pybind11/options.h | 0 .../pybind11/include/pybind11/pybind11.h | 0 .../pybind11/include/pybind11/pytypes.h | 0 .../include}/pybind11/include/pybind11/stl.h | 0 .../include/pybind11/stl/filesystem.h | 0 .../pybind11/include/pybind11/stl_bind.h | 0 .../pybind11/type_caster_pyobject_ptr.h | 0 .../pybind11/include/pybind11/typing.h | 0 {include => lib/include}/pybind11/noxfile.py | 0 .../include}/pybind11/pybind11/__init__.py | 0 .../include}/pybind11/pybind11/__main__.py | 0 .../include}/pybind11/pybind11/_version.py | 0 .../include}/pybind11/pybind11/commands.py | 0 .../include}/pybind11/pybind11/py.typed | 0 .../pybind11/pybind11/setup_helpers.py | 0 .../include}/pybind11/pyproject.toml | 0 {include => lib/include}/pybind11/setup.cfg | 0 {include => lib/include}/pybind11/setup.py | 0 .../include}/pybind11/tests/CMakeLists.txt | 0 .../include}/pybind11/tests/conftest.py | 0 .../pybind11/tests/constructor_stats.h | 0 .../pybind11/tests/cross_module_gil_utils.cpp | 0 ...s_module_interleaved_error_already_set.cpp | 0 .../tests/eigen_tensor_avoid_stl_array.cpp | 0 .../include}/pybind11/tests/env.py | 0 .../tests/extra_python_package/pytest.ini | 0 .../tests/extra_python_package/test_files.py | 0 .../tests/extra_setuptools/pytest.ini | 0 .../extra_setuptools/test_setuphelper.py | 0 .../include}/pybind11/tests/local_bindings.h | 0 .../include}/pybind11/tests/object.h | 0 .../tests/pybind11_cross_module_tests.cpp | 0 .../pybind11/tests/pybind11_tests.cpp | 0 .../include}/pybind11/tests/pybind11_tests.h | 0 .../include}/pybind11/tests/pytest.ini | 0 .../include}/pybind11/tests/requirements.txt | 0 .../include}/pybind11/tests/test_async.cpp | 0 .../include}/pybind11/tests/test_async.py | 0 .../include}/pybind11/tests/test_buffers.cpp | 0 .../include}/pybind11/tests/test_buffers.py | 0 .../pybind11/tests/test_builtin_casters.cpp | 0 .../pybind11/tests/test_builtin_casters.py | 0 .../pybind11/tests/test_call_policies.cpp | 0 .../pybind11/tests/test_call_policies.py | 0 .../pybind11/tests/test_callbacks.cpp | 0 .../include}/pybind11/tests/test_callbacks.py | 0 .../include}/pybind11/tests/test_chrono.cpp | 0 .../include}/pybind11/tests/test_chrono.py | 0 .../include}/pybind11/tests/test_class.cpp | 0 .../include}/pybind11/tests/test_class.py | 0 .../tests/test_cmake_build/CMakeLists.txt | 0 .../pybind11/tests/test_cmake_build/embed.cpp | 0 .../installed_embed/CMakeLists.txt | 0 .../installed_function/CMakeLists.txt | 0 .../installed_target/CMakeLists.txt | 0 .../pybind11/tests/test_cmake_build/main.cpp | 0 .../subdirectory_embed/CMakeLists.txt | 0 .../subdirectory_function/CMakeLists.txt | 0 .../subdirectory_target/CMakeLists.txt | 0 .../pybind11/tests/test_cmake_build/test.py | 0 .../pybind11/tests/test_const_name.cpp | 0 .../pybind11/tests/test_const_name.py | 0 .../tests/test_constants_and_functions.cpp | 0 .../tests/test_constants_and_functions.py | 0 .../pybind11/tests/test_copy_move.cpp | 0 .../include}/pybind11/tests/test_copy_move.py | 0 .../tests/test_custom_type_casters.cpp | 0 .../tests/test_custom_type_casters.py | 0 .../pybind11/tests/test_custom_type_setup.cpp | 0 .../pybind11/tests/test_custom_type_setup.py | 0 .../pybind11/tests/test_docstring_options.cpp | 0 .../pybind11/tests/test_docstring_options.py | 0 .../pybind11/tests/test_eigen_matrix.cpp | 0 .../pybind11/tests/test_eigen_matrix.py | 0 .../pybind11/tests/test_eigen_tensor.cpp | 0 .../pybind11/tests/test_eigen_tensor.inl | 0 .../pybind11/tests/test_eigen_tensor.py | 0 .../pybind11/tests/test_embed/CMakeLists.txt | 0 .../pybind11/tests/test_embed/catch.cpp | 0 .../tests/test_embed/external_module.cpp | 0 .../tests/test_embed/test_interpreter.cpp | 0 .../tests/test_embed/test_interpreter.py | 0 .../tests/test_embed/test_trampoline.py | 0 .../include}/pybind11/tests/test_enum.cpp | 0 .../include}/pybind11/tests/test_enum.py | 0 .../include}/pybind11/tests/test_eval.cpp | 0 .../include}/pybind11/tests/test_eval.py | 0 .../include}/pybind11/tests/test_eval_call.py | 0 .../pybind11/tests/test_exceptions.cpp | 0 .../include}/pybind11/tests/test_exceptions.h | 0 .../pybind11/tests/test_exceptions.py | 0 .../tests/test_factory_constructors.cpp | 0 .../tests/test_factory_constructors.py | 0 .../pybind11/tests/test_gil_scoped.cpp | 0 .../pybind11/tests/test_gil_scoped.py | 0 .../include}/pybind11/tests/test_iostream.cpp | 0 .../include}/pybind11/tests/test_iostream.py | 0 .../tests/test_kwargs_and_defaults.cpp | 0 .../tests/test_kwargs_and_defaults.py | 0 .../pybind11/tests/test_local_bindings.cpp | 0 .../pybind11/tests/test_local_bindings.py | 0 .../tests/test_methods_and_attributes.cpp | 0 .../tests/test_methods_and_attributes.py | 0 .../include}/pybind11/tests/test_modules.cpp | 0 .../include}/pybind11/tests/test_modules.py | 0 .../tests/test_multiple_inheritance.cpp | 0 .../tests/test_multiple_inheritance.py | 0 .../pybind11/tests/test_numpy_array.cpp | 0 .../pybind11/tests/test_numpy_array.py | 0 .../pybind11/tests/test_numpy_dtypes.cpp | 0 .../pybind11/tests/test_numpy_dtypes.py | 0 .../pybind11/tests/test_numpy_vectorize.cpp | 0 .../pybind11/tests/test_numpy_vectorize.py | 0 .../pybind11/tests/test_opaque_types.cpp | 0 .../pybind11/tests/test_opaque_types.py | 0 .../tests/test_operator_overloading.cpp | 0 .../tests/test_operator_overloading.py | 0 .../include}/pybind11/tests/test_pickling.cpp | 0 .../include}/pybind11/tests/test_pickling.py | 0 .../test_python_multiple_inheritance.cpp | 0 .../tests/test_python_multiple_inheritance.py | 0 .../include}/pybind11/tests/test_pytypes.cpp | 0 .../include}/pybind11/tests/test_pytypes.py | 0 .../tests/test_sequences_and_iterators.cpp | 0 .../tests/test_sequences_and_iterators.py | 0 .../pybind11/tests/test_smart_ptr.cpp | 0 .../include}/pybind11/tests/test_smart_ptr.py | 0 .../include}/pybind11/tests/test_stl.cpp | 0 .../include}/pybind11/tests/test_stl.py | 0 .../pybind11/tests/test_stl_binders.cpp | 0 .../pybind11/tests/test_stl_binders.py | 0 .../tests/test_tagbased_polymorphic.cpp | 0 .../tests/test_tagbased_polymorphic.py | 0 .../include}/pybind11/tests/test_thread.cpp | 0 .../include}/pybind11/tests/test_thread.py | 0 .../tests/test_type_caster_pyobject_ptr.cpp | 0 .../tests/test_type_caster_pyobject_ptr.py | 0 .../include}/pybind11/tests/test_union.cpp | 0 .../include}/pybind11/tests/test_union.py | 0 .../tests/test_unnamed_namespace_a.cpp | 0 .../tests/test_unnamed_namespace_a.py | 0 .../tests/test_unnamed_namespace_b.cpp | 0 .../tests/test_unnamed_namespace_b.py | 0 .../tests/test_vector_unique_ptr_member.cpp | 0 .../tests/test_vector_unique_ptr_member.py | 0 .../pybind11/tests/test_virtual_functions.cpp | 0 .../pybind11/tests/test_virtual_functions.py | 0 .../pybind11/tests/valgrind-numpy-scipy.supp | 0 .../pybind11/tests/valgrind-python.supp | 0 .../include}/pybind11/tools/FindCatch.cmake | 0 .../include}/pybind11/tools/FindEigen3.cmake | 0 .../pybind11/tools/FindPythonLibsNew.cmake | 0 .../include}/pybind11/tools/JoinPaths.cmake | 0 .../include}/pybind11/tools/check-style.sh | 0 .../pybind11/tools/cmake_uninstall.cmake.in | 0 .../codespell_ignore_lines_from_errors.py | 0 .../include}/pybind11/tools/libsize.py | 0 .../include}/pybind11/tools/make_changelog.py | 0 .../include}/pybind11/tools/pybind11.pc.in | 0 .../pybind11/tools/pybind11Common.cmake | 0 .../pybind11/tools/pybind11Config.cmake.in | 0 .../tools/pybind11GuessPythonExtSuffix.cmake | 0 .../pybind11/tools/pybind11NewTools.cmake | 0 .../pybind11/tools/pybind11Tools.cmake | 0 .../include}/pybind11/tools/pyproject.toml | 0 .../pybind11/tools/setup_global.py.in | 0 .../include}/pybind11/tools/setup_main.py.in | 0 .../test-pybind11GuessPythonExtSuffix.cmake | 0 {include => lib/include}/token_granter.hpp | 0 {src => lib/src}/token_granter.cpp | 0 setup.py | 83 ++++++++---------- token_granter_wrapper/__init__.py | 1 + .../token_granter_bindings.cpp | 4 +- 273 files changed, 47 insertions(+), 55 deletions(-) rename {include => lib/include}/json.hpp (100%) rename {include => lib/include}/pybind11/.appveyor.yml (100%) rename {include => lib/include}/pybind11/.clang-format (100%) rename {include => lib/include}/pybind11/.clang-tidy (100%) rename {include => lib/include}/pybind11/.cmake-format.yaml (100%) rename {include => lib/include}/pybind11/.codespell-ignore-lines (100%) rename {include => lib/include}/pybind11/.gitattributes (100%) rename {include => lib/include}/pybind11/.github/CODEOWNERS (100%) rename {include => lib/include}/pybind11/.github/CONTRIBUTING.md (100%) rename {include => lib/include}/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml (100%) rename {include => lib/include}/pybind11/.github/ISSUE_TEMPLATE/config.yml (100%) rename {include => lib/include}/pybind11/.github/dependabot.yml (100%) rename {include => lib/include}/pybind11/.github/labeler.yml (100%) rename {include => lib/include}/pybind11/.github/labeler_merged.yml (100%) rename {include => lib/include}/pybind11/.github/matchers/pylint.json (100%) rename {include => lib/include}/pybind11/.github/pull_request_template.md (100%) rename {include => lib/include}/pybind11/.github/workflows/ci.yml (100%) rename {include => lib/include}/pybind11/.github/workflows/configure.yml (100%) rename {include => lib/include}/pybind11/.github/workflows/format.yml (100%) rename {include => lib/include}/pybind11/.github/workflows/labeler.yml (100%) rename {include => lib/include}/pybind11/.github/workflows/pip.yml (100%) rename {include => lib/include}/pybind11/.github/workflows/upstream.yml (100%) rename {include => lib/include}/pybind11/.gitignore (100%) rename {include => lib/include}/pybind11/.pre-commit-config.yaml (100%) rename {include => lib/include}/pybind11/.readthedocs.yml (100%) rename {include => lib/include}/pybind11/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/LICENSE (100%) rename {include => lib/include}/pybind11/MANIFEST.in (100%) rename {include => lib/include}/pybind11/README.rst (100%) rename {include => lib/include}/pybind11/SECURITY.md (100%) rename {include => lib/include}/pybind11/docs/Doxyfile (100%) rename {include => lib/include}/pybind11/docs/_static/css/custom.css (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/chrono.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/custom.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/eigen.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/functional.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/index.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/overview.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/stl.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/cast/strings.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/classes.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/embedding.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/exceptions.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/functions.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/misc.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/pycpp/index.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/pycpp/numpy.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/pycpp/object.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/pycpp/utilities.rst (100%) rename {include => lib/include}/pybind11/docs/advanced/smart_ptrs.rst (100%) rename {include => lib/include}/pybind11/docs/basics.rst (100%) rename {include => lib/include}/pybind11/docs/benchmark.py (100%) rename {include => lib/include}/pybind11/docs/benchmark.rst (100%) rename {include => lib/include}/pybind11/docs/changelog.rst (100%) rename {include => lib/include}/pybind11/docs/classes.rst (100%) rename {include => lib/include}/pybind11/docs/cmake/index.rst (100%) rename {include => lib/include}/pybind11/docs/compiling.rst (100%) rename {include => lib/include}/pybind11/docs/conf.py (100%) rename {include => lib/include}/pybind11/docs/faq.rst (100%) rename {include => lib/include}/pybind11/docs/index.rst (100%) rename {include => lib/include}/pybind11/docs/installing.rst (100%) rename {include => lib/include}/pybind11/docs/limitations.rst (100%) rename {include => lib/include}/pybind11/docs/pybind11-logo.png (100%) rename {include => lib/include}/pybind11/docs/pybind11_vs_boost_python1.png (100%) rename {include => lib/include}/pybind11/docs/pybind11_vs_boost_python1.svg (100%) rename {include => lib/include}/pybind11/docs/pybind11_vs_boost_python2.png (100%) rename {include => lib/include}/pybind11/docs/pybind11_vs_boost_python2.svg (100%) rename {include => lib/include}/pybind11/docs/reference.rst (100%) rename {include => lib/include}/pybind11/docs/release.rst (100%) rename {include => lib/include}/pybind11/docs/requirements.in (100%) rename {include => lib/include}/pybind11/docs/requirements.txt (100%) rename {include => lib/include}/pybind11/docs/upgrade.rst (100%) rename {include => lib/include}/pybind11/include/pybind11/attr.h (100%) rename {include => lib/include}/pybind11/include/pybind11/buffer_info.h (100%) rename {include => lib/include}/pybind11/include/pybind11/cast.h (100%) rename {include => lib/include}/pybind11/include/pybind11/chrono.h (100%) rename {include => lib/include}/pybind11/include/pybind11/common.h (100%) rename {include => lib/include}/pybind11/include/pybind11/complex.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/class.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/common.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/descr.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/init.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/internals.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/type_caster_base.h (100%) rename {include => lib/include}/pybind11/include/pybind11/detail/typeid.h (100%) rename {include => lib/include}/pybind11/include/pybind11/eigen.h (100%) rename {include => lib/include}/pybind11/include/pybind11/eigen/common.h (100%) rename {include => lib/include}/pybind11/include/pybind11/eigen/matrix.h (100%) rename {include => lib/include}/pybind11/include/pybind11/eigen/tensor.h (100%) rename {include => lib/include}/pybind11/include/pybind11/embed.h (100%) rename {include => lib/include}/pybind11/include/pybind11/eval.h (100%) rename {include => lib/include}/pybind11/include/pybind11/functional.h (100%) rename {include => lib/include}/pybind11/include/pybind11/gil.h (100%) rename {include => lib/include}/pybind11/include/pybind11/gil_safe_call_once.h (100%) rename {include => lib/include}/pybind11/include/pybind11/iostream.h (100%) rename {include => lib/include}/pybind11/include/pybind11/numpy.h (100%) rename {include => lib/include}/pybind11/include/pybind11/operators.h (100%) rename {include => lib/include}/pybind11/include/pybind11/options.h (100%) rename {include => lib/include}/pybind11/include/pybind11/pybind11.h (100%) rename {include => lib/include}/pybind11/include/pybind11/pytypes.h (100%) rename {include => lib/include}/pybind11/include/pybind11/stl.h (100%) rename {include => lib/include}/pybind11/include/pybind11/stl/filesystem.h (100%) rename {include => lib/include}/pybind11/include/pybind11/stl_bind.h (100%) rename {include => lib/include}/pybind11/include/pybind11/type_caster_pyobject_ptr.h (100%) rename {include => lib/include}/pybind11/include/pybind11/typing.h (100%) rename {include => lib/include}/pybind11/noxfile.py (100%) rename {include => lib/include}/pybind11/pybind11/__init__.py (100%) rename {include => lib/include}/pybind11/pybind11/__main__.py (100%) rename {include => lib/include}/pybind11/pybind11/_version.py (100%) rename {include => lib/include}/pybind11/pybind11/commands.py (100%) rename {include => lib/include}/pybind11/pybind11/py.typed (100%) rename {include => lib/include}/pybind11/pybind11/setup_helpers.py (100%) rename {include => lib/include}/pybind11/pyproject.toml (100%) rename {include => lib/include}/pybind11/setup.cfg (100%) rename {include => lib/include}/pybind11/setup.py (100%) rename {include => lib/include}/pybind11/tests/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/conftest.py (100%) rename {include => lib/include}/pybind11/tests/constructor_stats.h (100%) rename {include => lib/include}/pybind11/tests/cross_module_gil_utils.cpp (100%) rename {include => lib/include}/pybind11/tests/cross_module_interleaved_error_already_set.cpp (100%) rename {include => lib/include}/pybind11/tests/eigen_tensor_avoid_stl_array.cpp (100%) rename {include => lib/include}/pybind11/tests/env.py (100%) rename {include => lib/include}/pybind11/tests/extra_python_package/pytest.ini (100%) rename {include => lib/include}/pybind11/tests/extra_python_package/test_files.py (100%) rename {include => lib/include}/pybind11/tests/extra_setuptools/pytest.ini (100%) rename {include => lib/include}/pybind11/tests/extra_setuptools/test_setuphelper.py (100%) rename {include => lib/include}/pybind11/tests/local_bindings.h (100%) rename {include => lib/include}/pybind11/tests/object.h (100%) rename {include => lib/include}/pybind11/tests/pybind11_cross_module_tests.cpp (100%) rename {include => lib/include}/pybind11/tests/pybind11_tests.cpp (100%) rename {include => lib/include}/pybind11/tests/pybind11_tests.h (100%) rename {include => lib/include}/pybind11/tests/pytest.ini (100%) rename {include => lib/include}/pybind11/tests/requirements.txt (100%) rename {include => lib/include}/pybind11/tests/test_async.cpp (100%) rename {include => lib/include}/pybind11/tests/test_async.py (100%) rename {include => lib/include}/pybind11/tests/test_buffers.cpp (100%) rename {include => lib/include}/pybind11/tests/test_buffers.py (100%) rename {include => lib/include}/pybind11/tests/test_builtin_casters.cpp (100%) rename {include => lib/include}/pybind11/tests/test_builtin_casters.py (100%) rename {include => lib/include}/pybind11/tests/test_call_policies.cpp (100%) rename {include => lib/include}/pybind11/tests/test_call_policies.py (100%) rename {include => lib/include}/pybind11/tests/test_callbacks.cpp (100%) rename {include => lib/include}/pybind11/tests/test_callbacks.py (100%) rename {include => lib/include}/pybind11/tests/test_chrono.cpp (100%) rename {include => lib/include}/pybind11/tests/test_chrono.py (100%) rename {include => lib/include}/pybind11/tests/test_class.cpp (100%) rename {include => lib/include}/pybind11/tests/test_class.py (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/embed.cpp (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/main.cpp (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_cmake_build/test.py (100%) rename {include => lib/include}/pybind11/tests/test_const_name.cpp (100%) rename {include => lib/include}/pybind11/tests/test_const_name.py (100%) rename {include => lib/include}/pybind11/tests/test_constants_and_functions.cpp (100%) rename {include => lib/include}/pybind11/tests/test_constants_and_functions.py (100%) rename {include => lib/include}/pybind11/tests/test_copy_move.cpp (100%) rename {include => lib/include}/pybind11/tests/test_copy_move.py (100%) rename {include => lib/include}/pybind11/tests/test_custom_type_casters.cpp (100%) rename {include => lib/include}/pybind11/tests/test_custom_type_casters.py (100%) rename {include => lib/include}/pybind11/tests/test_custom_type_setup.cpp (100%) rename {include => lib/include}/pybind11/tests/test_custom_type_setup.py (100%) rename {include => lib/include}/pybind11/tests/test_docstring_options.cpp (100%) rename {include => lib/include}/pybind11/tests/test_docstring_options.py (100%) rename {include => lib/include}/pybind11/tests/test_eigen_matrix.cpp (100%) rename {include => lib/include}/pybind11/tests/test_eigen_matrix.py (100%) rename {include => lib/include}/pybind11/tests/test_eigen_tensor.cpp (100%) rename {include => lib/include}/pybind11/tests/test_eigen_tensor.inl (100%) rename {include => lib/include}/pybind11/tests/test_eigen_tensor.py (100%) rename {include => lib/include}/pybind11/tests/test_embed/CMakeLists.txt (100%) rename {include => lib/include}/pybind11/tests/test_embed/catch.cpp (100%) rename {include => lib/include}/pybind11/tests/test_embed/external_module.cpp (100%) rename {include => lib/include}/pybind11/tests/test_embed/test_interpreter.cpp (100%) rename {include => lib/include}/pybind11/tests/test_embed/test_interpreter.py (100%) rename {include => lib/include}/pybind11/tests/test_embed/test_trampoline.py (100%) rename {include => lib/include}/pybind11/tests/test_enum.cpp (100%) rename {include => lib/include}/pybind11/tests/test_enum.py (100%) rename {include => lib/include}/pybind11/tests/test_eval.cpp (100%) rename {include => lib/include}/pybind11/tests/test_eval.py (100%) rename {include => lib/include}/pybind11/tests/test_eval_call.py (100%) rename {include => lib/include}/pybind11/tests/test_exceptions.cpp (100%) rename {include => lib/include}/pybind11/tests/test_exceptions.h (100%) rename {include => lib/include}/pybind11/tests/test_exceptions.py (100%) rename {include => lib/include}/pybind11/tests/test_factory_constructors.cpp (100%) rename {include => lib/include}/pybind11/tests/test_factory_constructors.py (100%) rename {include => lib/include}/pybind11/tests/test_gil_scoped.cpp (100%) rename {include => lib/include}/pybind11/tests/test_gil_scoped.py (100%) rename {include => lib/include}/pybind11/tests/test_iostream.cpp (100%) rename {include => lib/include}/pybind11/tests/test_iostream.py (100%) rename {include => lib/include}/pybind11/tests/test_kwargs_and_defaults.cpp (100%) rename {include => lib/include}/pybind11/tests/test_kwargs_and_defaults.py (100%) rename {include => lib/include}/pybind11/tests/test_local_bindings.cpp (100%) rename {include => lib/include}/pybind11/tests/test_local_bindings.py (100%) rename {include => lib/include}/pybind11/tests/test_methods_and_attributes.cpp (100%) rename {include => lib/include}/pybind11/tests/test_methods_and_attributes.py (100%) rename {include => lib/include}/pybind11/tests/test_modules.cpp (100%) rename {include => lib/include}/pybind11/tests/test_modules.py (100%) rename {include => lib/include}/pybind11/tests/test_multiple_inheritance.cpp (100%) rename {include => lib/include}/pybind11/tests/test_multiple_inheritance.py (100%) rename {include => lib/include}/pybind11/tests/test_numpy_array.cpp (100%) rename {include => lib/include}/pybind11/tests/test_numpy_array.py (100%) rename {include => lib/include}/pybind11/tests/test_numpy_dtypes.cpp (100%) rename {include => lib/include}/pybind11/tests/test_numpy_dtypes.py (100%) rename {include => lib/include}/pybind11/tests/test_numpy_vectorize.cpp (100%) rename {include => lib/include}/pybind11/tests/test_numpy_vectorize.py (100%) rename {include => lib/include}/pybind11/tests/test_opaque_types.cpp (100%) rename {include => lib/include}/pybind11/tests/test_opaque_types.py (100%) rename {include => lib/include}/pybind11/tests/test_operator_overloading.cpp (100%) rename {include => lib/include}/pybind11/tests/test_operator_overloading.py (100%) rename {include => lib/include}/pybind11/tests/test_pickling.cpp (100%) rename {include => lib/include}/pybind11/tests/test_pickling.py (100%) rename {include => lib/include}/pybind11/tests/test_python_multiple_inheritance.cpp (100%) rename {include => lib/include}/pybind11/tests/test_python_multiple_inheritance.py (100%) rename {include => lib/include}/pybind11/tests/test_pytypes.cpp (100%) rename {include => lib/include}/pybind11/tests/test_pytypes.py (100%) rename {include => lib/include}/pybind11/tests/test_sequences_and_iterators.cpp (100%) rename {include => lib/include}/pybind11/tests/test_sequences_and_iterators.py (100%) rename {include => lib/include}/pybind11/tests/test_smart_ptr.cpp (100%) rename {include => lib/include}/pybind11/tests/test_smart_ptr.py (100%) rename {include => lib/include}/pybind11/tests/test_stl.cpp (100%) rename {include => lib/include}/pybind11/tests/test_stl.py (100%) rename {include => lib/include}/pybind11/tests/test_stl_binders.cpp (100%) rename {include => lib/include}/pybind11/tests/test_stl_binders.py (100%) rename {include => lib/include}/pybind11/tests/test_tagbased_polymorphic.cpp (100%) rename {include => lib/include}/pybind11/tests/test_tagbased_polymorphic.py (100%) rename {include => lib/include}/pybind11/tests/test_thread.cpp (100%) rename {include => lib/include}/pybind11/tests/test_thread.py (100%) rename {include => lib/include}/pybind11/tests/test_type_caster_pyobject_ptr.cpp (100%) rename {include => lib/include}/pybind11/tests/test_type_caster_pyobject_ptr.py (100%) rename {include => lib/include}/pybind11/tests/test_union.cpp (100%) rename {include => lib/include}/pybind11/tests/test_union.py (100%) rename {include => lib/include}/pybind11/tests/test_unnamed_namespace_a.cpp (100%) rename {include => lib/include}/pybind11/tests/test_unnamed_namespace_a.py (100%) rename {include => lib/include}/pybind11/tests/test_unnamed_namespace_b.cpp (100%) rename {include => lib/include}/pybind11/tests/test_unnamed_namespace_b.py (100%) rename {include => lib/include}/pybind11/tests/test_vector_unique_ptr_member.cpp (100%) rename {include => lib/include}/pybind11/tests/test_vector_unique_ptr_member.py (100%) rename {include => lib/include}/pybind11/tests/test_virtual_functions.cpp (100%) rename {include => lib/include}/pybind11/tests/test_virtual_functions.py (100%) rename {include => lib/include}/pybind11/tests/valgrind-numpy-scipy.supp (100%) rename {include => lib/include}/pybind11/tests/valgrind-python.supp (100%) rename {include => lib/include}/pybind11/tools/FindCatch.cmake (100%) rename {include => lib/include}/pybind11/tools/FindEigen3.cmake (100%) rename {include => lib/include}/pybind11/tools/FindPythonLibsNew.cmake (100%) rename {include => lib/include}/pybind11/tools/JoinPaths.cmake (100%) rename {include => lib/include}/pybind11/tools/check-style.sh (100%) rename {include => lib/include}/pybind11/tools/cmake_uninstall.cmake.in (100%) rename {include => lib/include}/pybind11/tools/codespell_ignore_lines_from_errors.py (100%) rename {include => lib/include}/pybind11/tools/libsize.py (100%) rename {include => lib/include}/pybind11/tools/make_changelog.py (100%) rename {include => lib/include}/pybind11/tools/pybind11.pc.in (100%) rename {include => lib/include}/pybind11/tools/pybind11Common.cmake (100%) rename {include => lib/include}/pybind11/tools/pybind11Config.cmake.in (100%) rename {include => lib/include}/pybind11/tools/pybind11GuessPythonExtSuffix.cmake (100%) rename {include => lib/include}/pybind11/tools/pybind11NewTools.cmake (100%) rename {include => lib/include}/pybind11/tools/pybind11Tools.cmake (100%) rename {include => lib/include}/pybind11/tools/pyproject.toml (100%) rename {include => lib/include}/pybind11/tools/setup_global.py.in (100%) rename {include => lib/include}/pybind11/tools/setup_main.py.in (100%) rename {include => lib/include}/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake (100%) rename {include => lib/include}/token_granter.hpp (100%) rename {src => lib/src}/token_granter.cpp (100%) rename {src => token_granter_wrapper}/token_granter_bindings.cpp (77%) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0e7089e..c3e916e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -2,9 +2,9 @@ name: CMake Build on: push: - branches: [main] + branches: [newVersion] pull_request: - branches: [main] + branches: [newVersion] jobs: build: diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index daa8185..27f7402 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -4,8 +4,8 @@ "name": "Mac", "includePath": [ "${workspaceFolder}/**", - "${workspaceFolder}/include/**`", - "${workspaceFolder}/src/**`" + "${workspaceFolder}/lib/include/**`", + "${workspaceFolder}/lib/src/**`" ], "defines": [], "macFrameworkPath": [ diff --git a/CMakeLists.txt b/CMakeLists.txt index 8422111..1da6405 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,14 +11,14 @@ find_package(CURL REQUIRED) # target_link_libraries(token_granter ${CURL_LIBRARIES}) # SHARED LIBRARY COMPILATION HERE -add_library(token_granter_shared SHARED src/token_granter.cpp) +add_library(token_granter_shared SHARED lib/src/token_granter.cpp) target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) # PYBINDING SHARED LIBRARY COMPILATION HERE -add_subdirectory(./include/pybind11) -pybind11_add_module(token_granter ./src/token_granter_bindings.cpp ./src/token_granter.cpp) +add_subdirectory(./lib/include/pybind11) +pybind11_add_module(token_granter ./lib/src/token_granter_bindings.cpp ./lib/src/token_granter.cpp) set_target_properties(token_granter PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) target_link_libraries(token_granter PRIVATE pybind11::module) target_link_libraries(token_granter PRIVATE ${CURL_LIBRARIES}) \ No newline at end of file diff --git a/include/json.hpp b/lib/include/json.hpp similarity index 100% rename from include/json.hpp rename to lib/include/json.hpp diff --git a/include/pybind11/.appveyor.yml b/lib/include/pybind11/.appveyor.yml similarity index 100% rename from include/pybind11/.appveyor.yml rename to lib/include/pybind11/.appveyor.yml diff --git a/include/pybind11/.clang-format b/lib/include/pybind11/.clang-format similarity index 100% rename from include/pybind11/.clang-format rename to lib/include/pybind11/.clang-format diff --git a/include/pybind11/.clang-tidy b/lib/include/pybind11/.clang-tidy similarity index 100% rename from include/pybind11/.clang-tidy rename to lib/include/pybind11/.clang-tidy diff --git a/include/pybind11/.cmake-format.yaml b/lib/include/pybind11/.cmake-format.yaml similarity index 100% rename from include/pybind11/.cmake-format.yaml rename to lib/include/pybind11/.cmake-format.yaml diff --git a/include/pybind11/.codespell-ignore-lines b/lib/include/pybind11/.codespell-ignore-lines similarity index 100% rename from include/pybind11/.codespell-ignore-lines rename to lib/include/pybind11/.codespell-ignore-lines diff --git a/include/pybind11/.gitattributes b/lib/include/pybind11/.gitattributes similarity index 100% rename from include/pybind11/.gitattributes rename to lib/include/pybind11/.gitattributes diff --git a/include/pybind11/.github/CODEOWNERS b/lib/include/pybind11/.github/CODEOWNERS similarity index 100% rename from include/pybind11/.github/CODEOWNERS rename to lib/include/pybind11/.github/CODEOWNERS diff --git a/include/pybind11/.github/CONTRIBUTING.md b/lib/include/pybind11/.github/CONTRIBUTING.md similarity index 100% rename from include/pybind11/.github/CONTRIBUTING.md rename to lib/include/pybind11/.github/CONTRIBUTING.md diff --git a/include/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml b/lib/include/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml similarity index 100% rename from include/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml rename to lib/include/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml diff --git a/include/pybind11/.github/ISSUE_TEMPLATE/config.yml b/lib/include/pybind11/.github/ISSUE_TEMPLATE/config.yml similarity index 100% rename from include/pybind11/.github/ISSUE_TEMPLATE/config.yml rename to lib/include/pybind11/.github/ISSUE_TEMPLATE/config.yml diff --git a/include/pybind11/.github/dependabot.yml b/lib/include/pybind11/.github/dependabot.yml similarity index 100% rename from include/pybind11/.github/dependabot.yml rename to lib/include/pybind11/.github/dependabot.yml diff --git a/include/pybind11/.github/labeler.yml b/lib/include/pybind11/.github/labeler.yml similarity index 100% rename from include/pybind11/.github/labeler.yml rename to lib/include/pybind11/.github/labeler.yml diff --git a/include/pybind11/.github/labeler_merged.yml b/lib/include/pybind11/.github/labeler_merged.yml similarity index 100% rename from include/pybind11/.github/labeler_merged.yml rename to lib/include/pybind11/.github/labeler_merged.yml diff --git a/include/pybind11/.github/matchers/pylint.json b/lib/include/pybind11/.github/matchers/pylint.json similarity index 100% rename from include/pybind11/.github/matchers/pylint.json rename to lib/include/pybind11/.github/matchers/pylint.json diff --git a/include/pybind11/.github/pull_request_template.md b/lib/include/pybind11/.github/pull_request_template.md similarity index 100% rename from include/pybind11/.github/pull_request_template.md rename to lib/include/pybind11/.github/pull_request_template.md diff --git a/include/pybind11/.github/workflows/ci.yml b/lib/include/pybind11/.github/workflows/ci.yml similarity index 100% rename from include/pybind11/.github/workflows/ci.yml rename to lib/include/pybind11/.github/workflows/ci.yml diff --git a/include/pybind11/.github/workflows/configure.yml b/lib/include/pybind11/.github/workflows/configure.yml similarity index 100% rename from include/pybind11/.github/workflows/configure.yml rename to lib/include/pybind11/.github/workflows/configure.yml diff --git a/include/pybind11/.github/workflows/format.yml b/lib/include/pybind11/.github/workflows/format.yml similarity index 100% rename from include/pybind11/.github/workflows/format.yml rename to lib/include/pybind11/.github/workflows/format.yml diff --git a/include/pybind11/.github/workflows/labeler.yml b/lib/include/pybind11/.github/workflows/labeler.yml similarity index 100% rename from include/pybind11/.github/workflows/labeler.yml rename to lib/include/pybind11/.github/workflows/labeler.yml diff --git a/include/pybind11/.github/workflows/pip.yml b/lib/include/pybind11/.github/workflows/pip.yml similarity index 100% rename from include/pybind11/.github/workflows/pip.yml rename to lib/include/pybind11/.github/workflows/pip.yml diff --git a/include/pybind11/.github/workflows/upstream.yml b/lib/include/pybind11/.github/workflows/upstream.yml similarity index 100% rename from include/pybind11/.github/workflows/upstream.yml rename to lib/include/pybind11/.github/workflows/upstream.yml diff --git a/include/pybind11/.gitignore b/lib/include/pybind11/.gitignore similarity index 100% rename from include/pybind11/.gitignore rename to lib/include/pybind11/.gitignore diff --git a/include/pybind11/.pre-commit-config.yaml b/lib/include/pybind11/.pre-commit-config.yaml similarity index 100% rename from include/pybind11/.pre-commit-config.yaml rename to lib/include/pybind11/.pre-commit-config.yaml diff --git a/include/pybind11/.readthedocs.yml b/lib/include/pybind11/.readthedocs.yml similarity index 100% rename from include/pybind11/.readthedocs.yml rename to lib/include/pybind11/.readthedocs.yml diff --git a/include/pybind11/CMakeLists.txt b/lib/include/pybind11/CMakeLists.txt similarity index 100% rename from include/pybind11/CMakeLists.txt rename to lib/include/pybind11/CMakeLists.txt diff --git a/include/pybind11/LICENSE b/lib/include/pybind11/LICENSE similarity index 100% rename from include/pybind11/LICENSE rename to lib/include/pybind11/LICENSE diff --git a/include/pybind11/MANIFEST.in b/lib/include/pybind11/MANIFEST.in similarity index 100% rename from include/pybind11/MANIFEST.in rename to lib/include/pybind11/MANIFEST.in diff --git a/include/pybind11/README.rst b/lib/include/pybind11/README.rst similarity index 100% rename from include/pybind11/README.rst rename to lib/include/pybind11/README.rst diff --git a/include/pybind11/SECURITY.md b/lib/include/pybind11/SECURITY.md similarity index 100% rename from include/pybind11/SECURITY.md rename to lib/include/pybind11/SECURITY.md diff --git a/include/pybind11/docs/Doxyfile b/lib/include/pybind11/docs/Doxyfile similarity index 100% rename from include/pybind11/docs/Doxyfile rename to lib/include/pybind11/docs/Doxyfile diff --git a/include/pybind11/docs/_static/css/custom.css b/lib/include/pybind11/docs/_static/css/custom.css similarity index 100% rename from include/pybind11/docs/_static/css/custom.css rename to lib/include/pybind11/docs/_static/css/custom.css diff --git a/include/pybind11/docs/advanced/cast/chrono.rst b/lib/include/pybind11/docs/advanced/cast/chrono.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/chrono.rst rename to lib/include/pybind11/docs/advanced/cast/chrono.rst diff --git a/include/pybind11/docs/advanced/cast/custom.rst b/lib/include/pybind11/docs/advanced/cast/custom.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/custom.rst rename to lib/include/pybind11/docs/advanced/cast/custom.rst diff --git a/include/pybind11/docs/advanced/cast/eigen.rst b/lib/include/pybind11/docs/advanced/cast/eigen.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/eigen.rst rename to lib/include/pybind11/docs/advanced/cast/eigen.rst diff --git a/include/pybind11/docs/advanced/cast/functional.rst b/lib/include/pybind11/docs/advanced/cast/functional.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/functional.rst rename to lib/include/pybind11/docs/advanced/cast/functional.rst diff --git a/include/pybind11/docs/advanced/cast/index.rst b/lib/include/pybind11/docs/advanced/cast/index.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/index.rst rename to lib/include/pybind11/docs/advanced/cast/index.rst diff --git a/include/pybind11/docs/advanced/cast/overview.rst b/lib/include/pybind11/docs/advanced/cast/overview.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/overview.rst rename to lib/include/pybind11/docs/advanced/cast/overview.rst diff --git a/include/pybind11/docs/advanced/cast/stl.rst b/lib/include/pybind11/docs/advanced/cast/stl.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/stl.rst rename to lib/include/pybind11/docs/advanced/cast/stl.rst diff --git a/include/pybind11/docs/advanced/cast/strings.rst b/lib/include/pybind11/docs/advanced/cast/strings.rst similarity index 100% rename from include/pybind11/docs/advanced/cast/strings.rst rename to lib/include/pybind11/docs/advanced/cast/strings.rst diff --git a/include/pybind11/docs/advanced/classes.rst b/lib/include/pybind11/docs/advanced/classes.rst similarity index 100% rename from include/pybind11/docs/advanced/classes.rst rename to lib/include/pybind11/docs/advanced/classes.rst diff --git a/include/pybind11/docs/advanced/embedding.rst b/lib/include/pybind11/docs/advanced/embedding.rst similarity index 100% rename from include/pybind11/docs/advanced/embedding.rst rename to lib/include/pybind11/docs/advanced/embedding.rst diff --git a/include/pybind11/docs/advanced/exceptions.rst b/lib/include/pybind11/docs/advanced/exceptions.rst similarity index 100% rename from include/pybind11/docs/advanced/exceptions.rst rename to lib/include/pybind11/docs/advanced/exceptions.rst diff --git a/include/pybind11/docs/advanced/functions.rst b/lib/include/pybind11/docs/advanced/functions.rst similarity index 100% rename from include/pybind11/docs/advanced/functions.rst rename to lib/include/pybind11/docs/advanced/functions.rst diff --git a/include/pybind11/docs/advanced/misc.rst b/lib/include/pybind11/docs/advanced/misc.rst similarity index 100% rename from include/pybind11/docs/advanced/misc.rst rename to lib/include/pybind11/docs/advanced/misc.rst diff --git a/include/pybind11/docs/advanced/pycpp/index.rst b/lib/include/pybind11/docs/advanced/pycpp/index.rst similarity index 100% rename from include/pybind11/docs/advanced/pycpp/index.rst rename to lib/include/pybind11/docs/advanced/pycpp/index.rst diff --git a/include/pybind11/docs/advanced/pycpp/numpy.rst b/lib/include/pybind11/docs/advanced/pycpp/numpy.rst similarity index 100% rename from include/pybind11/docs/advanced/pycpp/numpy.rst rename to lib/include/pybind11/docs/advanced/pycpp/numpy.rst diff --git a/include/pybind11/docs/advanced/pycpp/object.rst b/lib/include/pybind11/docs/advanced/pycpp/object.rst similarity index 100% rename from include/pybind11/docs/advanced/pycpp/object.rst rename to lib/include/pybind11/docs/advanced/pycpp/object.rst diff --git a/include/pybind11/docs/advanced/pycpp/utilities.rst b/lib/include/pybind11/docs/advanced/pycpp/utilities.rst similarity index 100% rename from include/pybind11/docs/advanced/pycpp/utilities.rst rename to lib/include/pybind11/docs/advanced/pycpp/utilities.rst diff --git a/include/pybind11/docs/advanced/smart_ptrs.rst b/lib/include/pybind11/docs/advanced/smart_ptrs.rst similarity index 100% rename from include/pybind11/docs/advanced/smart_ptrs.rst rename to lib/include/pybind11/docs/advanced/smart_ptrs.rst diff --git a/include/pybind11/docs/basics.rst b/lib/include/pybind11/docs/basics.rst similarity index 100% rename from include/pybind11/docs/basics.rst rename to lib/include/pybind11/docs/basics.rst diff --git a/include/pybind11/docs/benchmark.py b/lib/include/pybind11/docs/benchmark.py similarity index 100% rename from include/pybind11/docs/benchmark.py rename to lib/include/pybind11/docs/benchmark.py diff --git a/include/pybind11/docs/benchmark.rst b/lib/include/pybind11/docs/benchmark.rst similarity index 100% rename from include/pybind11/docs/benchmark.rst rename to lib/include/pybind11/docs/benchmark.rst diff --git a/include/pybind11/docs/changelog.rst b/lib/include/pybind11/docs/changelog.rst similarity index 100% rename from include/pybind11/docs/changelog.rst rename to lib/include/pybind11/docs/changelog.rst diff --git a/include/pybind11/docs/classes.rst b/lib/include/pybind11/docs/classes.rst similarity index 100% rename from include/pybind11/docs/classes.rst rename to lib/include/pybind11/docs/classes.rst diff --git a/include/pybind11/docs/cmake/index.rst b/lib/include/pybind11/docs/cmake/index.rst similarity index 100% rename from include/pybind11/docs/cmake/index.rst rename to lib/include/pybind11/docs/cmake/index.rst diff --git a/include/pybind11/docs/compiling.rst b/lib/include/pybind11/docs/compiling.rst similarity index 100% rename from include/pybind11/docs/compiling.rst rename to lib/include/pybind11/docs/compiling.rst diff --git a/include/pybind11/docs/conf.py b/lib/include/pybind11/docs/conf.py similarity index 100% rename from include/pybind11/docs/conf.py rename to lib/include/pybind11/docs/conf.py diff --git a/include/pybind11/docs/faq.rst b/lib/include/pybind11/docs/faq.rst similarity index 100% rename from include/pybind11/docs/faq.rst rename to lib/include/pybind11/docs/faq.rst diff --git a/include/pybind11/docs/index.rst b/lib/include/pybind11/docs/index.rst similarity index 100% rename from include/pybind11/docs/index.rst rename to lib/include/pybind11/docs/index.rst diff --git a/include/pybind11/docs/installing.rst b/lib/include/pybind11/docs/installing.rst similarity index 100% rename from include/pybind11/docs/installing.rst rename to lib/include/pybind11/docs/installing.rst diff --git a/include/pybind11/docs/limitations.rst b/lib/include/pybind11/docs/limitations.rst similarity index 100% rename from include/pybind11/docs/limitations.rst rename to lib/include/pybind11/docs/limitations.rst diff --git a/include/pybind11/docs/pybind11-logo.png b/lib/include/pybind11/docs/pybind11-logo.png similarity index 100% rename from include/pybind11/docs/pybind11-logo.png rename to lib/include/pybind11/docs/pybind11-logo.png diff --git a/include/pybind11/docs/pybind11_vs_boost_python1.png b/lib/include/pybind11/docs/pybind11_vs_boost_python1.png similarity index 100% rename from include/pybind11/docs/pybind11_vs_boost_python1.png rename to lib/include/pybind11/docs/pybind11_vs_boost_python1.png diff --git a/include/pybind11/docs/pybind11_vs_boost_python1.svg b/lib/include/pybind11/docs/pybind11_vs_boost_python1.svg similarity index 100% rename from include/pybind11/docs/pybind11_vs_boost_python1.svg rename to lib/include/pybind11/docs/pybind11_vs_boost_python1.svg diff --git a/include/pybind11/docs/pybind11_vs_boost_python2.png b/lib/include/pybind11/docs/pybind11_vs_boost_python2.png similarity index 100% rename from include/pybind11/docs/pybind11_vs_boost_python2.png rename to lib/include/pybind11/docs/pybind11_vs_boost_python2.png diff --git a/include/pybind11/docs/pybind11_vs_boost_python2.svg b/lib/include/pybind11/docs/pybind11_vs_boost_python2.svg similarity index 100% rename from include/pybind11/docs/pybind11_vs_boost_python2.svg rename to lib/include/pybind11/docs/pybind11_vs_boost_python2.svg diff --git a/include/pybind11/docs/reference.rst b/lib/include/pybind11/docs/reference.rst similarity index 100% rename from include/pybind11/docs/reference.rst rename to lib/include/pybind11/docs/reference.rst diff --git a/include/pybind11/docs/release.rst b/lib/include/pybind11/docs/release.rst similarity index 100% rename from include/pybind11/docs/release.rst rename to lib/include/pybind11/docs/release.rst diff --git a/include/pybind11/docs/requirements.in b/lib/include/pybind11/docs/requirements.in similarity index 100% rename from include/pybind11/docs/requirements.in rename to lib/include/pybind11/docs/requirements.in diff --git a/include/pybind11/docs/requirements.txt b/lib/include/pybind11/docs/requirements.txt similarity index 100% rename from include/pybind11/docs/requirements.txt rename to lib/include/pybind11/docs/requirements.txt diff --git a/include/pybind11/docs/upgrade.rst b/lib/include/pybind11/docs/upgrade.rst similarity index 100% rename from include/pybind11/docs/upgrade.rst rename to lib/include/pybind11/docs/upgrade.rst diff --git a/include/pybind11/include/pybind11/attr.h b/lib/include/pybind11/include/pybind11/attr.h similarity index 100% rename from include/pybind11/include/pybind11/attr.h rename to lib/include/pybind11/include/pybind11/attr.h diff --git a/include/pybind11/include/pybind11/buffer_info.h b/lib/include/pybind11/include/pybind11/buffer_info.h similarity index 100% rename from include/pybind11/include/pybind11/buffer_info.h rename to lib/include/pybind11/include/pybind11/buffer_info.h diff --git a/include/pybind11/include/pybind11/cast.h b/lib/include/pybind11/include/pybind11/cast.h similarity index 100% rename from include/pybind11/include/pybind11/cast.h rename to lib/include/pybind11/include/pybind11/cast.h diff --git a/include/pybind11/include/pybind11/chrono.h b/lib/include/pybind11/include/pybind11/chrono.h similarity index 100% rename from include/pybind11/include/pybind11/chrono.h rename to lib/include/pybind11/include/pybind11/chrono.h diff --git a/include/pybind11/include/pybind11/common.h b/lib/include/pybind11/include/pybind11/common.h similarity index 100% rename from include/pybind11/include/pybind11/common.h rename to lib/include/pybind11/include/pybind11/common.h diff --git a/include/pybind11/include/pybind11/complex.h b/lib/include/pybind11/include/pybind11/complex.h similarity index 100% rename from include/pybind11/include/pybind11/complex.h rename to lib/include/pybind11/include/pybind11/complex.h diff --git a/include/pybind11/include/pybind11/detail/class.h b/lib/include/pybind11/include/pybind11/detail/class.h similarity index 100% rename from include/pybind11/include/pybind11/detail/class.h rename to lib/include/pybind11/include/pybind11/detail/class.h diff --git a/include/pybind11/include/pybind11/detail/common.h b/lib/include/pybind11/include/pybind11/detail/common.h similarity index 100% rename from include/pybind11/include/pybind11/detail/common.h rename to lib/include/pybind11/include/pybind11/detail/common.h diff --git a/include/pybind11/include/pybind11/detail/descr.h b/lib/include/pybind11/include/pybind11/detail/descr.h similarity index 100% rename from include/pybind11/include/pybind11/detail/descr.h rename to lib/include/pybind11/include/pybind11/detail/descr.h diff --git a/include/pybind11/include/pybind11/detail/init.h b/lib/include/pybind11/include/pybind11/detail/init.h similarity index 100% rename from include/pybind11/include/pybind11/detail/init.h rename to lib/include/pybind11/include/pybind11/detail/init.h diff --git a/include/pybind11/include/pybind11/detail/internals.h b/lib/include/pybind11/include/pybind11/detail/internals.h similarity index 100% rename from include/pybind11/include/pybind11/detail/internals.h rename to lib/include/pybind11/include/pybind11/detail/internals.h diff --git a/include/pybind11/include/pybind11/detail/type_caster_base.h b/lib/include/pybind11/include/pybind11/detail/type_caster_base.h similarity index 100% rename from include/pybind11/include/pybind11/detail/type_caster_base.h rename to lib/include/pybind11/include/pybind11/detail/type_caster_base.h diff --git a/include/pybind11/include/pybind11/detail/typeid.h b/lib/include/pybind11/include/pybind11/detail/typeid.h similarity index 100% rename from include/pybind11/include/pybind11/detail/typeid.h rename to lib/include/pybind11/include/pybind11/detail/typeid.h diff --git a/include/pybind11/include/pybind11/eigen.h b/lib/include/pybind11/include/pybind11/eigen.h similarity index 100% rename from include/pybind11/include/pybind11/eigen.h rename to lib/include/pybind11/include/pybind11/eigen.h diff --git a/include/pybind11/include/pybind11/eigen/common.h b/lib/include/pybind11/include/pybind11/eigen/common.h similarity index 100% rename from include/pybind11/include/pybind11/eigen/common.h rename to lib/include/pybind11/include/pybind11/eigen/common.h diff --git a/include/pybind11/include/pybind11/eigen/matrix.h b/lib/include/pybind11/include/pybind11/eigen/matrix.h similarity index 100% rename from include/pybind11/include/pybind11/eigen/matrix.h rename to lib/include/pybind11/include/pybind11/eigen/matrix.h diff --git a/include/pybind11/include/pybind11/eigen/tensor.h b/lib/include/pybind11/include/pybind11/eigen/tensor.h similarity index 100% rename from include/pybind11/include/pybind11/eigen/tensor.h rename to lib/include/pybind11/include/pybind11/eigen/tensor.h diff --git a/include/pybind11/include/pybind11/embed.h b/lib/include/pybind11/include/pybind11/embed.h similarity index 100% rename from include/pybind11/include/pybind11/embed.h rename to lib/include/pybind11/include/pybind11/embed.h diff --git a/include/pybind11/include/pybind11/eval.h b/lib/include/pybind11/include/pybind11/eval.h similarity index 100% rename from include/pybind11/include/pybind11/eval.h rename to lib/include/pybind11/include/pybind11/eval.h diff --git a/include/pybind11/include/pybind11/functional.h b/lib/include/pybind11/include/pybind11/functional.h similarity index 100% rename from include/pybind11/include/pybind11/functional.h rename to lib/include/pybind11/include/pybind11/functional.h diff --git a/include/pybind11/include/pybind11/gil.h b/lib/include/pybind11/include/pybind11/gil.h similarity index 100% rename from include/pybind11/include/pybind11/gil.h rename to lib/include/pybind11/include/pybind11/gil.h diff --git a/include/pybind11/include/pybind11/gil_safe_call_once.h b/lib/include/pybind11/include/pybind11/gil_safe_call_once.h similarity index 100% rename from include/pybind11/include/pybind11/gil_safe_call_once.h rename to lib/include/pybind11/include/pybind11/gil_safe_call_once.h diff --git a/include/pybind11/include/pybind11/iostream.h b/lib/include/pybind11/include/pybind11/iostream.h similarity index 100% rename from include/pybind11/include/pybind11/iostream.h rename to lib/include/pybind11/include/pybind11/iostream.h diff --git a/include/pybind11/include/pybind11/numpy.h b/lib/include/pybind11/include/pybind11/numpy.h similarity index 100% rename from include/pybind11/include/pybind11/numpy.h rename to lib/include/pybind11/include/pybind11/numpy.h diff --git a/include/pybind11/include/pybind11/operators.h b/lib/include/pybind11/include/pybind11/operators.h similarity index 100% rename from include/pybind11/include/pybind11/operators.h rename to lib/include/pybind11/include/pybind11/operators.h diff --git a/include/pybind11/include/pybind11/options.h b/lib/include/pybind11/include/pybind11/options.h similarity index 100% rename from include/pybind11/include/pybind11/options.h rename to lib/include/pybind11/include/pybind11/options.h diff --git a/include/pybind11/include/pybind11/pybind11.h b/lib/include/pybind11/include/pybind11/pybind11.h similarity index 100% rename from include/pybind11/include/pybind11/pybind11.h rename to lib/include/pybind11/include/pybind11/pybind11.h diff --git a/include/pybind11/include/pybind11/pytypes.h b/lib/include/pybind11/include/pybind11/pytypes.h similarity index 100% rename from include/pybind11/include/pybind11/pytypes.h rename to lib/include/pybind11/include/pybind11/pytypes.h diff --git a/include/pybind11/include/pybind11/stl.h b/lib/include/pybind11/include/pybind11/stl.h similarity index 100% rename from include/pybind11/include/pybind11/stl.h rename to lib/include/pybind11/include/pybind11/stl.h diff --git a/include/pybind11/include/pybind11/stl/filesystem.h b/lib/include/pybind11/include/pybind11/stl/filesystem.h similarity index 100% rename from include/pybind11/include/pybind11/stl/filesystem.h rename to lib/include/pybind11/include/pybind11/stl/filesystem.h diff --git a/include/pybind11/include/pybind11/stl_bind.h b/lib/include/pybind11/include/pybind11/stl_bind.h similarity index 100% rename from include/pybind11/include/pybind11/stl_bind.h rename to lib/include/pybind11/include/pybind11/stl_bind.h diff --git a/include/pybind11/include/pybind11/type_caster_pyobject_ptr.h b/lib/include/pybind11/include/pybind11/type_caster_pyobject_ptr.h similarity index 100% rename from include/pybind11/include/pybind11/type_caster_pyobject_ptr.h rename to lib/include/pybind11/include/pybind11/type_caster_pyobject_ptr.h diff --git a/include/pybind11/include/pybind11/typing.h b/lib/include/pybind11/include/pybind11/typing.h similarity index 100% rename from include/pybind11/include/pybind11/typing.h rename to lib/include/pybind11/include/pybind11/typing.h diff --git a/include/pybind11/noxfile.py b/lib/include/pybind11/noxfile.py similarity index 100% rename from include/pybind11/noxfile.py rename to lib/include/pybind11/noxfile.py diff --git a/include/pybind11/pybind11/__init__.py b/lib/include/pybind11/pybind11/__init__.py similarity index 100% rename from include/pybind11/pybind11/__init__.py rename to lib/include/pybind11/pybind11/__init__.py diff --git a/include/pybind11/pybind11/__main__.py b/lib/include/pybind11/pybind11/__main__.py similarity index 100% rename from include/pybind11/pybind11/__main__.py rename to lib/include/pybind11/pybind11/__main__.py diff --git a/include/pybind11/pybind11/_version.py b/lib/include/pybind11/pybind11/_version.py similarity index 100% rename from include/pybind11/pybind11/_version.py rename to lib/include/pybind11/pybind11/_version.py diff --git a/include/pybind11/pybind11/commands.py b/lib/include/pybind11/pybind11/commands.py similarity index 100% rename from include/pybind11/pybind11/commands.py rename to lib/include/pybind11/pybind11/commands.py diff --git a/include/pybind11/pybind11/py.typed b/lib/include/pybind11/pybind11/py.typed similarity index 100% rename from include/pybind11/pybind11/py.typed rename to lib/include/pybind11/pybind11/py.typed diff --git a/include/pybind11/pybind11/setup_helpers.py b/lib/include/pybind11/pybind11/setup_helpers.py similarity index 100% rename from include/pybind11/pybind11/setup_helpers.py rename to lib/include/pybind11/pybind11/setup_helpers.py diff --git a/include/pybind11/pyproject.toml b/lib/include/pybind11/pyproject.toml similarity index 100% rename from include/pybind11/pyproject.toml rename to lib/include/pybind11/pyproject.toml diff --git a/include/pybind11/setup.cfg b/lib/include/pybind11/setup.cfg similarity index 100% rename from include/pybind11/setup.cfg rename to lib/include/pybind11/setup.cfg diff --git a/include/pybind11/setup.py b/lib/include/pybind11/setup.py similarity index 100% rename from include/pybind11/setup.py rename to lib/include/pybind11/setup.py diff --git a/include/pybind11/tests/CMakeLists.txt b/lib/include/pybind11/tests/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/CMakeLists.txt rename to lib/include/pybind11/tests/CMakeLists.txt diff --git a/include/pybind11/tests/conftest.py b/lib/include/pybind11/tests/conftest.py similarity index 100% rename from include/pybind11/tests/conftest.py rename to lib/include/pybind11/tests/conftest.py diff --git a/include/pybind11/tests/constructor_stats.h b/lib/include/pybind11/tests/constructor_stats.h similarity index 100% rename from include/pybind11/tests/constructor_stats.h rename to lib/include/pybind11/tests/constructor_stats.h diff --git a/include/pybind11/tests/cross_module_gil_utils.cpp b/lib/include/pybind11/tests/cross_module_gil_utils.cpp similarity index 100% rename from include/pybind11/tests/cross_module_gil_utils.cpp rename to lib/include/pybind11/tests/cross_module_gil_utils.cpp diff --git a/include/pybind11/tests/cross_module_interleaved_error_already_set.cpp b/lib/include/pybind11/tests/cross_module_interleaved_error_already_set.cpp similarity index 100% rename from include/pybind11/tests/cross_module_interleaved_error_already_set.cpp rename to lib/include/pybind11/tests/cross_module_interleaved_error_already_set.cpp diff --git a/include/pybind11/tests/eigen_tensor_avoid_stl_array.cpp b/lib/include/pybind11/tests/eigen_tensor_avoid_stl_array.cpp similarity index 100% rename from include/pybind11/tests/eigen_tensor_avoid_stl_array.cpp rename to lib/include/pybind11/tests/eigen_tensor_avoid_stl_array.cpp diff --git a/include/pybind11/tests/env.py b/lib/include/pybind11/tests/env.py similarity index 100% rename from include/pybind11/tests/env.py rename to lib/include/pybind11/tests/env.py diff --git a/include/pybind11/tests/extra_python_package/pytest.ini b/lib/include/pybind11/tests/extra_python_package/pytest.ini similarity index 100% rename from include/pybind11/tests/extra_python_package/pytest.ini rename to lib/include/pybind11/tests/extra_python_package/pytest.ini diff --git a/include/pybind11/tests/extra_python_package/test_files.py b/lib/include/pybind11/tests/extra_python_package/test_files.py similarity index 100% rename from include/pybind11/tests/extra_python_package/test_files.py rename to lib/include/pybind11/tests/extra_python_package/test_files.py diff --git a/include/pybind11/tests/extra_setuptools/pytest.ini b/lib/include/pybind11/tests/extra_setuptools/pytest.ini similarity index 100% rename from include/pybind11/tests/extra_setuptools/pytest.ini rename to lib/include/pybind11/tests/extra_setuptools/pytest.ini diff --git a/include/pybind11/tests/extra_setuptools/test_setuphelper.py b/lib/include/pybind11/tests/extra_setuptools/test_setuphelper.py similarity index 100% rename from include/pybind11/tests/extra_setuptools/test_setuphelper.py rename to lib/include/pybind11/tests/extra_setuptools/test_setuphelper.py diff --git a/include/pybind11/tests/local_bindings.h b/lib/include/pybind11/tests/local_bindings.h similarity index 100% rename from include/pybind11/tests/local_bindings.h rename to lib/include/pybind11/tests/local_bindings.h diff --git a/include/pybind11/tests/object.h b/lib/include/pybind11/tests/object.h similarity index 100% rename from include/pybind11/tests/object.h rename to lib/include/pybind11/tests/object.h diff --git a/include/pybind11/tests/pybind11_cross_module_tests.cpp b/lib/include/pybind11/tests/pybind11_cross_module_tests.cpp similarity index 100% rename from include/pybind11/tests/pybind11_cross_module_tests.cpp rename to lib/include/pybind11/tests/pybind11_cross_module_tests.cpp diff --git a/include/pybind11/tests/pybind11_tests.cpp b/lib/include/pybind11/tests/pybind11_tests.cpp similarity index 100% rename from include/pybind11/tests/pybind11_tests.cpp rename to lib/include/pybind11/tests/pybind11_tests.cpp diff --git a/include/pybind11/tests/pybind11_tests.h b/lib/include/pybind11/tests/pybind11_tests.h similarity index 100% rename from include/pybind11/tests/pybind11_tests.h rename to lib/include/pybind11/tests/pybind11_tests.h diff --git a/include/pybind11/tests/pytest.ini b/lib/include/pybind11/tests/pytest.ini similarity index 100% rename from include/pybind11/tests/pytest.ini rename to lib/include/pybind11/tests/pytest.ini diff --git a/include/pybind11/tests/requirements.txt b/lib/include/pybind11/tests/requirements.txt similarity index 100% rename from include/pybind11/tests/requirements.txt rename to lib/include/pybind11/tests/requirements.txt diff --git a/include/pybind11/tests/test_async.cpp b/lib/include/pybind11/tests/test_async.cpp similarity index 100% rename from include/pybind11/tests/test_async.cpp rename to lib/include/pybind11/tests/test_async.cpp diff --git a/include/pybind11/tests/test_async.py b/lib/include/pybind11/tests/test_async.py similarity index 100% rename from include/pybind11/tests/test_async.py rename to lib/include/pybind11/tests/test_async.py diff --git a/include/pybind11/tests/test_buffers.cpp b/lib/include/pybind11/tests/test_buffers.cpp similarity index 100% rename from include/pybind11/tests/test_buffers.cpp rename to lib/include/pybind11/tests/test_buffers.cpp diff --git a/include/pybind11/tests/test_buffers.py b/lib/include/pybind11/tests/test_buffers.py similarity index 100% rename from include/pybind11/tests/test_buffers.py rename to lib/include/pybind11/tests/test_buffers.py diff --git a/include/pybind11/tests/test_builtin_casters.cpp b/lib/include/pybind11/tests/test_builtin_casters.cpp similarity index 100% rename from include/pybind11/tests/test_builtin_casters.cpp rename to lib/include/pybind11/tests/test_builtin_casters.cpp diff --git a/include/pybind11/tests/test_builtin_casters.py b/lib/include/pybind11/tests/test_builtin_casters.py similarity index 100% rename from include/pybind11/tests/test_builtin_casters.py rename to lib/include/pybind11/tests/test_builtin_casters.py diff --git a/include/pybind11/tests/test_call_policies.cpp b/lib/include/pybind11/tests/test_call_policies.cpp similarity index 100% rename from include/pybind11/tests/test_call_policies.cpp rename to lib/include/pybind11/tests/test_call_policies.cpp diff --git a/include/pybind11/tests/test_call_policies.py b/lib/include/pybind11/tests/test_call_policies.py similarity index 100% rename from include/pybind11/tests/test_call_policies.py rename to lib/include/pybind11/tests/test_call_policies.py diff --git a/include/pybind11/tests/test_callbacks.cpp b/lib/include/pybind11/tests/test_callbacks.cpp similarity index 100% rename from include/pybind11/tests/test_callbacks.cpp rename to lib/include/pybind11/tests/test_callbacks.cpp diff --git a/include/pybind11/tests/test_callbacks.py b/lib/include/pybind11/tests/test_callbacks.py similarity index 100% rename from include/pybind11/tests/test_callbacks.py rename to lib/include/pybind11/tests/test_callbacks.py diff --git a/include/pybind11/tests/test_chrono.cpp b/lib/include/pybind11/tests/test_chrono.cpp similarity index 100% rename from include/pybind11/tests/test_chrono.cpp rename to lib/include/pybind11/tests/test_chrono.cpp diff --git a/include/pybind11/tests/test_chrono.py b/lib/include/pybind11/tests/test_chrono.py similarity index 100% rename from include/pybind11/tests/test_chrono.py rename to lib/include/pybind11/tests/test_chrono.py diff --git a/include/pybind11/tests/test_class.cpp b/lib/include/pybind11/tests/test_class.cpp similarity index 100% rename from include/pybind11/tests/test_class.cpp rename to lib/include/pybind11/tests/test_class.cpp diff --git a/include/pybind11/tests/test_class.py b/lib/include/pybind11/tests/test_class.py similarity index 100% rename from include/pybind11/tests/test_class.py rename to lib/include/pybind11/tests/test_class.py diff --git a/include/pybind11/tests/test_cmake_build/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/embed.cpp b/lib/include/pybind11/tests/test_cmake_build/embed.cpp similarity index 100% rename from include/pybind11/tests/test_cmake_build/embed.cpp rename to lib/include/pybind11/tests/test_cmake_build/embed.cpp diff --git a/include/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/main.cpp b/lib/include/pybind11/tests/test_cmake_build/main.cpp similarity index 100% rename from include/pybind11/tests/test_cmake_build/main.cpp rename to lib/include/pybind11/tests/test_cmake_build/main.cpp diff --git a/include/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt b/lib/include/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt rename to lib/include/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt diff --git a/include/pybind11/tests/test_cmake_build/test.py b/lib/include/pybind11/tests/test_cmake_build/test.py similarity index 100% rename from include/pybind11/tests/test_cmake_build/test.py rename to lib/include/pybind11/tests/test_cmake_build/test.py diff --git a/include/pybind11/tests/test_const_name.cpp b/lib/include/pybind11/tests/test_const_name.cpp similarity index 100% rename from include/pybind11/tests/test_const_name.cpp rename to lib/include/pybind11/tests/test_const_name.cpp diff --git a/include/pybind11/tests/test_const_name.py b/lib/include/pybind11/tests/test_const_name.py similarity index 100% rename from include/pybind11/tests/test_const_name.py rename to lib/include/pybind11/tests/test_const_name.py diff --git a/include/pybind11/tests/test_constants_and_functions.cpp b/lib/include/pybind11/tests/test_constants_and_functions.cpp similarity index 100% rename from include/pybind11/tests/test_constants_and_functions.cpp rename to lib/include/pybind11/tests/test_constants_and_functions.cpp diff --git a/include/pybind11/tests/test_constants_and_functions.py b/lib/include/pybind11/tests/test_constants_and_functions.py similarity index 100% rename from include/pybind11/tests/test_constants_and_functions.py rename to lib/include/pybind11/tests/test_constants_and_functions.py diff --git a/include/pybind11/tests/test_copy_move.cpp b/lib/include/pybind11/tests/test_copy_move.cpp similarity index 100% rename from include/pybind11/tests/test_copy_move.cpp rename to lib/include/pybind11/tests/test_copy_move.cpp diff --git a/include/pybind11/tests/test_copy_move.py b/lib/include/pybind11/tests/test_copy_move.py similarity index 100% rename from include/pybind11/tests/test_copy_move.py rename to lib/include/pybind11/tests/test_copy_move.py diff --git a/include/pybind11/tests/test_custom_type_casters.cpp b/lib/include/pybind11/tests/test_custom_type_casters.cpp similarity index 100% rename from include/pybind11/tests/test_custom_type_casters.cpp rename to lib/include/pybind11/tests/test_custom_type_casters.cpp diff --git a/include/pybind11/tests/test_custom_type_casters.py b/lib/include/pybind11/tests/test_custom_type_casters.py similarity index 100% rename from include/pybind11/tests/test_custom_type_casters.py rename to lib/include/pybind11/tests/test_custom_type_casters.py diff --git a/include/pybind11/tests/test_custom_type_setup.cpp b/lib/include/pybind11/tests/test_custom_type_setup.cpp similarity index 100% rename from include/pybind11/tests/test_custom_type_setup.cpp rename to lib/include/pybind11/tests/test_custom_type_setup.cpp diff --git a/include/pybind11/tests/test_custom_type_setup.py b/lib/include/pybind11/tests/test_custom_type_setup.py similarity index 100% rename from include/pybind11/tests/test_custom_type_setup.py rename to lib/include/pybind11/tests/test_custom_type_setup.py diff --git a/include/pybind11/tests/test_docstring_options.cpp b/lib/include/pybind11/tests/test_docstring_options.cpp similarity index 100% rename from include/pybind11/tests/test_docstring_options.cpp rename to lib/include/pybind11/tests/test_docstring_options.cpp diff --git a/include/pybind11/tests/test_docstring_options.py b/lib/include/pybind11/tests/test_docstring_options.py similarity index 100% rename from include/pybind11/tests/test_docstring_options.py rename to lib/include/pybind11/tests/test_docstring_options.py diff --git a/include/pybind11/tests/test_eigen_matrix.cpp b/lib/include/pybind11/tests/test_eigen_matrix.cpp similarity index 100% rename from include/pybind11/tests/test_eigen_matrix.cpp rename to lib/include/pybind11/tests/test_eigen_matrix.cpp diff --git a/include/pybind11/tests/test_eigen_matrix.py b/lib/include/pybind11/tests/test_eigen_matrix.py similarity index 100% rename from include/pybind11/tests/test_eigen_matrix.py rename to lib/include/pybind11/tests/test_eigen_matrix.py diff --git a/include/pybind11/tests/test_eigen_tensor.cpp b/lib/include/pybind11/tests/test_eigen_tensor.cpp similarity index 100% rename from include/pybind11/tests/test_eigen_tensor.cpp rename to lib/include/pybind11/tests/test_eigen_tensor.cpp diff --git a/include/pybind11/tests/test_eigen_tensor.inl b/lib/include/pybind11/tests/test_eigen_tensor.inl similarity index 100% rename from include/pybind11/tests/test_eigen_tensor.inl rename to lib/include/pybind11/tests/test_eigen_tensor.inl diff --git a/include/pybind11/tests/test_eigen_tensor.py b/lib/include/pybind11/tests/test_eigen_tensor.py similarity index 100% rename from include/pybind11/tests/test_eigen_tensor.py rename to lib/include/pybind11/tests/test_eigen_tensor.py diff --git a/include/pybind11/tests/test_embed/CMakeLists.txt b/lib/include/pybind11/tests/test_embed/CMakeLists.txt similarity index 100% rename from include/pybind11/tests/test_embed/CMakeLists.txt rename to lib/include/pybind11/tests/test_embed/CMakeLists.txt diff --git a/include/pybind11/tests/test_embed/catch.cpp b/lib/include/pybind11/tests/test_embed/catch.cpp similarity index 100% rename from include/pybind11/tests/test_embed/catch.cpp rename to lib/include/pybind11/tests/test_embed/catch.cpp diff --git a/include/pybind11/tests/test_embed/external_module.cpp b/lib/include/pybind11/tests/test_embed/external_module.cpp similarity index 100% rename from include/pybind11/tests/test_embed/external_module.cpp rename to lib/include/pybind11/tests/test_embed/external_module.cpp diff --git a/include/pybind11/tests/test_embed/test_interpreter.cpp b/lib/include/pybind11/tests/test_embed/test_interpreter.cpp similarity index 100% rename from include/pybind11/tests/test_embed/test_interpreter.cpp rename to lib/include/pybind11/tests/test_embed/test_interpreter.cpp diff --git a/include/pybind11/tests/test_embed/test_interpreter.py b/lib/include/pybind11/tests/test_embed/test_interpreter.py similarity index 100% rename from include/pybind11/tests/test_embed/test_interpreter.py rename to lib/include/pybind11/tests/test_embed/test_interpreter.py diff --git a/include/pybind11/tests/test_embed/test_trampoline.py b/lib/include/pybind11/tests/test_embed/test_trampoline.py similarity index 100% rename from include/pybind11/tests/test_embed/test_trampoline.py rename to lib/include/pybind11/tests/test_embed/test_trampoline.py diff --git a/include/pybind11/tests/test_enum.cpp b/lib/include/pybind11/tests/test_enum.cpp similarity index 100% rename from include/pybind11/tests/test_enum.cpp rename to lib/include/pybind11/tests/test_enum.cpp diff --git a/include/pybind11/tests/test_enum.py b/lib/include/pybind11/tests/test_enum.py similarity index 100% rename from include/pybind11/tests/test_enum.py rename to lib/include/pybind11/tests/test_enum.py diff --git a/include/pybind11/tests/test_eval.cpp b/lib/include/pybind11/tests/test_eval.cpp similarity index 100% rename from include/pybind11/tests/test_eval.cpp rename to lib/include/pybind11/tests/test_eval.cpp diff --git a/include/pybind11/tests/test_eval.py b/lib/include/pybind11/tests/test_eval.py similarity index 100% rename from include/pybind11/tests/test_eval.py rename to lib/include/pybind11/tests/test_eval.py diff --git a/include/pybind11/tests/test_eval_call.py b/lib/include/pybind11/tests/test_eval_call.py similarity index 100% rename from include/pybind11/tests/test_eval_call.py rename to lib/include/pybind11/tests/test_eval_call.py diff --git a/include/pybind11/tests/test_exceptions.cpp b/lib/include/pybind11/tests/test_exceptions.cpp similarity index 100% rename from include/pybind11/tests/test_exceptions.cpp rename to lib/include/pybind11/tests/test_exceptions.cpp diff --git a/include/pybind11/tests/test_exceptions.h b/lib/include/pybind11/tests/test_exceptions.h similarity index 100% rename from include/pybind11/tests/test_exceptions.h rename to lib/include/pybind11/tests/test_exceptions.h diff --git a/include/pybind11/tests/test_exceptions.py b/lib/include/pybind11/tests/test_exceptions.py similarity index 100% rename from include/pybind11/tests/test_exceptions.py rename to lib/include/pybind11/tests/test_exceptions.py diff --git a/include/pybind11/tests/test_factory_constructors.cpp b/lib/include/pybind11/tests/test_factory_constructors.cpp similarity index 100% rename from include/pybind11/tests/test_factory_constructors.cpp rename to lib/include/pybind11/tests/test_factory_constructors.cpp diff --git a/include/pybind11/tests/test_factory_constructors.py b/lib/include/pybind11/tests/test_factory_constructors.py similarity index 100% rename from include/pybind11/tests/test_factory_constructors.py rename to lib/include/pybind11/tests/test_factory_constructors.py diff --git a/include/pybind11/tests/test_gil_scoped.cpp b/lib/include/pybind11/tests/test_gil_scoped.cpp similarity index 100% rename from include/pybind11/tests/test_gil_scoped.cpp rename to lib/include/pybind11/tests/test_gil_scoped.cpp diff --git a/include/pybind11/tests/test_gil_scoped.py b/lib/include/pybind11/tests/test_gil_scoped.py similarity index 100% rename from include/pybind11/tests/test_gil_scoped.py rename to lib/include/pybind11/tests/test_gil_scoped.py diff --git a/include/pybind11/tests/test_iostream.cpp b/lib/include/pybind11/tests/test_iostream.cpp similarity index 100% rename from include/pybind11/tests/test_iostream.cpp rename to lib/include/pybind11/tests/test_iostream.cpp diff --git a/include/pybind11/tests/test_iostream.py b/lib/include/pybind11/tests/test_iostream.py similarity index 100% rename from include/pybind11/tests/test_iostream.py rename to lib/include/pybind11/tests/test_iostream.py diff --git a/include/pybind11/tests/test_kwargs_and_defaults.cpp b/lib/include/pybind11/tests/test_kwargs_and_defaults.cpp similarity index 100% rename from include/pybind11/tests/test_kwargs_and_defaults.cpp rename to lib/include/pybind11/tests/test_kwargs_and_defaults.cpp diff --git a/include/pybind11/tests/test_kwargs_and_defaults.py b/lib/include/pybind11/tests/test_kwargs_and_defaults.py similarity index 100% rename from include/pybind11/tests/test_kwargs_and_defaults.py rename to lib/include/pybind11/tests/test_kwargs_and_defaults.py diff --git a/include/pybind11/tests/test_local_bindings.cpp b/lib/include/pybind11/tests/test_local_bindings.cpp similarity index 100% rename from include/pybind11/tests/test_local_bindings.cpp rename to lib/include/pybind11/tests/test_local_bindings.cpp diff --git a/include/pybind11/tests/test_local_bindings.py b/lib/include/pybind11/tests/test_local_bindings.py similarity index 100% rename from include/pybind11/tests/test_local_bindings.py rename to lib/include/pybind11/tests/test_local_bindings.py diff --git a/include/pybind11/tests/test_methods_and_attributes.cpp b/lib/include/pybind11/tests/test_methods_and_attributes.cpp similarity index 100% rename from include/pybind11/tests/test_methods_and_attributes.cpp rename to lib/include/pybind11/tests/test_methods_and_attributes.cpp diff --git a/include/pybind11/tests/test_methods_and_attributes.py b/lib/include/pybind11/tests/test_methods_and_attributes.py similarity index 100% rename from include/pybind11/tests/test_methods_and_attributes.py rename to lib/include/pybind11/tests/test_methods_and_attributes.py diff --git a/include/pybind11/tests/test_modules.cpp b/lib/include/pybind11/tests/test_modules.cpp similarity index 100% rename from include/pybind11/tests/test_modules.cpp rename to lib/include/pybind11/tests/test_modules.cpp diff --git a/include/pybind11/tests/test_modules.py b/lib/include/pybind11/tests/test_modules.py similarity index 100% rename from include/pybind11/tests/test_modules.py rename to lib/include/pybind11/tests/test_modules.py diff --git a/include/pybind11/tests/test_multiple_inheritance.cpp b/lib/include/pybind11/tests/test_multiple_inheritance.cpp similarity index 100% rename from include/pybind11/tests/test_multiple_inheritance.cpp rename to lib/include/pybind11/tests/test_multiple_inheritance.cpp diff --git a/include/pybind11/tests/test_multiple_inheritance.py b/lib/include/pybind11/tests/test_multiple_inheritance.py similarity index 100% rename from include/pybind11/tests/test_multiple_inheritance.py rename to lib/include/pybind11/tests/test_multiple_inheritance.py diff --git a/include/pybind11/tests/test_numpy_array.cpp b/lib/include/pybind11/tests/test_numpy_array.cpp similarity index 100% rename from include/pybind11/tests/test_numpy_array.cpp rename to lib/include/pybind11/tests/test_numpy_array.cpp diff --git a/include/pybind11/tests/test_numpy_array.py b/lib/include/pybind11/tests/test_numpy_array.py similarity index 100% rename from include/pybind11/tests/test_numpy_array.py rename to lib/include/pybind11/tests/test_numpy_array.py diff --git a/include/pybind11/tests/test_numpy_dtypes.cpp b/lib/include/pybind11/tests/test_numpy_dtypes.cpp similarity index 100% rename from include/pybind11/tests/test_numpy_dtypes.cpp rename to lib/include/pybind11/tests/test_numpy_dtypes.cpp diff --git a/include/pybind11/tests/test_numpy_dtypes.py b/lib/include/pybind11/tests/test_numpy_dtypes.py similarity index 100% rename from include/pybind11/tests/test_numpy_dtypes.py rename to lib/include/pybind11/tests/test_numpy_dtypes.py diff --git a/include/pybind11/tests/test_numpy_vectorize.cpp b/lib/include/pybind11/tests/test_numpy_vectorize.cpp similarity index 100% rename from include/pybind11/tests/test_numpy_vectorize.cpp rename to lib/include/pybind11/tests/test_numpy_vectorize.cpp diff --git a/include/pybind11/tests/test_numpy_vectorize.py b/lib/include/pybind11/tests/test_numpy_vectorize.py similarity index 100% rename from include/pybind11/tests/test_numpy_vectorize.py rename to lib/include/pybind11/tests/test_numpy_vectorize.py diff --git a/include/pybind11/tests/test_opaque_types.cpp b/lib/include/pybind11/tests/test_opaque_types.cpp similarity index 100% rename from include/pybind11/tests/test_opaque_types.cpp rename to lib/include/pybind11/tests/test_opaque_types.cpp diff --git a/include/pybind11/tests/test_opaque_types.py b/lib/include/pybind11/tests/test_opaque_types.py similarity index 100% rename from include/pybind11/tests/test_opaque_types.py rename to lib/include/pybind11/tests/test_opaque_types.py diff --git a/include/pybind11/tests/test_operator_overloading.cpp b/lib/include/pybind11/tests/test_operator_overloading.cpp similarity index 100% rename from include/pybind11/tests/test_operator_overloading.cpp rename to lib/include/pybind11/tests/test_operator_overloading.cpp diff --git a/include/pybind11/tests/test_operator_overloading.py b/lib/include/pybind11/tests/test_operator_overloading.py similarity index 100% rename from include/pybind11/tests/test_operator_overloading.py rename to lib/include/pybind11/tests/test_operator_overloading.py diff --git a/include/pybind11/tests/test_pickling.cpp b/lib/include/pybind11/tests/test_pickling.cpp similarity index 100% rename from include/pybind11/tests/test_pickling.cpp rename to lib/include/pybind11/tests/test_pickling.cpp diff --git a/include/pybind11/tests/test_pickling.py b/lib/include/pybind11/tests/test_pickling.py similarity index 100% rename from include/pybind11/tests/test_pickling.py rename to lib/include/pybind11/tests/test_pickling.py diff --git a/include/pybind11/tests/test_python_multiple_inheritance.cpp b/lib/include/pybind11/tests/test_python_multiple_inheritance.cpp similarity index 100% rename from include/pybind11/tests/test_python_multiple_inheritance.cpp rename to lib/include/pybind11/tests/test_python_multiple_inheritance.cpp diff --git a/include/pybind11/tests/test_python_multiple_inheritance.py b/lib/include/pybind11/tests/test_python_multiple_inheritance.py similarity index 100% rename from include/pybind11/tests/test_python_multiple_inheritance.py rename to lib/include/pybind11/tests/test_python_multiple_inheritance.py diff --git a/include/pybind11/tests/test_pytypes.cpp b/lib/include/pybind11/tests/test_pytypes.cpp similarity index 100% rename from include/pybind11/tests/test_pytypes.cpp rename to lib/include/pybind11/tests/test_pytypes.cpp diff --git a/include/pybind11/tests/test_pytypes.py b/lib/include/pybind11/tests/test_pytypes.py similarity index 100% rename from include/pybind11/tests/test_pytypes.py rename to lib/include/pybind11/tests/test_pytypes.py diff --git a/include/pybind11/tests/test_sequences_and_iterators.cpp b/lib/include/pybind11/tests/test_sequences_and_iterators.cpp similarity index 100% rename from include/pybind11/tests/test_sequences_and_iterators.cpp rename to lib/include/pybind11/tests/test_sequences_and_iterators.cpp diff --git a/include/pybind11/tests/test_sequences_and_iterators.py b/lib/include/pybind11/tests/test_sequences_and_iterators.py similarity index 100% rename from include/pybind11/tests/test_sequences_and_iterators.py rename to lib/include/pybind11/tests/test_sequences_and_iterators.py diff --git a/include/pybind11/tests/test_smart_ptr.cpp b/lib/include/pybind11/tests/test_smart_ptr.cpp similarity index 100% rename from include/pybind11/tests/test_smart_ptr.cpp rename to lib/include/pybind11/tests/test_smart_ptr.cpp diff --git a/include/pybind11/tests/test_smart_ptr.py b/lib/include/pybind11/tests/test_smart_ptr.py similarity index 100% rename from include/pybind11/tests/test_smart_ptr.py rename to lib/include/pybind11/tests/test_smart_ptr.py diff --git a/include/pybind11/tests/test_stl.cpp b/lib/include/pybind11/tests/test_stl.cpp similarity index 100% rename from include/pybind11/tests/test_stl.cpp rename to lib/include/pybind11/tests/test_stl.cpp diff --git a/include/pybind11/tests/test_stl.py b/lib/include/pybind11/tests/test_stl.py similarity index 100% rename from include/pybind11/tests/test_stl.py rename to lib/include/pybind11/tests/test_stl.py diff --git a/include/pybind11/tests/test_stl_binders.cpp b/lib/include/pybind11/tests/test_stl_binders.cpp similarity index 100% rename from include/pybind11/tests/test_stl_binders.cpp rename to lib/include/pybind11/tests/test_stl_binders.cpp diff --git a/include/pybind11/tests/test_stl_binders.py b/lib/include/pybind11/tests/test_stl_binders.py similarity index 100% rename from include/pybind11/tests/test_stl_binders.py rename to lib/include/pybind11/tests/test_stl_binders.py diff --git a/include/pybind11/tests/test_tagbased_polymorphic.cpp b/lib/include/pybind11/tests/test_tagbased_polymorphic.cpp similarity index 100% rename from include/pybind11/tests/test_tagbased_polymorphic.cpp rename to lib/include/pybind11/tests/test_tagbased_polymorphic.cpp diff --git a/include/pybind11/tests/test_tagbased_polymorphic.py b/lib/include/pybind11/tests/test_tagbased_polymorphic.py similarity index 100% rename from include/pybind11/tests/test_tagbased_polymorphic.py rename to lib/include/pybind11/tests/test_tagbased_polymorphic.py diff --git a/include/pybind11/tests/test_thread.cpp b/lib/include/pybind11/tests/test_thread.cpp similarity index 100% rename from include/pybind11/tests/test_thread.cpp rename to lib/include/pybind11/tests/test_thread.cpp diff --git a/include/pybind11/tests/test_thread.py b/lib/include/pybind11/tests/test_thread.py similarity index 100% rename from include/pybind11/tests/test_thread.py rename to lib/include/pybind11/tests/test_thread.py diff --git a/include/pybind11/tests/test_type_caster_pyobject_ptr.cpp b/lib/include/pybind11/tests/test_type_caster_pyobject_ptr.cpp similarity index 100% rename from include/pybind11/tests/test_type_caster_pyobject_ptr.cpp rename to lib/include/pybind11/tests/test_type_caster_pyobject_ptr.cpp diff --git a/include/pybind11/tests/test_type_caster_pyobject_ptr.py b/lib/include/pybind11/tests/test_type_caster_pyobject_ptr.py similarity index 100% rename from include/pybind11/tests/test_type_caster_pyobject_ptr.py rename to lib/include/pybind11/tests/test_type_caster_pyobject_ptr.py diff --git a/include/pybind11/tests/test_union.cpp b/lib/include/pybind11/tests/test_union.cpp similarity index 100% rename from include/pybind11/tests/test_union.cpp rename to lib/include/pybind11/tests/test_union.cpp diff --git a/include/pybind11/tests/test_union.py b/lib/include/pybind11/tests/test_union.py similarity index 100% rename from include/pybind11/tests/test_union.py rename to lib/include/pybind11/tests/test_union.py diff --git a/include/pybind11/tests/test_unnamed_namespace_a.cpp b/lib/include/pybind11/tests/test_unnamed_namespace_a.cpp similarity index 100% rename from include/pybind11/tests/test_unnamed_namespace_a.cpp rename to lib/include/pybind11/tests/test_unnamed_namespace_a.cpp diff --git a/include/pybind11/tests/test_unnamed_namespace_a.py b/lib/include/pybind11/tests/test_unnamed_namespace_a.py similarity index 100% rename from include/pybind11/tests/test_unnamed_namespace_a.py rename to lib/include/pybind11/tests/test_unnamed_namespace_a.py diff --git a/include/pybind11/tests/test_unnamed_namespace_b.cpp b/lib/include/pybind11/tests/test_unnamed_namespace_b.cpp similarity index 100% rename from include/pybind11/tests/test_unnamed_namespace_b.cpp rename to lib/include/pybind11/tests/test_unnamed_namespace_b.cpp diff --git a/include/pybind11/tests/test_unnamed_namespace_b.py b/lib/include/pybind11/tests/test_unnamed_namespace_b.py similarity index 100% rename from include/pybind11/tests/test_unnamed_namespace_b.py rename to lib/include/pybind11/tests/test_unnamed_namespace_b.py diff --git a/include/pybind11/tests/test_vector_unique_ptr_member.cpp b/lib/include/pybind11/tests/test_vector_unique_ptr_member.cpp similarity index 100% rename from include/pybind11/tests/test_vector_unique_ptr_member.cpp rename to lib/include/pybind11/tests/test_vector_unique_ptr_member.cpp diff --git a/include/pybind11/tests/test_vector_unique_ptr_member.py b/lib/include/pybind11/tests/test_vector_unique_ptr_member.py similarity index 100% rename from include/pybind11/tests/test_vector_unique_ptr_member.py rename to lib/include/pybind11/tests/test_vector_unique_ptr_member.py diff --git a/include/pybind11/tests/test_virtual_functions.cpp b/lib/include/pybind11/tests/test_virtual_functions.cpp similarity index 100% rename from include/pybind11/tests/test_virtual_functions.cpp rename to lib/include/pybind11/tests/test_virtual_functions.cpp diff --git a/include/pybind11/tests/test_virtual_functions.py b/lib/include/pybind11/tests/test_virtual_functions.py similarity index 100% rename from include/pybind11/tests/test_virtual_functions.py rename to lib/include/pybind11/tests/test_virtual_functions.py diff --git a/include/pybind11/tests/valgrind-numpy-scipy.supp b/lib/include/pybind11/tests/valgrind-numpy-scipy.supp similarity index 100% rename from include/pybind11/tests/valgrind-numpy-scipy.supp rename to lib/include/pybind11/tests/valgrind-numpy-scipy.supp diff --git a/include/pybind11/tests/valgrind-python.supp b/lib/include/pybind11/tests/valgrind-python.supp similarity index 100% rename from include/pybind11/tests/valgrind-python.supp rename to lib/include/pybind11/tests/valgrind-python.supp diff --git a/include/pybind11/tools/FindCatch.cmake b/lib/include/pybind11/tools/FindCatch.cmake similarity index 100% rename from include/pybind11/tools/FindCatch.cmake rename to lib/include/pybind11/tools/FindCatch.cmake diff --git a/include/pybind11/tools/FindEigen3.cmake b/lib/include/pybind11/tools/FindEigen3.cmake similarity index 100% rename from include/pybind11/tools/FindEigen3.cmake rename to lib/include/pybind11/tools/FindEigen3.cmake diff --git a/include/pybind11/tools/FindPythonLibsNew.cmake b/lib/include/pybind11/tools/FindPythonLibsNew.cmake similarity index 100% rename from include/pybind11/tools/FindPythonLibsNew.cmake rename to lib/include/pybind11/tools/FindPythonLibsNew.cmake diff --git a/include/pybind11/tools/JoinPaths.cmake b/lib/include/pybind11/tools/JoinPaths.cmake similarity index 100% rename from include/pybind11/tools/JoinPaths.cmake rename to lib/include/pybind11/tools/JoinPaths.cmake diff --git a/include/pybind11/tools/check-style.sh b/lib/include/pybind11/tools/check-style.sh similarity index 100% rename from include/pybind11/tools/check-style.sh rename to lib/include/pybind11/tools/check-style.sh diff --git a/include/pybind11/tools/cmake_uninstall.cmake.in b/lib/include/pybind11/tools/cmake_uninstall.cmake.in similarity index 100% rename from include/pybind11/tools/cmake_uninstall.cmake.in rename to lib/include/pybind11/tools/cmake_uninstall.cmake.in diff --git a/include/pybind11/tools/codespell_ignore_lines_from_errors.py b/lib/include/pybind11/tools/codespell_ignore_lines_from_errors.py similarity index 100% rename from include/pybind11/tools/codespell_ignore_lines_from_errors.py rename to lib/include/pybind11/tools/codespell_ignore_lines_from_errors.py diff --git a/include/pybind11/tools/libsize.py b/lib/include/pybind11/tools/libsize.py similarity index 100% rename from include/pybind11/tools/libsize.py rename to lib/include/pybind11/tools/libsize.py diff --git a/include/pybind11/tools/make_changelog.py b/lib/include/pybind11/tools/make_changelog.py similarity index 100% rename from include/pybind11/tools/make_changelog.py rename to lib/include/pybind11/tools/make_changelog.py diff --git a/include/pybind11/tools/pybind11.pc.in b/lib/include/pybind11/tools/pybind11.pc.in similarity index 100% rename from include/pybind11/tools/pybind11.pc.in rename to lib/include/pybind11/tools/pybind11.pc.in diff --git a/include/pybind11/tools/pybind11Common.cmake b/lib/include/pybind11/tools/pybind11Common.cmake similarity index 100% rename from include/pybind11/tools/pybind11Common.cmake rename to lib/include/pybind11/tools/pybind11Common.cmake diff --git a/include/pybind11/tools/pybind11Config.cmake.in b/lib/include/pybind11/tools/pybind11Config.cmake.in similarity index 100% rename from include/pybind11/tools/pybind11Config.cmake.in rename to lib/include/pybind11/tools/pybind11Config.cmake.in diff --git a/include/pybind11/tools/pybind11GuessPythonExtSuffix.cmake b/lib/include/pybind11/tools/pybind11GuessPythonExtSuffix.cmake similarity index 100% rename from include/pybind11/tools/pybind11GuessPythonExtSuffix.cmake rename to lib/include/pybind11/tools/pybind11GuessPythonExtSuffix.cmake diff --git a/include/pybind11/tools/pybind11NewTools.cmake b/lib/include/pybind11/tools/pybind11NewTools.cmake similarity index 100% rename from include/pybind11/tools/pybind11NewTools.cmake rename to lib/include/pybind11/tools/pybind11NewTools.cmake diff --git a/include/pybind11/tools/pybind11Tools.cmake b/lib/include/pybind11/tools/pybind11Tools.cmake similarity index 100% rename from include/pybind11/tools/pybind11Tools.cmake rename to lib/include/pybind11/tools/pybind11Tools.cmake diff --git a/include/pybind11/tools/pyproject.toml b/lib/include/pybind11/tools/pyproject.toml similarity index 100% rename from include/pybind11/tools/pyproject.toml rename to lib/include/pybind11/tools/pyproject.toml diff --git a/include/pybind11/tools/setup_global.py.in b/lib/include/pybind11/tools/setup_global.py.in similarity index 100% rename from include/pybind11/tools/setup_global.py.in rename to lib/include/pybind11/tools/setup_global.py.in diff --git a/include/pybind11/tools/setup_main.py.in b/lib/include/pybind11/tools/setup_main.py.in similarity index 100% rename from include/pybind11/tools/setup_main.py.in rename to lib/include/pybind11/tools/setup_main.py.in diff --git a/include/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake b/lib/include/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake similarity index 100% rename from include/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake rename to lib/include/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake diff --git a/include/token_granter.hpp b/lib/include/token_granter.hpp similarity index 100% rename from include/token_granter.hpp rename to lib/include/token_granter.hpp diff --git a/src/token_granter.cpp b/lib/src/token_granter.cpp similarity index 100% rename from src/token_granter.cpp rename to lib/src/token_granter.cpp diff --git a/setup.py b/setup.py index 2c92543..a2199ec 100644 --- a/setup.py +++ b/setup.py @@ -10,13 +10,11 @@ from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext -""" +''' Modified from https://www.benjack.io/2017/06/12/python-cpp-tests.html -""" - - +''' class CMakeExtension(Extension): - def __init__(self, name, sourcedir=""): + def __init__(self, name, sourcedir=''): Extension.__init__(self, name, sources=[]) self.sourcedir = os.path.abspath(sourcedir) @@ -24,76 +22,69 @@ def __init__(self, name, sourcedir=""): class CMakeBuild(build_ext): def run(self): try: - out = subprocess.check_output(["cmake", "--version"]) + out = subprocess.check_output(['cmake', '--version']) except OSError: raise RuntimeError( - "CMake must be installed to build the following extensions: " - + ", ".join(e.name for e in self.extensions) - ) + "CMake must be installed to build the following extensions: " + + ", ".join(e.name for e in self.extensions)) if platform.system() == "Windows": - cmake_version = LooseVersion( - re.search(r"version\s*([\d.]+)", out.decode()).group(1) - ) - if cmake_version < "3.1.0": + cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', + out.decode()).group(1)) + if cmake_version < '3.1.0': raise RuntimeError("CMake >= 3.1.0 is required on Windows") for ext in self.extensions: self.build_extension(ext) def build_extension(self, ext): - extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name))) + extdir = os.path.abspath( + os.path.dirname(self.get_ext_fullpath(ext.name))) - cmake_args = [ - "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, - "-DPYTHON_EXECUTABLE=" + sys.executable, - ] + cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir, + '-DPYTHON_EXECUTABLE=' + sys.executable] - cfg = "Debug" if self.debug else "Release" - build_args = ["--config", cfg] + cfg = 'Debug' if self.debug else 'Release' + build_args = ['--config', cfg] if platform.system() == "Windows": - cmake_args += [ - "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir) - ] + cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format( + cfg.upper(), + extdir)] if sys.maxsize > 2**32: - cmake_args += ["-A", "x64"] - build_args += ["--", "/m"] + cmake_args += ['-A', 'x64'] + build_args += ['--', '/m'] else: - cmake_args += ["-DCMAKE_BUILD_TYPE=" + cfg] - build_args += ["--", "-j2"] + cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] + build_args += ['--', '-j2'] env = os.environ.copy() - env["CXXFLAGS"] = '{} -DVERSION_INFO=\\"{}\\"'.format( - env.get("CXXFLAGS", ""), self.distribution.get_version() - ) + env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format( + env.get('CXXFLAGS', ''), + self.distribution.get_version()) if not os.path.exists(self.build_temp): os.makedirs(self.build_temp) - subprocess.check_call( - ["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env - ) - subprocess.check_call( - ["cmake", "--build", "."] + build_args, cwd=self.build_temp - ) + subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, + cwd=self.build_temp, env=env) + subprocess.check_call(['cmake', '--build', '.'] + build_args, + cwd=self.build_temp) -with open("README.md", "r") as f: - long_description = f.read() - setup( name="token-granter-wrapper", version="0.1.0", - description="A test", - long_description="A test", + description="Some testing stuff", packages=setuptools.find_packages("token_granter_wrapper"), - package_dir={"src": "token_granter_wrapper"}, + package_dir={"": "src"}, classifiers=[ "Programming Language :: Python :: 3", - "Operating System :: POSIX :: Linux", + "Operating System :: POSIX :: Linux" ], - ext_modules=[CMakeExtension("token_granter_wrapper/")], - python_requires=">=3.6", + ext_modules=[CMakeExtension('token_granter_wrapper/token_granter_bindings')], + python_requires='>=3.6', cmdclass=dict(build_ext=CMakeBuild), zip_safe=False, - install_requires=[], + install_requires=[] ) + +# https://python.plainenglish.io/building-hybrid-python-c-packages-8985fa1c5b1d \ No newline at end of file diff --git a/token_granter_wrapper/__init__.py b/token_granter_wrapper/__init__.py index e69de29..f0df4a1 100644 --- a/token_granter_wrapper/__init__.py +++ b/token_granter_wrapper/__init__.py @@ -0,0 +1 @@ +from .token_granter_bindings import * diff --git a/src/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp similarity index 77% rename from src/token_granter_bindings.cpp rename to token_granter_wrapper/token_granter_bindings.cpp index 0fd70ae..0ea9cbe 100644 --- a/src/token_granter_bindings.cpp +++ b/token_granter_wrapper/token_granter_bindings.cpp @@ -1,8 +1,8 @@ #include "../include/token_granter.hpp" // EXTERNAL IMPORTS START HERE -#include "../include/pybind11/include/pybind11/pybind11.h" -#include "../include/pybind11/include/pybind11/stl.h" +#include +#include // EXTERNAL IMPORTS END HERE namespace py = pybind11; From 2d1bf677aef8de8f6c8feeab5389322e6983a7fc Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:23:33 -0400 Subject: [PATCH 02/18] next test --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a2199ec..7f3f33d 100644 --- a/setup.py +++ b/setup.py @@ -75,7 +75,7 @@ def build_extension(self, ext): version="0.1.0", description="Some testing stuff", packages=setuptools.find_packages("token_granter_wrapper"), - package_dir={"": "src"}, + package_dir={"": "token_granter_wrapper"}, classifiers=[ "Programming Language :: Python :: 3", "Operating System :: POSIX :: Linux" From 1af394832a2a91e255b8f2af14c0747c3c2ab7fe Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:28:16 -0400 Subject: [PATCH 03/18] try again --- CMakeLists.txt | 2 +- token_granter_wrapper/token_granter_bindings.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1da6405..ef81c4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ find_package(CURL REQUIRED) # target_link_libraries(token_granter ${CURL_LIBRARIES}) # SHARED LIBRARY COMPILATION HERE -add_library(token_granter_shared SHARED lib/src/token_granter.cpp) +add_library(token_granter_shared SHARED ./lib/src/token_granter.cpp) target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) diff --git a/token_granter_wrapper/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp index 0ea9cbe..808b9b1 100644 --- a/token_granter_wrapper/token_granter_bindings.cpp +++ b/token_granter_wrapper/token_granter_bindings.cpp @@ -1,8 +1,8 @@ #include "../include/token_granter.hpp" // EXTERNAL IMPORTS START HERE -#include -#include +#include "../lib/include/pybind11/include/pybind11/pybind11.h" +#include "../include/pybind11/include/pybind11/stl.h" // EXTERNAL IMPORTS END HERE namespace py = pybind11; From ad09c446e8486338bf372087689ebdb2b03bbed8 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:31:01 -0400 Subject: [PATCH 04/18] try something else --- CMakeLists.txt | 2 +- token_granter_wrapper/token_granter_bindings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef81c4c..2b4914a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) # PYBINDING SHARED LIBRARY COMPILATION HERE add_subdirectory(./lib/include/pybind11) -pybind11_add_module(token_granter ./lib/src/token_granter_bindings.cpp ./lib/src/token_granter.cpp) +pybind11_add_module(token_granter ./token_granter_wrapper/token_granter_bindings.cpp ./lib/src/token_granter.cpp) set_target_properties(token_granter PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) target_link_libraries(token_granter PRIVATE pybind11::module) target_link_libraries(token_granter PRIVATE ${CURL_LIBRARIES}) \ No newline at end of file diff --git a/token_granter_wrapper/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp index 808b9b1..f3cf62b 100644 --- a/token_granter_wrapper/token_granter_bindings.cpp +++ b/token_granter_wrapper/token_granter_bindings.cpp @@ -1,4 +1,4 @@ -#include "../include/token_granter.hpp" +#include "../lib/include/token_granter.hpp" // EXTERNAL IMPORTS START HERE #include "../lib/include/pybind11/include/pybind11/pybind11.h" From aeb3bc1cf6b2374c43371da872dbbd94765e3138 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:31:13 -0400 Subject: [PATCH 05/18] try again --- token_granter_wrapper/token_granter_bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token_granter_wrapper/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp index f3cf62b..fe18161 100644 --- a/token_granter_wrapper/token_granter_bindings.cpp +++ b/token_granter_wrapper/token_granter_bindings.cpp @@ -2,7 +2,7 @@ // EXTERNAL IMPORTS START HERE #include "../lib/include/pybind11/include/pybind11/pybind11.h" -#include "../include/pybind11/include/pybind11/stl.h" +#include "../lib/include/pybind11/include/pybind11/stl.h" // EXTERNAL IMPORTS END HERE namespace py = pybind11; From c1157b45977b68c5a594452accbff513a5141699 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 21:43:12 -0400 Subject: [PATCH 06/18] cleanup --- CMakeLists.txt | 49 +++++++++++++++++++++++++++--------------- lib/src/CMakeLists.txt | 11 ++++++++++ 2 files changed, 43 insertions(+), 17 deletions(-) create mode 100644 lib/src/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b4914a..516cd26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,24 +1,39 @@ -cmake_minimum_required(VERSION 3.23) -project(TokenGranterWrapper) +# cmake_minimum_required(VERSION 3.23) +# project(TokenGranterWrapperBindings) -set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_CXX_STANDARD 17) + +# set(CURL_LIBRARY "-lcurl") +# find_package(CURL REQUIRED) + +# # add_executable(token_granter src/token_granter.cpp) +# # target_include_directories(token_granter PRIVATE ${CURL_INCLUDE_DIRS}) +# # target_link_libraries(token_granter ${CURL_LIBRARIES}) + +# # SHARED LIBRARY COMPILATION HERE +# add_library(token_granter_shared SHARED ./lib/src/token_granter.cpp) +# target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) +# target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) -set(CURL_LIBRARY "-lcurl") -find_package(CURL REQUIRED) -# add_executable(token_granter src/token_granter.cpp) -# target_include_directories(token_granter PRIVATE ${CURL_INCLUDE_DIRS}) -# target_link_libraries(token_granter ${CURL_LIBRARIES}) +# # PYBINDING SHARED LIBRARY COMPILATION HERE +# add_subdirectory(./lib/include/pybind11) +# pybind11_add_module(token_granter ./token_granter_wrapper/token_granter_bindings.cpp ./lib/src/token_granter.cpp) +# set_target_properties(token_granter PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) +# target_link_libraries(token_granter PRIVATE pybind11::module) +# target_link_libraries(token_granter PRIVATE ${CURL_LIBRARIES}) -# SHARED LIBRARY COMPILATION HERE -add_library(token_granter_shared SHARED ./lib/src/token_granter.cpp) -target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) -target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) +cmake_minimum_required(VERSION 3.23) +project(TokenGranterWrapperBindings) +set(CMAKE_CXX_STANDARD 17) -# PYBINDING SHARED LIBRARY COMPILATION HERE add_subdirectory(./lib/include/pybind11) -pybind11_add_module(token_granter ./token_granter_wrapper/token_granter_bindings.cpp ./lib/src/token_granter.cpp) -set_target_properties(token_granter PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) -target_link_libraries(token_granter PRIVATE pybind11::module) -target_link_libraries(token_granter PRIVATE ${CURL_LIBRARIES}) \ No newline at end of file +add_subdirectory(./lib/src) + + +set(SOURCE_DIR "token_granter_wrapper") +set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") + +pybind11_add_module(token_granter_bindings ${SOURCES}) +target_link_libraries(token_granter_bindings PRIVATE token_granter_wrapper) \ No newline at end of file diff --git a/lib/src/CMakeLists.txt b/lib/src/CMakeLists.txt new file mode 100644 index 0000000..426be22 --- /dev/null +++ b/lib/src/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.23) +project(TokenGranterWrapper) + +set(CMAKE_CXX_STANDARD 17) + +set(CURL_LIBRARY "-lcurl") +find_package(CURL REQUIRED) + +add_library(token_granter_wrapper STATIC token_granter.cpp) + +target_link_libraries(token_granter_wrapper ${CURL_LIBRARIES}) From c5e9d4debe25a0ce17a8d9496bbf7078031a3e70 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:00:15 -0400 Subject: [PATCH 07/18] update --- CMakeLists.txt | 5 ++--- lib/src/CMakeLists.txt | 4 ++-- .../test_package.cpython-311-pytest-8.2.2.pyc | Bin 1988 -> 1988 bytes tests/test_package.py | 4 ++-- .../__pycache__/__init__.cpython-311.pyc | Bin 0 -> 221 bytes .../token_granter_bindings.cpp | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 token_granter_wrapper/__pycache__/__init__.cpython-311.pyc diff --git a/CMakeLists.txt b/CMakeLists.txt index 516cd26..6f6dd4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,13 +27,12 @@ cmake_minimum_required(VERSION 3.23) project(TokenGranterWrapperBindings) set(CMAKE_CXX_STANDARD 17) - add_subdirectory(./lib/include/pybind11) add_subdirectory(./lib/src) - set(SOURCE_DIR "token_granter_wrapper") set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") pybind11_add_module(token_granter_bindings ${SOURCES}) -target_link_libraries(token_granter_bindings PRIVATE token_granter_wrapper) \ No newline at end of file +set_target_properties(token_granter_bindings PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) +target_link_libraries(token_granter_bindings PRIVATE token_granter) \ No newline at end of file diff --git a/lib/src/CMakeLists.txt b/lib/src/CMakeLists.txt index 426be22..488420a 100644 --- a/lib/src/CMakeLists.txt +++ b/lib/src/CMakeLists.txt @@ -6,6 +6,6 @@ set(CMAKE_CXX_STANDARD 17) set(CURL_LIBRARY "-lcurl") find_package(CURL REQUIRED) -add_library(token_granter_wrapper STATIC token_granter.cpp) +add_library(token_granter STATIC token_granter.cpp) -target_link_libraries(token_granter_wrapper ${CURL_LIBRARIES}) +target_link_libraries(token_granter ${CURL_LIBRARIES}) diff --git a/tests/__pycache__/test_package.cpython-311-pytest-8.2.2.pyc b/tests/__pycache__/test_package.cpython-311-pytest-8.2.2.pyc index bfcfcf507c786d38086f14c201bbb7688a7028e6..d304b1822a9e5c63e097075d39aba996817ebcf5 100644 GIT binary patch delta 19 ZcmX@Ye}tcFIWI340}u!`ZRFa;4gfG;1dIRx delta 19 ZcmX@Ye}tcFIWI340}xz{-^jI#9RM^c1tnCW0(476%d^m>C%vZ!oA{ KKt)AtKsf;SOFY~F literal 0 HcmV?d00001 diff --git a/token_granter_wrapper/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp index fe18161..21b74f1 100644 --- a/token_granter_wrapper/token_granter_bindings.cpp +++ b/token_granter_wrapper/token_granter_bindings.cpp @@ -7,7 +7,7 @@ namespace py = pybind11; -PYBIND11_MODULE(token_granter, m) +PYBIND11_MODULE(token_granter_bindings, m) { py::class_(m, "TokenGranter") .def(py::init()) From bba0c1fd0b8d7eabdaacf67054209bc3783b0830 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:04:15 -0400 Subject: [PATCH 08/18] test --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 7f3f33d..d74d092 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,10 @@ def build_extension(self, ext): build_args += ['--', '/m'] else: cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] + + if(platform.system() == "Darwin"): + cmake_args.push('-DCMAKE_CXX_FLAGS=-march=armv8-a') + build_args += ['--', '-j2'] env = os.environ.copy() From 5f054853e0aaef96cdeb961b828872fc11fe4d0e Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:05:01 -0400 Subject: [PATCH 09/18] append --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d74d092..0e5c693 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ def build_extension(self, ext): cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] if(platform.system() == "Darwin"): - cmake_args.push('-DCMAKE_CXX_FLAGS=-march=armv8-a') + cmake_args.append('-DCMAKE_CXX_FLAGS=-march=armv8-a') build_args += ['--', '-j2'] From 5eee9039f72aecd4c2af4ac609e8054d3116e84b Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:07:07 -0400 Subject: [PATCH 10/18] try linux --- .github/workflows/cmake.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c3e916e..720f875 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -12,13 +12,14 @@ jobs: timeout-minutes: 480 strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest] + # os: [ubuntu-latest, macos-latest] # os: [ubuntu-latest, windows-latest, macos-latest] include: - os: ubuntu-latest suffix: so - - os: macos-latest - suffix: dylib + # - os: macos-latest + # suffix: dylib # - os: windows-latest # suffix: pyd From 17ee54fedd45dddcfe70bccb604f5e7c13d61ec0 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:11:00 -0400 Subject: [PATCH 11/18] try again --- .github/workflows/cmake.yml | 3 ++- CMakeLists.txt | 1 + lib/src/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 720f875..d33d9f6 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -50,7 +50,8 @@ jobs: # run: cmake -E make_directory ${{runner.workspace}}/build # - name: Configure CMake - # shell: bash + # shell: bash /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: lib/src/libtoken_granter.a(token_granter.cpp.o): relocation R_X86_64_32 against undefined symbol `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC + # run: cmake $GITHUB_WORKSPACE -B ${{runner.workspace}}/build # - name: Build diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f6dd4f..f4e7c85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,5 +34,6 @@ set(SOURCE_DIR "token_granter_wrapper") set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") pybind11_add_module(token_granter_bindings ${SOURCES}) +set_target_properties(token_granter_bindings PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(token_granter_bindings PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) target_link_libraries(token_granter_bindings PRIVATE token_granter) \ No newline at end of file diff --git a/lib/src/CMakeLists.txt b/lib/src/CMakeLists.txt index 488420a..c760157 100644 --- a/lib/src/CMakeLists.txt +++ b/lib/src/CMakeLists.txt @@ -9,3 +9,4 @@ find_package(CURL REQUIRED) add_library(token_granter STATIC token_granter.cpp) target_link_libraries(token_granter ${CURL_LIBRARIES}) +set_target_properties(token_granter PROPERTIES POSITION_INDEPENDENT_CODE ON) From 13b66341cb4cae51b93417e6045a07973a2c8110 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:31:48 -0400 Subject: [PATCH 12/18] update --- CMakeLists.txt | 2 +- lib/src/CMakeLists.txt | 2 ++ setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4e7c85..2675859 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,6 @@ set(SOURCE_DIR "token_granter_wrapper") set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") pybind11_add_module(token_granter_bindings ${SOURCES}) -set_target_properties(token_granter_bindings PROPERTIES POSITION_INDEPENDENT_CODE ON) +# set_target_properties(token_granter_bindings PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(token_granter_bindings PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) target_link_libraries(token_granter_bindings PRIVATE token_granter) \ No newline at end of file diff --git a/lib/src/CMakeLists.txt b/lib/src/CMakeLists.txt index c760157..fc5cdbf 100644 --- a/lib/src/CMakeLists.txt +++ b/lib/src/CMakeLists.txt @@ -9,4 +9,6 @@ find_package(CURL REQUIRED) add_library(token_granter STATIC token_granter.cpp) target_link_libraries(token_granter ${CURL_LIBRARIES}) +target_include_directories(token_granter PRIVATE ${CURL_INCLUDE_DIRS}) set_target_properties(token_granter PROPERTIES POSITION_INDEPENDENT_CODE ON) + diff --git a/setup.py b/setup.py index 0e5c693..bfb0891 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ def build_extension(self, ext): "Programming Language :: Python :: 3", "Operating System :: POSIX :: Linux" ], - ext_modules=[CMakeExtension('token_granter_wrapper/token_granter_bindings')], + ext_modules=[CMakeExtension('token_granter_bindings')], python_requires='>=3.6', cmdclass=dict(build_ext=CMakeBuild), zip_safe=False, From b9c56d7f2b8a4415f367852b54053a252b653722 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:39:35 -0400 Subject: [PATCH 13/18] test --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index bfb0891..1cd6f20 100644 --- a/setup.py +++ b/setup.py @@ -14,8 +14,8 @@ Modified from https://www.benjack.io/2017/06/12/python-cpp-tests.html ''' class CMakeExtension(Extension): - def __init__(self, name, sourcedir=''): - Extension.__init__(self, name, sources=[]) + def __init__(self, name, sourcedir='', sources=[]): + Extension.__init__(self, name, sources=sources) self.sourcedir = os.path.abspath(sourcedir) @@ -84,7 +84,7 @@ def build_extension(self, ext): "Programming Language :: Python :: 3", "Operating System :: POSIX :: Linux" ], - ext_modules=[CMakeExtension('token_granter_bindings')], + ext_modules=[CMakeExtension('token_granter_bindings', sources=['token_granter_wrapper/token_granter_bindings.cpp'])], python_requires='>=3.6', cmdclass=dict(build_ext=CMakeBuild), zip_safe=False, From 6b14075e41cb3017cc090fa856d3dcc1e7aaeadd Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:40:16 -0400 Subject: [PATCH 14/18] add macos --- .github/workflows/cmake.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d33d9f6..b1ea3e5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -12,14 +12,14 @@ jobs: timeout-minutes: 480 strategy: matrix: - os: [ubuntu-latest] - # os: [ubuntu-latest, macos-latest] + # os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] # os: [ubuntu-latest, windows-latest, macos-latest] include: - os: ubuntu-latest suffix: so - # - os: macos-latest - # suffix: dylib + - os: macos-latest + suffix: dylib # - os: windows-latest # suffix: pyd From b5dfe7a9779d815142509b46288700563c136817 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:58:20 -0400 Subject: [PATCH 15/18] setup --- CMakeLists.txt | 4 +--- setup.py | 21 ++++++------------ token_granter_wrapper/__init__.py | 1 - .../__pycache__/__init__.cpython-311.pyc | Bin 221 -> 0 bytes token_granter_wrapper/token_granter.pyi | 6 ----- .../token_granter_bindings.cpp | 16 ------------- 6 files changed, 8 insertions(+), 40 deletions(-) delete mode 100644 token_granter_wrapper/__init__.py delete mode 100644 token_granter_wrapper/__pycache__/__init__.cpython-311.pyc delete mode 100644 token_granter_wrapper/token_granter.pyi delete mode 100644 token_granter_wrapper/token_granter_bindings.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 2675859..9f6105f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,10 +30,8 @@ set(CMAKE_CXX_STANDARD 17) add_subdirectory(./lib/include/pybind11) add_subdirectory(./lib/src) -set(SOURCE_DIR "token_granter_wrapper") +set(SOURCE_DIR "src/token_granter_wrapper") set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") pybind11_add_module(token_granter_bindings ${SOURCES}) -# set_target_properties(token_granter_bindings PROPERTIES POSITION_INDEPENDENT_CODE ON) -set_target_properties(token_granter_bindings PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) target_link_libraries(token_granter_bindings PRIVATE token_granter) \ No newline at end of file diff --git a/setup.py b/setup.py index 1cd6f20..5050146 100644 --- a/setup.py +++ b/setup.py @@ -14,8 +14,8 @@ Modified from https://www.benjack.io/2017/06/12/python-cpp-tests.html ''' class CMakeExtension(Extension): - def __init__(self, name, sourcedir='', sources=[]): - Extension.__init__(self, name, sources=sources) + def __init__(self, name, sourcedir=''): + Extension.__init__(self, name, sources=[]) self.sourcedir = os.path.abspath(sourcedir) @@ -56,10 +56,6 @@ def build_extension(self, ext): build_args += ['--', '/m'] else: cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] - - if(platform.system() == "Darwin"): - cmake_args.append('-DCMAKE_CXX_FLAGS=-march=armv8-a') - build_args += ['--', '-j2'] env = os.environ.copy() @@ -76,19 +72,16 @@ def build_extension(self, ext): setup( name="token-granter-wrapper", - version="0.1.0", - description="Some testing stuff", - packages=setuptools.find_packages("token_granter_wrapper"), - package_dir={"": "token_granter_wrapper"}, + version="2.0.0", + packages=setuptools.find_packages("src"), + package_dir={"": "src"}, classifiers=[ "Programming Language :: Python :: 3", "Operating System :: POSIX :: Linux" ], - ext_modules=[CMakeExtension('token_granter_bindings', sources=['token_granter_wrapper/token_granter_bindings.cpp'])], + ext_modules=[CMakeExtension('token_granter_wrapper/token_granter_bindings')], python_requires='>=3.6', cmdclass=dict(build_ext=CMakeBuild), zip_safe=False, install_requires=[] -) - -# https://python.plainenglish.io/building-hybrid-python-c-packages-8985fa1c5b1d \ No newline at end of file +) \ No newline at end of file diff --git a/token_granter_wrapper/__init__.py b/token_granter_wrapper/__init__.py deleted file mode 100644 index f0df4a1..0000000 --- a/token_granter_wrapper/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .token_granter_bindings import * diff --git a/token_granter_wrapper/__pycache__/__init__.cpython-311.pyc b/token_granter_wrapper/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index e882d5e400d47a6eff30bfb0aedeb38d7d9e1a07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 221 zcmZ3^%ge<81Xaz&X=*_FF^B^LOi;#WJ|JT{LkdF*V-7nCW0(476%d^m>C%vZ!oA{ KKt)AtKsf;SOFY~F diff --git a/token_granter_wrapper/token_granter.pyi b/token_granter_wrapper/token_granter.pyi deleted file mode 100644 index 944f4ee..0000000 --- a/token_granter_wrapper/token_granter.pyi +++ /dev/null @@ -1,6 +0,0 @@ -class TokenGranter: - def __init__(self, token_granter_url: str) -> None: ... - def grant_access_token( - self, username: str, password: str, temporary: bool - ) -> str: ... - def validate_token(self, username: str, token: str) -> bool: ... diff --git a/token_granter_wrapper/token_granter_bindings.cpp b/token_granter_wrapper/token_granter_bindings.cpp deleted file mode 100644 index 21b74f1..0000000 --- a/token_granter_wrapper/token_granter_bindings.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "../lib/include/token_granter.hpp" - -// EXTERNAL IMPORTS START HERE -#include "../lib/include/pybind11/include/pybind11/pybind11.h" -#include "../lib/include/pybind11/include/pybind11/stl.h" -// EXTERNAL IMPORTS END HERE - -namespace py = pybind11; - -PYBIND11_MODULE(token_granter_bindings, m) -{ - py::class_(m, "TokenGranter") - .def(py::init()) - .def("grant_access_token", &TokenGranter::grant_access_token) - .def("validate_token", &TokenGranter::validate_token); -} \ No newline at end of file From aa3121cb342c27802b58d516bcb6e29779a6c7e3 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 22:58:40 -0400 Subject: [PATCH 16/18] cleanup --- src/token_granter_wrapper/__init__.py | 1 + src/token_granter_wrapper/token_granter.pyi | 6 ++++++ .../token_granter_bindings.cpp | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/token_granter_wrapper/__init__.py create mode 100644 src/token_granter_wrapper/token_granter.pyi create mode 100644 src/token_granter_wrapper/token_granter_bindings.cpp diff --git a/src/token_granter_wrapper/__init__.py b/src/token_granter_wrapper/__init__.py new file mode 100644 index 0000000..f0df4a1 --- /dev/null +++ b/src/token_granter_wrapper/__init__.py @@ -0,0 +1 @@ +from .token_granter_bindings import * diff --git a/src/token_granter_wrapper/token_granter.pyi b/src/token_granter_wrapper/token_granter.pyi new file mode 100644 index 0000000..944f4ee --- /dev/null +++ b/src/token_granter_wrapper/token_granter.pyi @@ -0,0 +1,6 @@ +class TokenGranter: + def __init__(self, token_granter_url: str) -> None: ... + def grant_access_token( + self, username: str, password: str, temporary: bool + ) -> str: ... + def validate_token(self, username: str, token: str) -> bool: ... diff --git a/src/token_granter_wrapper/token_granter_bindings.cpp b/src/token_granter_wrapper/token_granter_bindings.cpp new file mode 100644 index 0000000..aea2180 --- /dev/null +++ b/src/token_granter_wrapper/token_granter_bindings.cpp @@ -0,0 +1,16 @@ +#include "../../lib/include/token_granter.hpp" + +// EXTERNAL IMPORTS START HERE +#include "../../lib/include/pybind11/include/pybind11/pybind11.h" +#include "../../lib/include/pybind11/include/pybind11/stl.h" +// EXTERNAL IMPORTS END HERE + +namespace py = pybind11; + +PYBIND11_MODULE(token_granter_bindings, m) +{ + py::class_(m, "TokenGranter") + .def(py::init()) + .def("grant_access_token", &TokenGranter::grant_access_token) + .def("validate_token", &TokenGranter::validate_token); +} \ No newline at end of file From d3e1d86586f7c85fb5dad506adbbe5357b5645f7 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 23:00:01 -0400 Subject: [PATCH 17/18] cleanup --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index b1ea3e5..3d558c3 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -109,7 +109,7 @@ jobs: run: | ls echo "TK GRANTER STARTS HERE" - ls token_granter_wrapper + ls src/token_granter_wrapper echo "WHEELHOUSE STARTS HERE" ls wheelhouse From 1c86fe30ef3852a36e6ab37b04c24486d11e5480 Mon Sep 17 00:00:00 2001 From: GhazanfarShahbaz Date: Wed, 19 Jun 2024 23:06:48 -0400 Subject: [PATCH 18/18] next --- .github/workflows/cmake.yml | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 3d558c3..69358ce 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -2,9 +2,9 @@ name: CMake Build on: push: - branches: [newVersion] + branches: [main] pull_request: - branches: [newVersion] + branches: [main] jobs: build: @@ -113,8 +113,8 @@ jobs: echo "WHEELHOUSE STARTS HERE" ls wheelhouse - - name: Test pacakge - run: pip install wheelhouse/*.whl && pytest tests/ + # - name: Test pacakge + # run: pip install wheelhouse/*.whl && pytest tests/ - name: Publish to PyPI run: python -m twine upload --repository-url https://pypi.ghaz.dev:440 wheelhouse/*.whl --verbose diff --git a/setup.py b/setup.py index 5050146..e5217bd 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ def build_extension(self, ext): setup( name="token-granter-wrapper", - version="2.0.0", + version="0.2.0", packages=setuptools.find_packages("src"), package_dir={"": "src"}, classifiers=[