Skip to content

Commit 7d8ac01

Browse files
committed
Fix warnings
Signed-off-by: martinRenou <[email protected]>
1 parent 2ac041a commit 7d8ac01

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
- conda update -q conda
2828
- conda info -a
2929
# Host dependencies
30-
- conda install xeus=0.25.1 nlohmann_json cppzmq xtl jedi pybind11=2.5.0 pybind11_json=0.2.6 pygments gtest=1.8.0 debugpy ipython=7.14.0 -c conda-forge
30+
- conda install xeus=0.25.1 nlohmann_json cppzmq xtl jedi pybind11=2.6.0 pybind11_json=0.2.6 pygments gtest=1.8.0 debugpy ipython=7.14.0 -c conda-forge
3131
# Build dependencies
3232
- conda install cmake -c conda-forge
3333
# Build and install xeus-python

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ OPTION(XPYT_DOWNLOAD_GTEST "build gtest from downloaded sources" OFF)
7070
# ============
7171

7272
set(xeus_REQUIRED_VERSION 0.25.0)
73-
set(pybind11_REQUIRED_VERSION 2.2.4)
73+
set(pybind11_REQUIRED_VERSION 2.6.0)
7474
set(pybind11_json_REQUIRED_VERSION 0.2.2)
7575

7676
if (NOT TARGET xeus AND NOT TARGET xeus-static)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ xeus-python does not cover 100% of the features of ipykernel. For example, only
134134

135135
| `xeus-python`| `xeus` | `xtl` | `cppzmq` | `nlohmann_json` | `pybind11` | `pybind11_json` | `jedi` | `pygments` | `ptvsd` | `debugpy` |
136136
|--------------|------------------|-----------------|----------|-----------------|----------------|-------------------|-------------------|-------------------|---------|-----------|
137-
| master | >=0.25.0,<0.26 | >=0.6.8,<0.7 | ~4.4.1 | >=3.6.1,<4.0 | >=2.2.4,<3.0 | >=0.2.6,<0.3 | >=0.15.1 | >=2.3.1,<3.0.0 | | >=1.1.0 |
137+
| master | >=0.25.0,<0.26 | >=0.6.8,<0.7 | ~4.4.1 | >=3.6.1,<4.0 | >=2.6.0,<3.0 | >=0.2.6,<0.3 | >=0.15.1 | >=2.3.1,<3.0.0 | | >=1.1.0 |
138138
| 0.9.1 | >=0.25.0,<0.26 | >=0.6.8,<0.7 | ~4.4.1 | >=3.6.1,<4.0 | >=2.2.4,<3.0 | >=0.2.6,<0.3 | >=0.15.1 | >=2.3.1,<3.0.0 | | >=1.1.0 |
139139
| 0.9.0 | >=0.25.0,<0.26 | >=0.6.8,<0.7 | ~4.4.1 | >=3.6.1,<4.0 | >=2.2.4,<3.0 | >=0.2.6,<0.3 | >=0.15.1 | >=2.3.1,<3.0.0 | | >=1.1.0 |
140140
| 0.8.7 | >=0.24.2,<0.25 | >=0.6.8,<0.7 | ~4.4.1 | >=3.6.1,<4.0 | >=2.2.4,<3.0 | >=0.2.6,<0.3 | >=0.15.1 | >=2.3.1,<3.0.0 | | >=1.1.0 |

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- cppzmq
1111
- xtl
1212
- jedi
13-
- pybind11=2.5.0
13+
- pybind11=2.6.0
1414
- pybind11_json=0.2.6
1515
- pygments
1616
- ipython=7.14.0

src/xdisplay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ namespace xpyt
10651065

10661066
py::module get_display_module_impl()
10671067
{
1068-
py::module display_module("display");
1068+
py::module display_module = py::module_::create_extension_module("display", nullptr, new py::module_::module_def);
10691069

10701070
py::class_<xdisplayhook>(display_module, "DisplayHook")
10711071
.def(py::init<>())

src/xis_complete.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace xpyt
2323

2424
py::module get_completion_module_impl()
2525
{
26-
py::module completion_module("completion");
26+
py::module completion_module = py::module_::create_extension_module("completion", nullptr, new py::module_::module_def);
2727

2828
exec(py::str(R"(
2929
# Implementation from https://github.com/ipython/ipython/blob/master/IPython/core/inputtransformer2.py

src/xlinecache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace xpyt
5353

5454
py::module get_linecache_module_impl()
5555
{
56-
py::module linecache_module("linecache");
56+
py::module linecache_module = py::module_::create_extension_module("linecache", nullptr, new py::module_::module_def);
5757

5858
exec(py::str(R"(
5959
from linecache import getline, getlines, updatecache, cache, clearcache, lazycache

src/xnullcontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace xpyt
2626

2727
py::module get_nullcontext_module_impl()
2828
{
29-
py::module nullcontext_module("xeus_nullcontext");
29+
py::module nullcontext_module = py::module_::create_extension_module("xeus_nullcontext", nullptr, new py::module_::module_def);
3030
exec(py::str(R"(
3131
from contextlib import AbstractContextManager
3232
class nullcontext(AbstractContextManager):

src/xpython_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ namespace xpyt
403403

404404
py::module get_kernel_module_impl()
405405
{
406-
py::module kernel_module = py::module("kernel");
406+
py::module kernel_module = py::module_::create_extension_module("kernel", nullptr, new py::module_::module_def);
407407

408408
py::class_<hooks_object>(kernel_module, "Hooks")
409409
.def_static("show_in_pager", &hooks_object::show_in_pager);

0 commit comments

Comments
 (0)