differt-core 0.1.2__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {differt_core-0.1.2 → differt_core-0.3.0}/Cargo.lock +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/PKG-INFO +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/Cargo.toml +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0/differt-core}/python/differt_core/__init__.py +8 -2
- {differt_core-0.1.2 → differt_core-0.3.0/differt-core}/python/differt_core/_differt_core/__init__.pyi +1 -0
- {differt_core-0.1.2 → differt_core-0.3.0/differt-core}/src/geometry/mod.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/src/geometry/triangle_mesh.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/src/lib.rs +7 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/src/rt/graph.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/src/rt/mod.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0/differt-core}/src/scene/mod.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/src/scene/sionna.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0/differt-core}/src/scene/triangle_scene.rs +1 -1
- differt_core-0.3.0/differt-core/tests/test_version.py +8 -0
- {differt_core-0.1.2/differt-core → differt_core-0.3.0}/python/differt_core/__init__.py +8 -2
- {differt_core-0.1.2/differt-core → differt_core-0.3.0}/python/differt_core/_differt_core/__init__.pyi +1 -0
- {differt_core-0.1.2/differt-core → differt_core-0.3.0}/src/geometry/mod.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/src/geometry/triangle_mesh.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/src/lib.rs +7 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/src/rt/graph.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/src/rt/mod.rs +1 -1
- {differt_core-0.1.2/differt-core → differt_core-0.3.0}/src/scene/mod.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/src/scene/sionna.rs +1 -1
- {differt_core-0.1.2/differt-core → differt_core-0.3.0}/src/scene/triangle_scene.rs +1 -1
- {differt_core-0.1.2 → differt_core-0.3.0}/Cargo.toml +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/LICENSE.md +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/README.md +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/LICENSE.md +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/README.md +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/benches/bench_main.rs +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/benches/benchmarks/graph_iterators.rs +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/benches/benchmarks/mod.rs +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/_differt_core/rt/graph.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/_differt_core/scene/sionna.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/geometry/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/geometry/_triangle_mesh.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/py.typed +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/rt/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/rt/_graph.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/scene/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/scene/_sionna.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/scene/_triangle_scene.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/tests/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/tests/rt/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/differt-core/tests/rt/test_graph.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/pyproject.toml +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/rt/graph.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/scene/sionna.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/geometry/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/geometry/_triangle_mesh.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/py.typed +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/rt/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/rt/_graph.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/scene/__init__.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/scene/_sionna.py +0 -0
- {differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/scene/_triangle_scene.py +0 -0
|
@@ -13,6 +13,12 @@ so that one can use :mod:`differt_core` and still be able to differentiate
|
|
|
13
13
|
its code. We welcome any contribution on that topic!
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
from differt_core._differt_core import __version__ as _version
|
|
17
|
+
from differt_core._differt_core import __version_info__ as _version_info
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
__all__ = ("__version__", "__version_info__")
|
|
20
|
+
|
|
21
|
+
__version__ = _version
|
|
22
|
+
"""The current full version of this module."""
|
|
23
|
+
__version_info__ = _version_info
|
|
24
|
+
"""The current short version of this module as a tuple (major, minor, patch)."""
|
|
@@ -3,7 +3,7 @@ use pyo3::{prelude::*, wrap_pymodule};
|
|
|
3
3
|
pub mod triangle_mesh;
|
|
4
4
|
|
|
5
5
|
#[cfg(not(tarpaulin_include))]
|
|
6
|
-
#[pymodule]
|
|
6
|
+
#[pymodule(gil_used = false)]
|
|
7
7
|
pub(crate) fn geometry(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
8
8
|
m.add_wrapped(wrap_pymodule!(triangle_mesh::triangle_mesh))?;
|
|
9
9
|
Ok(())
|
|
@@ -502,7 +502,7 @@ impl From<RawObj> for TriangleMesh {
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
#[cfg(not(tarpaulin_include))]
|
|
505
|
-
#[pymodule]
|
|
505
|
+
#[pymodule(gil_used = false)]
|
|
506
506
|
pub(crate) fn triangle_mesh(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
507
507
|
m.add_class::<TriangleMesh>()?;
|
|
508
508
|
Ok(())
|
|
@@ -6,13 +6,19 @@ pub mod scene;
|
|
|
6
6
|
|
|
7
7
|
/// Core of DiffeRT module, implemented in Rust.
|
|
8
8
|
#[cfg(not(tarpaulin_include))]
|
|
9
|
-
#[pymodule]
|
|
9
|
+
#[pymodule(gil_used = false)]
|
|
10
10
|
fn _differt_core(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
11
11
|
pyo3_log::init();
|
|
12
12
|
|
|
13
13
|
let mut version = env!("CARGO_PKG_VERSION").to_string();
|
|
14
14
|
version = version.replace("-alpha", "a").replace("-beta", "b");
|
|
15
15
|
m.add("__version__", version)?;
|
|
16
|
+
let version_info = (
|
|
17
|
+
env!("CARGO_PKG_VERSION_MAJOR").parse::<u32>().unwrap(),
|
|
18
|
+
env!("CARGO_PKG_VERSION_MINOR").parse::<u32>().unwrap(),
|
|
19
|
+
env!("CARGO_PKG_VERSION_PATCH").parse::<u32>().unwrap(),
|
|
20
|
+
);
|
|
21
|
+
m.add("__version_info__", version_info)?;
|
|
16
22
|
m.add_wrapped(wrap_pymodule!(geometry::geometry))?;
|
|
17
23
|
m.add_wrapped(wrap_pymodule!(rt::rt))?;
|
|
18
24
|
m.add_wrapped(wrap_pymodule!(scene::scene))?;
|
|
@@ -1119,7 +1119,7 @@ pub mod directed {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
#[cfg(not(tarpaulin_include))]
|
|
1122
|
-
#[pymodule]
|
|
1122
|
+
#[pymodule(gil_used = false)]
|
|
1123
1123
|
pub(crate) fn graph(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
1124
1124
|
m.add_class::<complete::CompleteGraph>()?;
|
|
1125
1125
|
m.add_class::<directed::DiGraph>()?;
|
|
@@ -4,7 +4,7 @@ pub mod sionna;
|
|
|
4
4
|
pub mod triangle_scene;
|
|
5
5
|
|
|
6
6
|
#[cfg(not(tarpaulin_include))]
|
|
7
|
-
#[pymodule]
|
|
7
|
+
#[pymodule(gil_used = false)]
|
|
8
8
|
pub(crate) fn scene(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
9
9
|
m.add_wrapped(wrap_pymodule!(sionna::sionna))?;
|
|
10
10
|
m.add_wrapped(wrap_pymodule!(triangle_scene::triangle_scene))?;
|
|
@@ -13,6 +13,12 @@ so that one can use :mod:`differt_core` and still be able to differentiate
|
|
|
13
13
|
its code. We welcome any contribution on that topic!
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
from differt_core._differt_core import __version__ as _version
|
|
17
|
+
from differt_core._differt_core import __version_info__ as _version_info
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
__all__ = ("__version__", "__version_info__")
|
|
20
|
+
|
|
21
|
+
__version__ = _version
|
|
22
|
+
"""The current full version of this module."""
|
|
23
|
+
__version_info__ = _version_info
|
|
24
|
+
"""The current short version of this module as a tuple (major, minor, patch)."""
|
|
@@ -3,7 +3,7 @@ use pyo3::{prelude::*, wrap_pymodule};
|
|
|
3
3
|
pub mod triangle_mesh;
|
|
4
4
|
|
|
5
5
|
#[cfg(not(tarpaulin_include))]
|
|
6
|
-
#[pymodule]
|
|
6
|
+
#[pymodule(gil_used = false)]
|
|
7
7
|
pub(crate) fn geometry(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
8
8
|
m.add_wrapped(wrap_pymodule!(triangle_mesh::triangle_mesh))?;
|
|
9
9
|
Ok(())
|
|
@@ -502,7 +502,7 @@ impl From<RawObj> for TriangleMesh {
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
#[cfg(not(tarpaulin_include))]
|
|
505
|
-
#[pymodule]
|
|
505
|
+
#[pymodule(gil_used = false)]
|
|
506
506
|
pub(crate) fn triangle_mesh(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
507
507
|
m.add_class::<TriangleMesh>()?;
|
|
508
508
|
Ok(())
|
|
@@ -6,13 +6,19 @@ pub mod scene;
|
|
|
6
6
|
|
|
7
7
|
/// Core of DiffeRT module, implemented in Rust.
|
|
8
8
|
#[cfg(not(tarpaulin_include))]
|
|
9
|
-
#[pymodule]
|
|
9
|
+
#[pymodule(gil_used = false)]
|
|
10
10
|
fn _differt_core(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
11
11
|
pyo3_log::init();
|
|
12
12
|
|
|
13
13
|
let mut version = env!("CARGO_PKG_VERSION").to_string();
|
|
14
14
|
version = version.replace("-alpha", "a").replace("-beta", "b");
|
|
15
15
|
m.add("__version__", version)?;
|
|
16
|
+
let version_info = (
|
|
17
|
+
env!("CARGO_PKG_VERSION_MAJOR").parse::<u32>().unwrap(),
|
|
18
|
+
env!("CARGO_PKG_VERSION_MINOR").parse::<u32>().unwrap(),
|
|
19
|
+
env!("CARGO_PKG_VERSION_PATCH").parse::<u32>().unwrap(),
|
|
20
|
+
);
|
|
21
|
+
m.add("__version_info__", version_info)?;
|
|
16
22
|
m.add_wrapped(wrap_pymodule!(geometry::geometry))?;
|
|
17
23
|
m.add_wrapped(wrap_pymodule!(rt::rt))?;
|
|
18
24
|
m.add_wrapped(wrap_pymodule!(scene::scene))?;
|
|
@@ -1119,7 +1119,7 @@ pub mod directed {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
#[cfg(not(tarpaulin_include))]
|
|
1122
|
-
#[pymodule]
|
|
1122
|
+
#[pymodule(gil_used = false)]
|
|
1123
1123
|
pub(crate) fn graph(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
1124
1124
|
m.add_class::<complete::CompleteGraph>()?;
|
|
1125
1125
|
m.add_class::<directed::DiGraph>()?;
|
|
@@ -4,7 +4,7 @@ pub mod sionna;
|
|
|
4
4
|
pub mod triangle_scene;
|
|
5
5
|
|
|
6
6
|
#[cfg(not(tarpaulin_include))]
|
|
7
|
-
#[pymodule]
|
|
7
|
+
#[pymodule(gil_used = false)]
|
|
8
8
|
pub(crate) fn scene(m: Bound<'_, PyModule>) -> PyResult<()> {
|
|
9
9
|
m.add_wrapped(wrap_pymodule!(sionna::sionna))?;
|
|
10
10
|
m.add_wrapped(wrap_pymodule!(triangle_scene::triangle_scene))?;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/differt-core/benches/benchmarks/graph_iterators.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/geometry/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/scene/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/differt-core/python/differt_core/scene/_triangle_scene.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/scene/sionna.pyi
RENAMED
|
File without changes
|
{differt_core-0.1.2 → differt_core-0.3.0}/python/differt_core/_differt_core/scene/triangle_scene.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|