656 Commits

Author SHA1 Message Date
Eisuke Kawashima fe087f9c2f feat(vector_indexing_suite): implement reverse 2026-07-05 22:30:33 -04:00
Eisuke Kawashima 660e8944ff feat(vector_indexing_suite): implement remove 2026-07-05 22:30:33 -04:00
Eisuke Kawashima 27ff6f6f37 feat(vector_indexing_suite): implement count 2026-07-05 22:30:33 -04:00
Eisuke Kawashima d8668c5963 feat(indexing_suite): implement clear 2026-07-05 22:30:33 -04:00
Eisuke Kawashima e08584a4ed feat(vector_indexing_suite): implement __iadd__ 2026-07-05 22:30:33 -04:00
O01eg c86ea207d1 Fix and add tests for module state 2026-06-26 21:52:16 -04:00
O01eg 97a623d3ed Add tests 2026-06-21 16:09:15 -04:00
O01eg 9e2f5191e5 Add support for multi-phase module initialization 2026-06-21 16:09:15 -04:00
Andrey Semashev 9c887a1331 Remove dependencies on Boost.StaticAssert.
Boost.StaticAssert has been merged into Boost.Config, so remove
the dependency.
2026-01-22 22:59:58 +03:00
Neil Schemenauer 5013564316 Add "nogil" option for BOOST_PYTHON_MODULE_INIT.
Implement optional arguments for BOOST_PYTHON_MODULE_INIT and allow the
boost::python::mod_gil_not_used() option.  This sets the
Py_MOD_GIL_NOT_USED flag for the extension module.

To define a module that supports free-threaded Python, define it
like this:

    BOOST_PYTHON_MODULE(my_module, boost::python::mod_gil_not_used())
    {
        ...
    }
2025-12-02 08:19:45 -05:00
Eisuke Kawashima 5f5f38fa8a fix: fix quotation 2025-11-03 09:30:32 -05:00
Stefan Seefeld 5d7b9a0648 Stop testing c++98 support 2025-11-03 08:40:38 -05:00
Stefan Seefeld 7fd39323ac Don't rely on Py_REFCNT to test upcast. 2025-11-03 08:40:38 -05:00
Eisuke Kawashima aa458d2ca9 fix(test.properties): use doctest.ELLIPSIS for traceback
Since python 3.11 (PEP 657) traceback info is changed
fix #460
2025-10-25 15:22:21 -04:00
Eisuke Kawashima 16627261f1 fix(test.pickle): fix for change in the return value of object.__reduce__()
https://docs.python.org/3.11/library/pickle.html#object.__reduce__

fix #461
2025-10-25 14:14:07 -04:00
Eisuke Kawashima f604eb8d0f fix(test.numpy/ufunc): fix import error and value comparison 2025-04-02 08:21:09 -04:00
Eisuke Kawashima d30c1bb7a8 refactor: switch to python 3 2025-03-31 21:58:42 -04:00
Jakob van Santen 95e53011d8 Conditionalize nested test for py2
__qualname__ didn't exist before python 3.3. Skip checks that depend on it if running in earlier Python versions
2024-09-18 10:36:45 -04:00
Jakob van Santen 0102b31945 Unwrap back_reference in get_pytype()
This prevents back_reference parameters from decaying to "object" in py signatures
2024-09-17 17:07:44 -04:00
Jakob van Santen 4c6f40fb82 Add generated docstrings to property fget/fset 2024-09-17 17:07:44 -04:00
Jakob van Santen d1910f3d65 Avoid degrading slice to object in generated sig 2024-09-17 17:07:44 -04:00
Jakob van Santen c4e3b13dc2 Use qualname for enum repr 2024-09-17 17:07:44 -04:00
Jakob van Santen 7a3cc07042 Emit qualfied names in docstrings 2024-09-17 17:07:44 -04:00
Jakob van Santen 58b1a010bb Set __qualname__ for Python >= 3.3 2024-09-17 17:07:44 -04:00
Rene Rivera 8ca8724ad9 Update build deps. 2024-08-18 13:16:00 -04:00
Rene Rivera f6d20e1099 Make the library modular usable. 2024-08-18 13:16:00 -04:00
TaWeiTu aee2667407 Fix deprecated usage of <boost/bind.hpp>
Replace <boost/bind.hpp> with <boost/bind/bind.hpp> and use namespace
boost::placeholders when necessary.
2021-06-09 07:16:19 -04:00
Stefan Seefeld aca3c80c4f Respect alignment of by-value storage. 2021-04-30 22:59:25 -04:00
Dmitry Bely f7254f5d8a Add a test case for issue #280 2021-02-07 23:07:30 -05:00
Tyler Kieft bf824c1b98 Ensure all doctests run 2020-08-08 02:19:03 -04:00
Stefan Seefeld 15115eb1f8 Fix appveyor build failures. 2020-08-07 14:04:30 -04:00
Nikita Kniazev fdc9ec760f Fixed module tests fail
Since recently lightweight_test introduced a sanitation to ensure that
`boost::report_errors()` is called, and it does not in module tests.

The problem could be fixed by exporting the function and calling it from
these python tests, but as it already done in other module tests I just
turned those usages lightweight_test to a regular assertation.
2019-03-31 20:36:56 -04:00
Stefan Seefeld 6b8ab7a5a3 Conditionalize tests. 2018-03-09 13:08:07 -05:00
Stefan Seefeld 1db3871f50 Remove obsolete scons-based build logic. 2018-03-07 15:09:02 -05:00
Stefan Seefeld 65be0e0f0f Only iterate over multiple calling conventions on x86. 2018-02-15 22:17:04 -05:00
Stefan Seefeld ebba009a9f First attempt at faber-based build system. 2017-11-10 07:41:21 -05:00
Mark Borgerding ecf05c4a90 ndarray.shape(k),strides(k) act more like their python counterparts (negative indexing, bounds checking) (issue #157) 2017-09-25 09:08:14 -04:00
Edward Diener 00b7ed03a7 Remove executable attribute for files. 2017-09-18 08:21:30 -04:00
Stefan Seefeld 2d1f66fd19 Remove module as obsoleted by Boost.NumPy. 2017-07-20 11:39:58 -04:00
Stefan Seefeld 8536e97c67 Use utf-8 encoding 2017-06-25 14:33:42 -04:00
shreyans800755 142661dac8 Use std type_traits instead of boost type_traits
Fixes https://github.com/boostorg/python/issues/106
2017-06-25 14:17:41 -04:00
Stefan Seefeld 664d443df3 Fix Python3 compatibility bug. 2017-06-03 18:26:14 -04:00
Stefan Seefeld 7cfc47008e Rename test source 2017-06-02 19:31:54 -04:00
Raphael Isemann 1452dfe713 Reencoded a few headers that used Windows-1252 with UTF-8.
Nearly every header in the boost codebase is UTF-8, but here there
are a few headers which are using Windows-1252, which makes it impossible
for some tools to parse those files. This patch just reencodes them
with UTF-8 like the rest of the codebase. I checked that the name of the
author is still correct after this change.

No functional change intended.
2017-06-02 17:44:46 -04:00
Stefan Seefeld 3066c73c09 Fix Windows builds. 2017-03-24 15:39:13 -04:00
Tadeu Manoel 4e0b96faa8 Fix conversion of PyUnicodeObject to wstring (#93) 2016-12-14 07:58:07 -05:00
Tadeu Manoel 7178a70176 Fix a problem where test_builtin_converters.py is not being run (#94)
This was happening because the module docstring was not the first statement.
2016-12-14 07:54:37 -05:00
Stefan Seefeld 1df6d84b80 Fix Python 3 incompatibility. 2016-10-27 08:37:25 -04:00
Stefan Seefeld 84c96447e2 Add NumPy support to the BB-based build logic. 2016-10-18 16:32:05 -04:00
Stefan Seefeld b9431cd326 Remove obsolete tests from build logic. 2016-10-09 09:19:20 -04:00