gitronics 0.5.11__tar.gz → 0.5.13__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.
- {gitronics-0.5.11 → gitronics-0.5.13}/Cargo.lock +1 -1
- {gitronics-0.5.11 → gitronics-0.5.13}/Cargo.toml +1 -1
- {gitronics-0.5.11 → gitronics-0.5.13}/PKG-INFO +1 -1
- {gitronics-0.5.11 → gitronics-0.5.13}/src/project_manager/load_model_config.rs +3 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/project_manager.rs +1 -6
- {gitronics-0.5.11 → gitronics-0.5.13}/src/utils.rs +4 -1
- {gitronics-0.5.11 → gitronics-0.5.13}/.github/workflows/ci.yml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/.github/workflows/docs.yml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/.github/workflows/release.yml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/.gitignore +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/.vscode/settings.json +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/LICENSE +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/README.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/assets/logo.png +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/best-practices.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/changelog.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/examples.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/getting-started.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/index.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/installation.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/requirements.txt +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/usage/build.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/usage/configuration.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/docs/usage/migrate.md +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/filler_model_3.mcnp +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/filler_model_3.metadata +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/small_override.yaml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/configurations/valid_configuration.yaml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/output/.gitignore +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/fine_mesh.tally +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/materials.mat +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/my_transform.transform +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/volumetric_source.source +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/envelope_structure.mcnp +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/envelope_structure.metadata +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/filler_models/filler_model_1.mcnp +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/filler_models/filler_model_1.metadata +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/filler_models/filler_model_2.mcnp +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/filler_models/filler_model_2.metadata +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/mkdocs.yml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/pyproject.toml +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/python/gitronics/__init__.py +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/python/gitronics/__main__.py +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/python/gitronics/gitronics.pyi +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/python/tests/test_build_model.py +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/python/tests/test_cli_works.py +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/resources/simple_model.mcnp +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/build_model.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/cli.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/lib.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/main.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/migrate_model.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/model_config.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/project_manager/load_metadata.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/project_manager/load_project_files.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/python.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/src/types.rs +0 -0
- {gitronics-0.5.11 → gitronics-0.5.13}/tests/test_example_project.rs +0 -0
|
@@ -46,6 +46,9 @@ fn load_config_inner(
|
|
|
46
46
|
.unwrap_or(Path::new("."))
|
|
47
47
|
.join(base_path)
|
|
48
48
|
};
|
|
49
|
+
let base_path = base_path
|
|
50
|
+
.canonicalize()
|
|
51
|
+
.map_err(|source| GitronicsError::io_path(&base_path, source))?;
|
|
49
52
|
// Resolve the base config recursively so the full chain is applied.
|
|
50
53
|
let base = load_config_inner(&base_path, visited)?;
|
|
51
54
|
let merged = config.merge(base);
|
|
@@ -48,12 +48,7 @@ impl ProjectManager {
|
|
|
48
48
|
.model_config
|
|
49
49
|
.project_roots()
|
|
50
50
|
.iter()
|
|
51
|
-
.map(|p|
|
|
52
|
-
dunce::canonicalize(p)
|
|
53
|
-
.unwrap_or_else(|_| p.clone())
|
|
54
|
-
.to_string_lossy()
|
|
55
|
-
.to_string()
|
|
56
|
-
})
|
|
51
|
+
.map(|p| p.to_string_lossy().to_string())
|
|
57
52
|
.collect::<Vec<_>>()
|
|
58
53
|
.join(", "),
|
|
59
54
|
})
|
|
@@ -91,7 +91,10 @@ pub enum GitronicsError {
|
|
|
91
91
|
impl GitronicsError {
|
|
92
92
|
pub fn io_path(path: impl AsRef<Path>, source: io::Error) -> Self {
|
|
93
93
|
Self::IoPath {
|
|
94
|
-
path: path.as_ref()
|
|
94
|
+
path: dunce::canonicalize(path.as_ref())
|
|
95
|
+
.unwrap_or_else(|_| path.as_ref().to_path_buf())
|
|
96
|
+
.display()
|
|
97
|
+
.to_string(),
|
|
95
98
|
source,
|
|
96
99
|
}
|
|
97
100
|
}
|
|
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
|
|
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
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/filler_model_3.mcnp
RENAMED
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/filler_model_3.metadata
RENAMED
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/assessment_specific/small_override.yaml
RENAMED
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/configurations/valid_configuration.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/fine_mesh.tally
RENAMED
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/data_cards/materials.mat
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/envelope_structure.mcnp
RENAMED
|
File without changes
|
{gitronics-0.5.11 → gitronics-0.5.13}/example_project/reference_model/envelope_structure.metadata
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|