mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 04:42:28 +00:00
Compare commits
8 Commits
windows-up
...
python313
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b7a8ccc85 | ||
|
|
3e7be69e1e | ||
|
|
cbdf1ce2a1 | ||
|
|
4fe3403584 | ||
|
|
b1b43f1e1a | ||
|
|
7b1960446b | ||
|
|
2dc5a92727 | ||
|
|
4fc3afa3ac |
8
.github/workflows/test-osx.yml
vendored
8
.github/workflows/test-osx.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8.10]
|
python-version: ['3.8.10', '3.12']
|
||||||
cxx: [clang++]
|
cxx: [clang++]
|
||||||
std: [c++11, c++14] # TODO: c++17 is failing !
|
std: [c++11, c++14] # TODO: c++17 is failing !
|
||||||
|
|
||||||
@@ -32,17 +32,19 @@ jobs:
|
|||||||
faber -v
|
faber -v
|
||||||
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
|
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
|
||||||
faber \
|
faber \
|
||||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
--with-boost-include=$(brew --prefix boost)/include \
|
||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`sysctl -n hw.ncpu`
|
-j`sysctl -n hw.ncpu`
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
faber \
|
faber \
|
||||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
--with-boost-include=$(brew --prefix boost)/include \
|
||||||
--builddir=build\
|
--builddir=build\
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`sysctl -n hw.ncpu` \
|
-j`sysctl -n hw.ncpu` \
|
||||||
test.report
|
test.report
|
||||||
|
|||||||
2
.github/workflows/test-ubuntu.yml
vendored
2
.github/workflows/test-ubuntu.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
|||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`nproc`
|
-j`nproc`
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
@@ -47,5 +48,6 @@ jobs:
|
|||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`nproc` \
|
-j`nproc` \
|
||||||
test.report
|
test.report
|
||||||
|
|||||||
@@ -714,3 +714,23 @@ span.purple { color: purple; }
|
|||||||
span.gold { color: gold; }
|
span.gold { color: gold; }
|
||||||
span.silver { color: silver; } /* lighter gray */
|
span.silver { color: silver; } /* lighter gray */
|
||||||
span.gray { color: #808080; } /* light gray */
|
span.gray { color: #808080; } /* light gray */
|
||||||
|
|
||||||
|
/* 2022 fix */
|
||||||
|
|
||||||
|
ol.simple ol p,
|
||||||
|
ol.simple ul p,
|
||||||
|
ul.simple ol p,
|
||||||
|
ul.simple ul p {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol.simple > li:not(:first-child) > p,
|
||||||
|
ul.simple > li:not(:first-child) > p {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol.simple p,
|
||||||
|
ul.simple p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,9 @@
|
|||||||
{%- for scriptfile in script_files %}
|
{%- for scriptfile in script_files %}
|
||||||
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
<script data-url_root="{{ pathto('', 1) }}" id="documentation_options" src="{{ pathto('', 1) }}_static/documentation_options.js"></script>
|
||||||
|
<script src="{{ pathto('', 1) }}_static/searchtools.js"></script>
|
||||||
|
<script src="{{ pathto('', 1) }}_static/language_data.js"></script>
|
||||||
{%- if use_opensearch %}
|
{%- if use_opensearch %}
|
||||||
<link rel="search" type="application/opensearchdescription+xml"
|
<link rel="search" type="application/opensearchdescription+xml"
|
||||||
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# include <boost/python/object_core.hpp>
|
# include <boost/python/object_core.hpp>
|
||||||
# include <boost/python/call.hpp>
|
# include <boost/python/call.hpp>
|
||||||
# include <boost/iterator/detail/enable_if.hpp>
|
# include <boost/type_traits/enable_if.hpp>
|
||||||
# include <boost/mpl/bool.hpp>
|
# include <boost/mpl/bool.hpp>
|
||||||
|
|
||||||
# include <boost/iterator/detail/config_def.hpp>
|
# include <boost/iterator/detail/config_def.hpp>
|
||||||
@@ -40,7 +40,7 @@ struct is_object_operators
|
|||||||
# if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE)
|
# if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE)
|
||||||
template <class L, class R, class T>
|
template <class L, class R, class T>
|
||||||
struct enable_binary
|
struct enable_binary
|
||||||
: boost::iterators::enable_if<is_object_operators<L,R>, T>
|
: boost::enable_if_<is_object_operators<L,R>::value, T>
|
||||||
{};
|
{};
|
||||||
# define BOOST_PYTHON_BINARY_RETURN(T) typename enable_binary<L,R,T>::type
|
# define BOOST_PYTHON_BINARY_RETURN(T) typename enable_binary<L,R,T>::type
|
||||||
# else
|
# else
|
||||||
|
|||||||
@@ -222,7 +222,13 @@ namespace
|
|||||||
, char const* ref_type)
|
, char const* ref_type)
|
||||||
{
|
{
|
||||||
handle<> holder(source);
|
handle<> holder(source);
|
||||||
if (source->ob_refcnt <= 1)
|
if (
|
||||||
|
#if PY_VERSION_HEX < 0x03090000
|
||||||
|
source->ob_refcnt
|
||||||
|
#else
|
||||||
|
Py_REFCNT(source)
|
||||||
|
#endif
|
||||||
|
<= 1)
|
||||||
{
|
{
|
||||||
handle<> msg(
|
handle<> msg(
|
||||||
#if PY_VERSION_HEX >= 0x3000000
|
#if PY_VERSION_HEX >= 0x3000000
|
||||||
|
|||||||
Reference in New Issue
Block a user