diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 613aee132..6dd9f7467 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4.0.0 - name: Build wheels - uses: pypa/cibuildwheel@v2.12.1 + uses: pypa/cibuildwheel@v2.16.2 # to supply options, put them in 'env', like: env: MACOSX_DEPLOYMENT_TARGET: "10.14" @@ -86,7 +86,7 @@ jobs: with: user: __token__ # To test: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository-url: https://test.pypi.org/legacy/ + # password: ${{ secrets.TEST_PYPI_API_TOKEN }} + # repository-url: https://test.pypi.org/legacy/ # To release: - # password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/python/src/utils/interval.cpp b/python/src/utils/interval.cpp index 488bd24d1..4e98a2c4c 100644 --- a/python/src/utils/interval.cpp +++ b/python/src/utils/interval.cpp @@ -45,14 +45,16 @@ void define_interval(py::module_& m) .def( "__str__", [](const Interval& self) { - return (std::stringstream() << self).str(); + std::stringstream ss; + ss << self; + return ss.str(); }) .def( "__repr__", [](const Interval& self) { - return (std::stringstream() - << "Interval(" << self.INF << ", " << self.SUP << ")") - .str(); + std::stringstream ss; + ss << "Interval(" << self.INF << ", " << self.SUP << ")"; + return ss.str(); }) .DEF_BIN_OP("add", a + b) .DEF_UN_OP("pos", +i)